:root {
  /* Mondly Light Mode Aesthetic */
  --bg-color: #eef2f6; /* Light grayish-blue background */
  --surface-color: #ffffff; /* Stark white cards */
  --sidebar-bg: #ffffff;
  --text-primary: #1d1f27; /* Deep almost black */
  --text-secondary: #6e7582; /* Soft gray */
  --text-muted: #a1a9b8;
  
  --primary-color: #7b42f6; /* Vibrant purple */
  --primary-hover: #6025e8;
  --accent-color: #fca311; /* Orange/Yellow for warnings/accents */
  
  --border-color: #e1e5ee;
  --border-light: #f1f3f8;
  --hover-bg: #f4f6fb;
  
  --border-radius: 20px;
  --border-radius-sm: 10px;
  --border-radius-pill: 50px;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
  /* Mondly Dark Mode Alternative */
  --bg-color: #121318;
  --surface-color: #1a1c23;
  --sidebar-bg: #1a1c23;
  --text-primary: #f8f9fa;
  --text-secondary: #a1a9b8;
  --text-muted: #6e7582;
  
  --border-color: #2c303d;
  --border-light: #20232d;
  --hover-bg: #222530;
  
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars (Notion Style) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(135, 131, 120, 0.3);
  border-radius: 10px;
  border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(135, 131, 120, 0.5);
}

/* Base Panel / Card */
.glass-panel, .card {
  background: var(--surface-color);
  border: 1px solid var(--border-light);
  border-radius: var(--border-radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.875rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { color: var(--text-primary); margin-bottom: 1rem; }

/* Forms & Inputs */
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="datetime-local"],
input[type="url"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: var(--border-radius-sm);
  border: none;
  background: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px var(--border-color);
  transition: box-shadow 0.1s ease-in;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--primary-color), 0 0 0 2px rgba(35, 131, 226, 0.2);
}
input::placeholder, textarea::placeholder {
  color: var(--text-muted);
}

/* Custom Select Dropdowns */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(55, 53, 47, 0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1em;
  padding-right: 2.5rem;
  cursor: pointer;
}
@media (prefers-color-scheme: dark) {
  select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.25rem;
  border-radius: var(--border-radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  user-select: none;
  letter-spacing: 0.01em;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  box-shadow: 0 4px 10px rgba(123, 66, 246, 0.25);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(123, 66, 246, 0.35);
  transform: translateY(-1px);
}
.btn-secondary {
  background-color: var(--surface-color);
  color: var(--text-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background-color: var(--hover-bg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.btn-block {
  width: 100%;
}

/* Utilities */
.container {
  max-width: 900px; /* Notion style is usually a bit narrower */
  margin: 0 auto;
  padding: 0 1.5rem;
}
.text-center { text-align: center; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }

/* Responsive Flex Utilities */
.full-width-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

@media (max-width: 900px) {
    .full-width-section {
        margin-left: -1.5rem; /* Match container padding */
        margin-right: -1.5rem;
        width: calc(100% + 3rem);
        left: auto;
        right: auto;
    }
}

.flex-stack {

    display: flex;
    flex-direction: row;
    gap: 1rem;
}

@media (max-width: 768px) {
    .flex-stack {
        flex-direction: column;
        align-items: stretch !important;
        text-align: center;
    }
}

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

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


/* Dashboard Layout & Responsive Sidebar */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.sidebar {
  width: 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  flex-shrink: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}
.sidebar-logo {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0 1rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.sidebar-logo span {
  background: var(--text-primary);
  color: var(--bg-color);
  border-radius: 4px;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: bold;
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 0.35rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background-color 100ms ease-in;
  margin: 0.125rem 0.5rem;
  border-radius: var(--border-radius-sm);
}
.nav-link svg {
  color: var(--text-muted);
}
.nav-link:hover, .nav-link.active {
  background: var(--hover-bg);
  color: var(--text-primary);
}
.nav-link:hover svg, .nav-link.active svg {
  color: var(--text-primary);
}
.main-content {
  flex: 1;
  padding: 3rem 4rem;
  background: var(--bg-color);
  min-width: 0; /* Prevents flex children from blowing out width */
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
  display: none;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-light);
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 90;
}
.menu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.25rem;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle:hover {
  background: var(--hover-bg);
}

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

/* Grid System */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Responsive Media Queries */
@media (max-width: 768px) {
  /* Mobile Sidebar Logic */
  .sidebar {
    position: fixed;
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .mobile-header {
    display: flex;
  }
  .sidebar-overlay.show {
    display: block;
    opacity: 1;
  }
  
  /* Adjust Main Content */
  .main-content {
    padding: 1.5rem;
  }
  
  /* Stack Grids */
  .grid-cols-2, .grid-cols-3 {
    grid-template-columns: 1fr;
  }
  
  /* Scrollable Tables */
  .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table {
    min-width: 600px; /* Forces scroll on small devices */
  }
}

/* Alerts */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-sm);
  margin-bottom: 1.5rem;
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}
.alert-error {
  background: rgba(235, 87, 87, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(235, 87, 87, 0.2);
}
.alert-success {
  background: rgba(15, 169, 88, 0.1);
  color: #0fa958;
  border: 1px solid rgba(15, 169, 88, 0.2);
}

/* Tables Notion Style */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th {
  text-align: left;
  padding: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  border-bottom: 1px solid var(--border-light);
}
td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}
tr:hover td {
  background: var(--hover-bg);
}

/* Landing Page Specifics */
.hero-landing {
    position: relative;
    padding: 12rem 2rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
    min-height: 70vh;
    justify-content: center;
    width: 100%;
}


@media (max-width: 768px) {
    .hero-landing {
        padding: 6rem 1.5rem;
        margin-top: 0;
        min-height: 400px;
    }
}



.hero-landing::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.6));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-landing h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-landing p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Features Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: color-mix(in srgb, var(--primary-color) 10%, transparent);
    color: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.5rem;
}

