/* ============================================
   ChroniTwin - UNIFIED STYLESHEET
   Dark Mode, Neural Blue, Glowing Effects
   All pages use this single CSS file
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
font-family: "Poppins", sans-serif;
}

:root {
  --bg-primary: #060b17;
  --bg-secondary: #0e1627;
  --accent-primary: #3a80f6;
  --accent-secondary: #00c4ff;
  --accent-glow: #8aefff;
  --text-primary: #e6ecff;
  --text-muted: #9aa4c2;
  --border-color: #1c2942;
  --success: #00ff88;
  --danger: #ff3366;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}
.graph-canvas-wrapper {
  width: 100%;
  height: 500px;
  background: rgba(10, 15, 30, 0.9);
  border-radius: 12px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

#lifeGraphCanvas {
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}


.theory-section {
  margin-top: 30px;
  background: rgba(10, 15, 30, 0.8);
  padding: 20px;
  border-radius: 12px;
  line-height: 1.6;
  box-shadow: 0 0 15px rgba(0, 200, 255, 0.1);
}

.theory-section h2 {
  color: #00c4ff;
  margin-bottom: 10px;
}

.theory-section p {
  color: #e6ecff;
}
@media print {
  .sidebar, .navbar {
    display: none !important;
  }
  .main-content {
    margin: 0 !important;
    padding: 30px !important;
    width: 100% !important;
  }
}


/* ============================================
   TYPOGRAPHY & UTILITIES
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

p {
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(6, 16, 41, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--border-color);
  z-index: 1000;
  animation: slideDown 0.5s ease;
  height: 75px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

.navbar-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 10px var(--accent-secondary);
  }
  50% {
    box-shadow: 0 0 30px var(--accent-secondary);
  }
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  color: var(--text-primary);
  font-size: 18px;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
 .logo {
  font-size: 20px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}
.logo-glow {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-glow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
.logo-img {
  width: 52px;     /* reduce this value to make it smaller */
  height: auto;
  border-radius: 50%; /* optional: keeps rounded corners */
  margin-right: 5px;
  margin-left: 18px;
  vertical-align: middle;
  object-fit: cover;
}

.logo-text {
  font-size: 32px;  /* reduce text size slightly for better balance */
  font-weight: 700;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
}
.button-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary) !important;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.5);
  display: inline-block;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: pulseGlow 3s ease-in-out infinite;
}

/* Soft glowing pulse animation */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 25px rgba(58, 128, 246, 0.4), 0 0 40px rgba(58, 128, 246, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 45px rgba(58, 128, 246, 0.7), 0 0 60px rgba(58, 128, 246, 0.4);
    transform: scale(1.03);
  }
}

/* Shimmer trail effect */
.button-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.25);
  transform: skewX(-20deg);
  transition: all 0.5s ease;
}

.button-primary:hover::after {
  left: 200%;
}

.button-primary:hover {
  box-shadow: 0 0 50px rgba(58, 128, 246, 0.8);
  transform: scale(1.07);
}


.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}
@keyframes btnPulse {
  0% {
    box-shadow: 0 0 15px rgba(0, 180, 255, 0.4), 0 0 25px rgba(0, 180, 255, 0.2);
  }
  100% {
    box-shadow: 0 0 35px rgba(0, 180, 255, 0.8), 0 0 55px rgba(0, 180, 255, 0.4);
  }
}


/* ============================================
   HERO SECTION
   ============================================ */

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--text-color, #fff);
  background: url("images/Neuro.jpeg") center center/cover no-repeat;
}

