/* TrisoSight - Medical Genetic Visualization Application */
/* Color Scheme:
   Primary: #007C91 (Cyan-Teal)
   Accent: #3EDBF0 (Aqua Blue)
   Secondary: #94A3B8 (Slate Blue-Grey)
   Background: #F8FAFC (Soft Lab White)
   Text: #0F172A (Deep Navy)
   Highlight: #14B8A6 (Aqua Mint)
   Success: #10B981 (Gene Green)
   Warning: #3EDBF0 (Aqua Blue)
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #02849b;
  --accent: #26b5c8;
  --secondary: #94a3b8;
  --background: #f8fafc;
  --text: #0f172a;
  --highlight: #14b8a6;
  --success: #10b981;
  --warning: #ff6b6b;
  --neutral-light: #ffffff;
  --neutral-dark: #1e293b;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);
}

body {
  font-family: "Inter", "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
 margin-left: 0 !important;
}

@media (max-width: 968px) {
  body {
    margin-left: 0;
  }
}

/* Typography */
h1 {
  font-family: "Poppins", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h2 {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 0.8rem;
}

h3 {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

h4 {
  font-family: "Poppins", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

p {
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--highlight);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.flex {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Navigation */
nav {
  background-color: var(--neutral-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
  width: 100% !important;
  left: 0 !important;
  /* margin-left: 280px; */
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

@media (max-width: 968px) {
  nav {
    margin-left: 0;
  }
}
/* --- TrisoSight Logo Styling --- */
.logo {
  font-family: "Poppins", sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: -36px;
}

.logo-icon {
  background-color:#f6fbfc;
  color: var(--neutral-light);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: #007c91 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 124, 145, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-icon:hover {
  transform: rotate(10deg) scale(1.05);
  box-shadow: 0 4px 10px rgba(62, 219, 240, 0.4);
}

/* Logo Image Styling */
.logo-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 2px 6px rgba(0, 124, 145, 0.25);
  object-fit: cover;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(62, 219, 240, 0.4);
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 1.65rem;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover:after {
  width: 100%;
}

.nav-buttons {
  display: flex;
  gap: 1rem;
  margin-left: -40px;
}

/* Buttons */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Inter", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--neutral-light);
}

.btn-primary:hover {
  background-color: var(--highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--accent);
  color: var(--text);
}

.btn-secondary:hover {
  background-color: #2bcfe0;
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--neutral-light);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  background-color: var(--neutral-light);
  color: var(--text);
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 124, 145, 0.1);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: var(--warning);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.form-success {
  color: var(--success);
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

/* Cards */
.card {
  background-color: var(--neutral-light);
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
}

.card-body {
  padding: 1rem 0;
}

.card-footer {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.alert-warning {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.alert-info {
  background-color: rgba(0, 124, 145, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-primary {
  background-color: rgba(0, 124, 145, 0.15);
  color: var(--primary);
}

.badge-success {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.badge-warning {
  background-color: rgba(255, 107, 107, 0.15);
  color: var(--warning);
}

.badge-accent {
  background-color: rgba(62, 219, 240, 0.15);
  color: var(--accent);
}

/* Header Sections */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--highlight) 100%);
  color: var(--neutral-light);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="2" fill="white" opacity="0.1"/></svg>');
  opacity: 5;
  animation: drift 30s linear infinite;
}

@keyframes drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(60px, 60px);
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: var(--neutral-light);
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* =======================
   Footer Styling – TrisoSight
   ======================= */
/* =======================
   Footer Styling – TrisoSight
   ======================= */

footer {
  background-color: #031f1f !important;
  color: #ffffff  !important;
  padding: 2.5rem 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
 
}

@media (max-width: 968px) {
  footer {
    margin-left: 0;
  }
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  color: #ffffff;
}

.footer-section h4 {
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 0.6rem;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-section a:hover {
  color: #3EDBF0; /* Aqua accent */
  text-shadow: 0 0 6px rgba(62, 219, 240, 0.6);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.573);
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #ffffff !important;
  opacity: 1 !important;
  letter-spacing: 0.3px;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.footer-bottom:hover {
  color: #3EDBF0;
  text-shadow: 0 0 8px rgba(62, 219, 240, 0.7);
}


/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  gap: 0.5rem;
}

.tab-button {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease;
}

.tab-button.active {
  color: var(--primary);
}

.tab-button.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--primary);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Modals */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--neutral-light);
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

thead {
  background-color: rgba(0, 124, 145, 0.1);
}

th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  border-bottom: 2px solid var(--border);
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background-color: rgba(0, 124, 145, 0.05);
}

/* Spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid var(--border);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s linear infinite;
}

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

/* Progress Bar */
.progress {
  width: 100%;
  height: 8px;
  background-color: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  width: 0%;
  transition: width 0.3s ease;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
}

.breadcrumb li a {
  color: var(--primary);
}

.breadcrumb li.active {
  color: var(--secondary);
}

.breadcrumb li::after {
  content: "›";
  margin-left: 0.5rem;
  color: var(--secondary);
}

.breadcrumb li:last-child::after {
  content: "";
}

/* Utility Classes */
.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-muted {
  color: var(--secondary);
}
.text-primary {
  color: var(--primary);
}
.text-accent {
  color: var(--accent);
}
.text-success {
  color: var(--success);
}
.text-warning {
  color: var(--warning);
}

.bg-light {
  background-color: var(--background);
}
.bg-white {
  background-color: var(--neutral-light);
}
.bg-primary {
  background-color: var(--primary);
  color: var(--neutral-light);
}

.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}

.cursor-pointer {
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  nav .container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 2rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 0.9rem;
  }
  th,
  td {
    padding: 0.5rem;
  }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* =========================
   Sidebar Styling - TrisoSight
   ========================= */

/* Desktop Sidebar - fixed */
/* --- Fixed Sidebar Layout --- */
.sidebar {
  position: fixed;
  top: 0;                     /* Stick from very top */
  left: 0;
  width: 280px;
  height: 100vh;              /* Full viewport height */
  background: linear-gradient(180deg, #007c91 0%, #005f6d 100%);
  color: #ffffff;
  padding: 25px 20px;
  box-shadow: 4px 0 20px rgba(0,0,0,0.25);
  font-family: 'Poppins', sans-serif;
  overflow-y: auto;           /* scrolls inside if content is long */
  z-index: 1000;
}


/* Sidebar Header */
.sidebar h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #3EDBF0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid rgba(62, 219, 240, 0.3);
  padding-bottom: 10px;
}

/* Sidebar Navigation */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin-bottom: 8px;
}/* Normal link hover styles (keep same) */
.sidebar ul li a {
  display: block;
  padding: 12px 16px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

/* Sticky Active Link */
.sidebar ul li a.active {
  position: sticky;
  top: 10px;  /* Pinned offset from top */
  background-color: rgba(62, 219, 240, 0.35);
  border-left-color: #3EDBF0;
  color: #3EDBF0;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(62, 219, 240, 0.3);
  z-index: 10;
}

.sidebar ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: rgba(62, 219, 240, 0.15);
  transition: width 0.3s ease;
  z-index: -1;
}

.sidebar ul li a:hover::before {
  width: 100%;
}

.sidebar ul li a:hover {
  background-color: rgba(62, 219, 240, 0.2);
  border-left-color: #3EDBF0;
  color: #ffffff;
  font-weight: 600;
  transform: translateX(5px);
}
.sidebar ul li a.active {
  background-color: rgba(62, 219, 240, 0.35);
  border-left: 4px solid #3EDBF0;
  color: #3EDBF0;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(62, 219, 240, 0.3);
}


/* Main Content Adjustment */
.main-content {
  margin-left: 280px;  /* same as sidebar width */
  padding: 2.5rem;
  background-color: var(--background);
  min-height: 100vh;
}


/* =========================
   Mobile Sidebar - Slide-in
   ========================= */
@media (max-width: 968px) {
  .sidebar {
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    z-index: 1500;
    transition: left 0.3s ease;
    box-shadow: none;
  }

  .sidebar.active {
    left: 0;
    box-shadow: 4px 0 30px rgba(0,0,0,0.5);
  }

  .main-content {
    margin-left: 0;
    padding: 1.5rem;
  }

  /* Overlay for mobile sidebar */
  .sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1400;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .sidebar-overlay.active {
    display: block;
    opacity: 1;
  }
}

/* Sidebar Toggle Button */
.sidebar-toggle {
  display: none;
  background: var(--primary);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #ffffff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.sidebar-toggle:hover {
  background: var(--highlight);
  transform: scale(1.05);
}

@media (max-width: 968px) {
  .sidebar-toggle {
    display: block;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
  }

  nav .container {
    position: relative;
  }

  nav .nav-links {
    display: none;
  }

  .logo {
    font-size: 1.5rem;
    margin-left: 50px;
  }

  .logo-img {
    width: 45px;
    height: 45px;
  }

  .nav-buttons {
    margin-left: 0;
  }
}

/* Scrollbar for Sidebar */
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(62, 219, 240, 0.5);
  border-radius: 4px;
  transition: background 0.3s ease;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(62, 219, 240, 0.8);
}
