/* Custom CSS for FISCI Shiny App - Clean Minimal Theme */

/* Clean background - solid colors only */
.content-wrapper, .main-content {
  background-color: #ffffff;
}

/* Clean typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333333;
}

/* Search box styling */
.form-control {
  border-radius: 4px;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: #3c8dbc;
  box-shadow: 0 0 5px rgba(60, 141, 188, 0.3);
}

/* Clean button styling - no gradients */
.btn-primary {
  background-color: #007bff;
  border: 1px solid #007bff;
  border-radius: 4px;
  color: white;
  font-weight: 400;
}

.btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.btn-primary:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* DataTable styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
  color: #333;
}

/* Network visualization styling */
#network_plot {
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Clean box styling - minimal shadows */
.card, .box {
  background-color: #ffffff;
  border: 1px solid #e3e6f0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card:hover, .box:hover {
  border-color: #d1d3e2;
}

/* Sidebar styling - Updated for bs4Dash */
.nav-sidebar .nav-item > .nav-link {
  border-left: 3px solid transparent;
}

.nav-sidebar .nav-item.menu-open > .nav-link,
.nav-sidebar .nav-item:hover > .nav-link {
  border-left-color: #3c8dbc;
}

/* Custom info boxes for stats */
.info-box {
  margin-bottom: 15px;
}

.info-box-icon {
  border-top-left-radius: 2px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 2px;
}

/* Responsive design - Updated for bs4Dash */
@media (max-width: 768px) {
  .content-wrapper, .main-content {
    padding: 10px;
  }

  .card, .box {
    margin-bottom: 10px;
  }

  #network_plot {
    height: 400px !important;
  }
}

/* Loading spinner */
.loading {
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Community color legend */
.community-legend {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 4px;
  margin-top: 10px;
}

.community-legend h5 {
  margin-bottom: 10px;
  font-weight: bold;
}

.legend-item {
  display: inline-block;
  margin-right: 15px;
  margin-bottom: 5px;
}

.legend-color {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}