/* keep your animation layer on top of the background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* make sure text stays visible over both background + animation */
.hero-content {
  position: relative;
  z-index: 2;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 55px;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  background: linear-gradient(90deg, #dce7e9, #ffffff, #8ddff0);
  background-size: 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 20px;
  font-family: "Poppins", sans-serif;
  color: white;
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ============================================
   FEATURES PREVIEW
   ============================================ */

.features-preview {
  padding: 100px 20px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.features-preview h2 {
  text-align: center;
  font-size: 48px;
  margin-bottom: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.feature-card {
  background: rgba(14, 22, 39, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 40px rgba(0, 196, 255, 0.3);
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 50px;
  margin-bottom: 20px;
  display: inline-block;
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--accent-primary);
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  padding: 14px 40px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.5);
}

.btn-primary:hover {
  box-shadow: 0 0 60px rgba(58, 128, 246, 0.8);
  transform: scale(1.05);
}

.btn-secondary {
  border: 2px solid var(--accent-secondary);
  color: var(--accent-secondary);
}

.btn-secondary:hover {
  background: rgba(0, 196, 255, 0.1);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.5);
}

.logout-btn {
  background: var(--danger);
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.logout-btn:hover {
  box-shadow: 0 0 30px rgba(255, 51, 102, 0.5);
  transform: scale(1.05);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */

.dashboard-container {
  display: flex;
  min-height: 100vh;
  margin-top: 70px;
}

.sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  padding: 20px 20px;
  position: fixed;
  left: 0;
  top: 70px;
  width: 250px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  z-index: 100;
}

.sidebar h3 {
  color: var(--accent-primary);
  margin: 25px 0 15px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.sidebar h3:first-child {
  margin-top: 0;
}

.sidebar-link {
  display: block;
  padding: 12px 15px;
  color: var(--text-primary);
  margin-bottom: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
  font-size: 14px;
  cursor: pointer;
}

.sidebar-link:hover,
.sidebar-link.active {
  background: rgba(58, 128, 246, 0.1);
  border-left-color: var(--accent-secondary);
  color: var(--accent-secondary);
}

.main-content {
  margin-left: 250px;
  padding: 40px;
  width: 100%;
  flex: 1;
  min-height: 100%;
}

.main-content h1 {
  font-size: 36px;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.main-content h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--accent-primary);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  gap: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.5);
  flex-shrink: 0;
}

/* ============================================
   DASHBOARD GRID & CARDS
   ============================================ */

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.dashboard-card {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  width: 100%;
}

.dashboard-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.2);
}

.card-title {
  color: var(--accent-primary);
  margin-bottom: 20px;
  font-size: 18px;
  font-weight: 600;
}