/* Testimonials Slider */
.testimonials-section {
    padding: 6rem 0;
    background: color-mix(in srgb, var(--primary-color) 3%, transparent);
    border-radius: 50px;
    overflow: hidden; /* Critical for slider */
    margin-bottom: 6rem;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .testimonials-section {
        border-radius: 0;
        padding: 4rem 0;
    }
}


.testimonial-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: slideTestimonials 30s linear infinite;
    padding-left: 1rem; /* Initial offset for better start */
}

@keyframes slideTestimonials {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 1rem)); } /* -1rem to account for half the gap */
}


.testimonial-card {
    width: 350px;
    background: var(--surface-color);
    padding: 2rem;
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hover-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-color);
}

/* NIC Card Style Student ID */
.nic-card {
    width: 100%;
    max-width: 450px;
    min-height: 260px;
    background: linear-gradient(135deg, #0f0f12 0%, #23232b 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255,255,255,0.08);
    margin: 0 auto 2.5rem;
}

.nic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.nic-body {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    z-index: 2;
}

.nic-photo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
}

.nic-details h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #fff;
}

.nic-details p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nic-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.nic-id-number {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: rgba(255,255,255,0.9);
}

.nic-logo {
    font-weight: 800;
    font-size: 1rem;
    opacity: 0.5;
}

@media (max-width: 480px) {
    .nic-card {
        aspect-ratio: auto;
        padding: 1.25rem;
    }
    .nic-id-number {
        font-size: 1.2rem;
    }
    .nic-photo {
        width: 80px;
        height: 80px;
    }
}

/* Tutor Spotlight Responsive */
.tutor-spotlight {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 6rem;
    padding: 4rem !important;
    overflow: hidden;
    position: relative;
}

@media (max-width: 992px) {
    .tutor-spotlight {
        flex-direction: column-reverse;
        padding: 2rem !important;
        text-align: center;
        gap: 2rem;
    }
    .tutor-image-container {
        width: 100% !important;
        max-width: 300px;
    }
    .tutor-stats {
        justify-content: center;
    }
}

.tutor-stats {
    display: flex;
    gap: 2rem;
}


