body {
  background: #f0f2f5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ===== GEPIA2-style sidebar ===== */
html, body { height: 100%; }
body.nav-md .container.body { height: 100%; }
body.nav-md .container.body .main_container { display: flex; min-height: 100vh; align-items: flex-start; }

.left_col {
  width: 240px;
  min-height: 100vh;
  background: #2A3F54;
  color: #ECF0F1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1000;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo a { color: #ECF0F1; }
.sidebar-logo h4 { font-size: 1.25rem; letter-spacing: 0.5px; }
.sidebar-logo small { font-size: 0.7rem; opacity: 0.6; display: block; margin-top: 2px; }

.sidebar-nav { padding: 8px 0; flex: 1; }
.sidebar-nav .nav-link {
  color: #ECF0F1;
  opacity: 0.7;
  padding: 10px 18px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
  text-decoration: none;
}
.sidebar-nav .nav-link:hover { opacity: 1; background: rgba(255,255,255,0.05); }
.sidebar-nav .nav-link.active {
  opacity: 1;
  background: rgba(255,255,255,0.08);
  border-left-color: #1ABB9C;
}
.sidebar-nav .nav-link i { font-size: 1rem; width: 22px; text-align: center; }
.sidebar-nav .nav-link .sub-arrow { font-size: 0.65rem; transition: transform 0.2s; }
.sidebar-nav .nav-link .sub-arrow.open { transform: rotate(180deg); }
.sidebar-nav .nav-link.disabled-link { cursor: not-allowed; opacity: 0.4; }
.sidebar-nav .nav-link.disabled-link:hover { opacity: 0.4; background: transparent; }

.sub-nav { list-style: none; margin: 0; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.sub-nav.open { max-height: 300px; }
.sub-nav .nav-link { padding-left: 52px; font-size: 0.83rem; }
.sub-nav .nav-link i { width: 18px; font-size: 0.8rem; }

.right_col {
  flex: 1;
  margin-left: 240px;
  background: #f0f2f5;
  padding: 0;
}

.right_col { flex: 1; margin-left: 240px; background: #f0f2f5; padding: 0; }
.right_col > .container-fluid { max-width: 100% !important; padding-left: 3px !important; padding-right: 8px !important; }

.card {
  border-radius: 12px;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.08) !important;
}

.form-select, .btn {
  border-radius: 8px;
}

.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.table > thead > tr > th {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid #dee2e6;
}

.table > tbody > tr > td {
  font-size: 0.88rem;
  vertical-align: middle;
}

.badge {
  font-weight: 500;
}

#degTableBody tr {
  cursor: pointer;
  transition: background-color 0.15s;
}

#degTableBody tr:hover {
  background-color: rgba(13, 110, 253, 0.05) !important;
}

.pagination .page-link {
  border-radius: 6px;
  margin: 0 2px;
  border: none;
  color: #495057;
  font-size: 0.85rem;
}

.pagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
}

#geneSuggestions {
  border-radius: 0 0 8px 8px;
  border: 1px solid #dee2e6;
  border-top: none;
  background: #fff;
}
#geneSuggestions .list-group-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
  cursor: pointer;
}
#geneSuggestions .list-group-item:hover {
  background: #e8f5e9 !important;
}

#deTable td, #deTable th {
  font-size: 0.82rem;
  white-space: nowrap;
}
#deTable td {
  padding: 9px 6px;
}
#deTable thead th {
  padding: 8px 6px;
}
#deTable thead {
  position: sticky;
  top: 0;
  z-index: 1;
}
#deCardBody .table-responsive {
  overflow: visible;
}
#dePagination .page-link {
  border-radius: 4px;
  margin: 0 1px;
  border: none;
  color: #495057;
  font-size: 0.78rem;
  padding: 2px 8px;
  cursor: pointer;
}
#dePagination .page-link:hover {
  background-color: #d4edda;
  color: #155724;
}
#dePagination .page-item.disabled .page-link {
  cursor: not-allowed;
  opacity: 0.5;
}
#dePagination .page-item.active .page-link {
  background-color: #198754;
  color: #fff;
  font-weight: 600;
}

#corrTable {
  height: 100%;
}
#corrTable td {
  padding: 6px 6px;
  font-size: 0.82rem;
  white-space: nowrap;
}
#corrTable thead th {
  padding: 8px 6px;
  font-size: 0.82rem;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
#corrPagination .page-link {
  border-radius: 4px;
  margin: 0 1px;
  border: none;
  color: #495057;
  font-size: 0.78rem;
  padding: 2px 8px;
  cursor: pointer;
}
#corrPagination .page-link:hover {
  background-color: #cce5ff;
  color: #004085;
}
#corrPagination .page-item.disabled .page-link {
  cursor: not-allowed;
  opacity: 0.5;
}
#corrPagination .page-item.active .page-link {
  background-color: #17a2b8;
  color: #fff;
  font-weight: 600;
}

#lfcTable td, #lfcTable th {
  font-size: 0.82rem;
  white-space: nowrap;
}
#lfcTable thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
#lfcPagination .page-link {
  border-radius: 4px;
  margin: 0 1px;
  border: none;
  color: #495057;
  font-size: 0.78rem;
  padding: 2px 8px;
  cursor: pointer;
}
#lfcPagination .page-link:hover {
  background-color: #cfe2ff;
  color: #084298;
}
#lfcPagination .page-item.disabled .page-link {
  cursor: not-allowed;
  opacity: 0.5;
}
#lfcPagination .page-item.active .page-link {
  background-color: #0d6efd;
  color: #fff;
  font-weight: 600;
}

#resultTabs .nav-link {
  font-size: 0.9rem;
  padding: 8px 18px;
}
#resultTabs .nav-link.active {
  font-weight: 600;
}