.emotion-meter {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.emotion-circle {
  width: 120px;
  height: 120px;
  border: 4px solid var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 50px;
  background: radial-gradient(circle, rgba(0, 196, 255, 0.1), transparent);
  box-shadow: 0 0 40px rgba(0, 196, 255, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

.emotion-label {
  text-align: center;
}

.emotion-label strong {
  color: var(--text-primary);
  display: block;
  margin-bottom: 5px;
}

.emotion-label small {
  color: var(--text-muted);
  font-size: 12px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.stat-item {
  background: rgba(58, 128, 246, 0.1);
  padding: 20px 15px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(58, 128, 246, 0.2);
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: var(--accent-secondary);
  margin-bottom: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-content {
  line-height: 1.8;
  color: var(--text-muted);
}

.card-content p {
  margin-bottom: 15px;
}

.card-content strong {
  color: var(--text-primary);
}

.card-insight {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.card-insight strong {
  color: var(--accent-secondary);
}

/* ============================================
   PAGE SECTIONS
   ============================================ */

.page-section {
  margin-top: 70px;
  padding: 60px 20px;
  min-height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.section-container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
}

.section-title {
  font-size: 48px;
  margin-bottom: 40px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

.section-content h3 {
  color: var(--accent-primary);
  font-size: 24px;
  margin: 30px 0 15px;
}

.section-content p {
  margin-bottom: 15px;
}

/* ============================================
   FORMS
   ============================================ */

.form-container {
  max-width: 500px;
  margin: 0 auto;
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 50px 40px;
}

.form-container h1 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 32px;
}

.form-container p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(14, 22, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 14px;
  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,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.3);
}

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

.form-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.form-link {
  text-align: center;
  margin-top: 20px;
}

.form-link a {
  color: var(--accent-secondary);
}

.form-link a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background:rgba(6, 16, 41, 0.95);
  border-top: 2px solid var(--border-color);
  padding: 60px 20px 20px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-section h4 {
  margin-bottom: 15px;
  color: var(--accent-primary);
  font-size: 16px;
}

.footer-section p {
  color: var(--text-muted);
  font-size: 14px;
}

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

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-muted);
  transition: all 0.3s ease;
  font-size: 14px;
}

.footer-section a:hover {
  color: var(--accent-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 14px;
}

/* ============================================
   SPECIAL ELEMENTS
   ============================================ */

.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.accordion-header {
  padding: 20px;
  background: rgba(58, 128, 246, 0.1);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: rgba(58, 128, 246, 0.2);
}

.accordion-content {
  padding: 20px;
  background: rgba(14, 22, 39, 0.6);
  display: none;
  color: var(--text-muted);
  line-height: 1.8;
}

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

.toggle-switch {
  display: inline-block;
  width: 50px;
  height: 28px;
  background: var(--border-color);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: background 0.3s ease;
}

.toggle-switch.active {
  background: var(--accent-secondary);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: left 0.3s ease;
}

.toggle-switch.active::after {
  left: 24px;
}

.memory-card {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.memory-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.2);
}

.memory-card h3 {
  color: var(--accent-secondary);
  margin-bottom: 10px;
  font-size: 18px;
}

.memory-card p {
  color: var(--text-muted);
  font-size: 14px;
}

.memory-card small {
  display: block;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.upload-area {
  border: 2px dashed var(--accent-secondary);
  border-radius: 15px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0, 196, 255, 0.05);
}

.upload-area:hover {
  background: rgba(0, 196, 255, 0.1);
  border-color: var(--accent-glow);
}

.upload-area p {
  color: var(--text-muted);
  margin: 10px 0;
}

.upload-area strong {
  color: var(--accent-secondary);
  display: block;
  margin-bottom: 5px;
}

/* ============================================
   CANVAS
   ============================================ */

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

/* ============================================
   PAGE HEADER (All Pages)
   ============================================ */

.page-header {
  margin-bottom: 40px;
}

.page-header h1 {
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-size: 36px;
}

.page-header p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ============================================
   UPLOAD PAGE
   ============================================ */

.upload-form-wrapper {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 40px;
  max-width: 100%;
}

.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 15px;
  padding: 60px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 30px;
  background: rgba(58, 128, 246, 0.05);
}

.upload-zone:hover {
  border-color: var(--accent-secondary);
  background: rgba(58, 128, 246, 0.1);
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.upload-text {
  color: var(--text-primary);
  margin-bottom: 8px;
  font-weight: 600;
}

.upload-hint {
  color: var(--text-muted);
  font-size: 14px;
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-primary);
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(14, 22, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.3);
}

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

.form-actions {
  display: flex;
  gap: 15px;
}

.submit-btn,
.cancel-btn {
  padding: 14px 30px;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.submit-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.5);
}

.submit-btn:hover {
  box-shadow: 0 0 60px rgba(58, 128, 246, 0.8);
}

.cancel-btn {
  background: rgba(14, 22, 39, 0.8);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cancel-btn:hover {
  border-color: var(--accent-secondary);
}

/* ============================================
   CHAT PAGE (Echo Dialogue)
   ============================================ */

.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  padding: 0 !important;
}

.chat-header {
  padding: 30px 40px;
  background: rgba(14, 22, 39, 0.6);
  border-bottom: 1px solid var(--border-color);
  border-radius: 15px 15px 0 0;
}

.chat-header h1 {
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.chat-header p {
  color: var(--text-muted);
  font-size: 14px;
}

.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  display: flex;
  gap: 15px;
  animation: slideIn 0.4s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.user {
  justify-content: flex-end;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.message.ai .message-avatar {
  background: rgba(58, 128, 246, 0.2);
  border: 1px solid var(--accent-primary);
}

.message.user .message-avatar {
  background: rgba(0, 196, 255, 0.2);
  border: 1px solid var(--accent-secondary);
}

.message-content {
  max-width: 100%;
  padding: 15px 20px;
  border-radius: 15px;
  word-wrap: break-word;
  flex: 0 1 auto;
}

.message.ai .message-content {
  background: rgba(58, 128, 246, 0.1);
  border: 1px solid var(--accent-primary);
  color: var(--text-primary);
}

.message.user .message-content {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
}

.chat-input-area {
  padding: 30px 40px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 15px;
  background: rgba(14, 22, 39, 0.6);
  border-radius: 0 0 15px 15px;
}

.chat-input-wrapper {
  flex: 1;
  display: flex;
  gap: 10px;
}

.chat-input-wrapper input {
  flex: 1;
  background: rgba(14, 22, 39, 0.8);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  padding: 12px 20px;
  color: var(--text-primary);
  font-family: inherit;
}

.chat-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  box-shadow: 0 0 20px rgba(0, 196, 255, 0.3);
}

.send-btn {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: var(--bg-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn:hover {
  box-shadow: 0 0 30px rgba(58, 128, 246, 0.5);
}

/* ============================================
   LIFE GRAPH PAGE
   ============================================ */

.graph-canvas-wrapper {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 40px;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lifeGraphCanvas {
  width: 100% !important;
  height: 500px !important;
  border-radius: 10px;
  display: block;
}

.graph-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.legend-item {
  padding: 15px;
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.legend-color {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-item strong {
  color: var(--text-primary);
  font-size: 14px;
}

.legend-item::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 13px;
}

/* ============================================
   TIMELINE PAGE
   ============================================ */

.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-left: 0;
  margin-right: auto;
  width: calc(50% - 40px);
  text-align: right;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
  margin-right: 0;
  width: calc(50% - 40px);
  text-align: left;
}

.timeline-node {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--accent-secondary);
  border: 4px solid var(--bg-primary);
  border-radius: 50%;
  top: 0;
  z-index: 10;
  box-shadow: 0 0 20px var(--accent-secondary);
}

.timeline-content {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 30px rgba(0, 196, 255, 0.2);
}

.timeline-year {
  color: var(--accent-primary);
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-title {
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.timeline-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
  font-size: 14px;
}

.timeline-count {
  font-size: 12px;
  color: var(--accent-secondary);
}

/* ============================================
   REPORTS PAGE
   ============================================ */

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.report-card {
  background: rgba(14, 22, 39, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 15px;
  padding: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.report-card:hover {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 40px rgba(0, 196, 255, 0.3);
  transform: translateY(-10px);
}

.report-icon {
  font-size: 48px;
  margin-bottom: 15px;
}

.report-card h3 {
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-size: 20px;
}

.report-date {
  font-size: 12px;
  color: var(--accent-secondary);
  margin-bottom: 15px;
}

.report-description {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
}

.report-metrics {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.metric {
  text-align: center;
}

.metric-value {
  font-size: 20px;
  color: var(--accent-secondary);
  font-weight: bold;
}

.metric-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-img {
  width: 70px;         /* small, neat */
  height: 70px;
  object-fit: contain;  /* keeps proportions */
  border-radius: 50%;   /* optional circular shape */
  margin-top: 2px;      /* minor visual balance tweak */
}

.logo-text {
  font-size: 35px;
  font-weight: 700;
  color: var(--accent-secondary);
  letter-spacing: 0.5px;
  line-height: 1;
}
.logo:hover .logo-text {
  text-shadow: 0 0 10px var(--accent-secondary);
}

.logo:hover .logo-img {
  filter: drop-shadow(0 0 8px var(--accent-secondary));
}

/* ============================================
   RESPONSIVE - CHAT PAGE FIX
   ============================================ */

@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .timeline-item:nth-child(odd) .timeline-content,
  .timeline-item:nth-child(even) .timeline-content {
    width: calc(100% - 100px);
    margin-left: 80px;
    margin-right: 0;
    text-align: left;
  }

  .timeline-node {
    left: 30px;
  }

  .chat-container {
    height: auto;
  }

  .chat-window {
    min-height: 400px;
  }

  .message-content {
    max-width: 85%;
  }

  .reports-grid {
    grid-template-columns: 1fr;
  }

  .graph-legend {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 28px;
  }

  .btn {
    padding: 12px 30px;
    font-size: 14px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-container {
    padding: 20px;
  }
}