/* Modern LearnHub Styles - Unified Theme */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;
  --danger: #ef4444;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --card-bg: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Dark Mode Variables */
body.dark-mode {
  --text: #f3f4f6;
  --text-light: #9ca3af;
  --bg: #111827;
  --card-bg: #1f2937;
  --border: #374151;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
}

/* High Contrast Mode Variables */
body.high-contrast {
  --text: #000000;
  --text-light: #333333;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #000000;
  --primary: #0000ff;
  --primary-dark: #0000cc;
  --primary-light: #3333ff;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.3);
}

body.high-contrast.dark-mode {
  --text: #ffffff;
  --text-light: #cccccc;
  --bg: #000000;
  --card-bg: #1a1a1a;
  --border: #ffffff;
  --primary: #66b3ff;
  --primary-dark: #3399ff;
  --primary-light: #99ccff;
}

/* Font Size Adjustments */
body.font-small {
  font-size: 14px;
}

body.font-large {
  font-size: 18px;
}

body.font-xlarge {
  font-size: 20px;
}


body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
}

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  transition: transform 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.logo:hover {
  transform: scale(1.05);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: nowrap;
}

.user-nav-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border);
  white-space: nowrap;
}

.welcome-text {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.logout-btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.875rem !important;
  min-width: auto;
  white-space: nowrap;
}

/* Feature Card Text Fix */
.feature-card p {
  color: var(--text-light);
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* Dashboard Saved Essays */
.essays-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.essay-item {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: 12px;
}

.essay-main {
  display: flex;
  flex-direction: column;
}

.essay-date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.essay-score .score-badge {
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
}

.loading-text,
.error-text {
  text-align: center;
  padding: 2rem;
  color: var(--text-light);
}

.main-nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* Nav dropdown for Resources */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none !important;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  animation: fadeIn 0.12s ease;
}

/* Settings Dropdown */
.settings-container {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.settings-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  transition: all 0.3s;
  padding: 0.5rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.settings-btn:hover {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: rotate(90deg);
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  min-width: 280px;
  padding: 1rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.settings-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.settings-section {
  margin-bottom: 1.5rem;
}

.settings-section:last-child {
  margin-bottom: 0;
}

.settings-section h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.settings-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s;
  cursor: pointer;
}

.settings-option:hover {
  background: var(--bg);
}

.settings-option label {
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-option input[type="checkbox"],
.settings-option input[type="radio"] {
  width: auto;
  margin: 0;
  cursor: pointer;
}

/* Font size selector in settings */
.font-size-select {
  padding: 0.5rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--card-bg);
  color: var(--text);
  font-size: 0.875rem;
  cursor: pointer;
  min-width: 120px;
  font-family: 'Inter', sans-serif;
}

.font-size-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.settings-link {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.settings-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 48px;
  height: 24px;
  background: var(--border);
  border-radius: 12px;
  transition: background 0.3s;
  cursor: pointer;
}

.toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch.active {
  background: var(--primary);
}

.toggle-switch.active::after {
  transform: translateX(24px);
}

.settings-divider {
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
}

/* Profile Form in Settings */
.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.profile-field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
}

.profile-field input {
  width: 100%;
  padding: 0.625rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.profile-field input:disabled {
  background: var(--bg);
  opacity: 0.6;
  cursor: not-allowed;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: -0.25rem;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.profile-message {
  font-size: 0.75rem;
  padding: 0.5rem;
  border-radius: 6px;
  text-align: center;
  min-height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.profile-message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}


/* Hero Sections */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  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,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  animation: fadeInUp 0.6s ease-out;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.95;
  animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: float 3s ease-in-out infinite;
}

.hero-extended {
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
}

.hero-card .card-inner {
  background: transparent;
}

.hero-card h3 {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
  flex: 1;
}

.container.small {
  max-width: 800px;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section.accent {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
  margin: 3rem 0;
  padding: 4rem 2rem;
  border-radius: 16px;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeIn 0.5s ease-out forwards;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.feature-card,
.resource-card,
.topic-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover,
.resource-card:hover,
.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card h3,
.resource-card h3,
.topic-card h4 {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Grids */
.features-grid,
.resources-grid,
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  font-family: 'Montserrat', sans-serif;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  background: var(--card-bg);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
}

.btn.primary:hover {
  box-shadow: var(--shadow-xl);
}

.btn.ghost {
  background: transparent;
  border: 2px dashed var(--border);
}

.btn.ghost:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Forms */
input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  background: var(--bg);
  color: var(--text);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

/* Dashboard Specific */
.dashboard-header {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.dashboard-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-icon {
  font-size: 2rem;
}

.card-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  margin: 0;
  color: var(--text);
}

.links-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 12px;
  border: 2px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
}

.link-item:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateX(4px);
}

.link-emoji {
  font-size: 1.5rem;
}

.link-item strong {
  display: block;
  font-weight: 600;
  color: var(--text);
}

.link-item small {
  display: block;
  color: var(--text-light);
  font-size: 0.875rem;
}

.schedule-card {
  grid-column: span 2;
}

.schedule-input-group {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.saved-schedule-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border);
}

.saved-schedule-section h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.notes-list,
.todo-list {
  list-style: none;
  padding: 0;
  margin-top: 1rem;
}

.notes-list li,
.todo-list li {
  padding: 1rem;
  margin: 0.75rem 0;
  background: var(--bg);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete-btn {
  background: var(--danger);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.2s;
}

.delete-btn:hover {
  background: #dc2626;
}

.progress-bar-container {
  width: 100%;
  height: 20px;
  background: var(--bg);
  border-radius: 10px;
  overflow: hidden;
  margin: 1rem 0;
  border: 2px solid var(--border);
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  transition: width 0.5s ease;
  border-radius: 8px;
}

/* Peer Tutoring Specific */
.school-hero {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(139, 0, 0, 0.1) 0%, rgba(139, 0, 0, 0.05) 100%);
  border-radius: 16px;
  border: 2px solid rgba(139, 0, 0, 0.2);
}

.school-logo {
  max-width: 150px;
  height: auto;
  border-radius: 12px;
}

.tutoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.tutoring-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.tutoring-card h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
}

.info-box {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border: 2px solid var(--border);
}

.info-box h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.info-box ul {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--text-light);
}

.info-box li {
  margin: 0.5rem 0;
}

/* Tutoring Profile Section */
.tutoring-profile-section {
  margin-top: 2rem;
}

.tutoring-profile-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.tutoring-profile-card h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.profile-form-column h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.profile-actions-row {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.error-message {
  color: var(--danger);
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--danger);
}

.success-message {
  color: var(--success);
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  border-left: 3px solid var(--success);
}

/* Searchable Select Component */
.searchable-select-container {
  position: relative;
  margin-bottom: 1rem;
}

.searchable-select-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  background: var(--card-bg);
  color: var(--text);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.searchable-select-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.searchable-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 300px;
  overflow-y: auto;
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  margin-top: 0.25rem;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.dropdown-empty {
  padding: 1rem;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

/* Selected Items */
.selected-items-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  min-height: 2.5rem;
  padding: 0.5rem;
  background: var(--bg);
  border-radius: 8px;
  border: 2px dashed var(--border);
}

.selected-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--primary);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.selected-remove {
  background: rgba(255, 255, 255, 0.3);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.125rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}

.selected-remove:hover {
  background: rgba(255, 255, 255, 0.5);
}

.selected-empty {
  color: var(--text-light);
  font-style: italic;
  padding: 0.5rem;
}

/* Tutoring Results */
.tutoring-results-section {
  margin-top: 2rem;
}

.tutoring-results-section h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.tutoring-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.buddy-match-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.buddy-match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.buddy-match-card .buddy-avatar {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.buddy-info h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.buddy-info p {
  margin: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.875rem;
}

.buddy-info strong {
  color: var(--text);
  font-weight: 600;
}

.connect-buddy-btn.connected {
  background: var(--success);
  cursor: default;
}

/* Minimized Sections */
.schedule-details {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.schedule-summary {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  padding: 0.5rem;
  user-select: none;
}

.schedule-summary:hover {
  color: var(--primary);
}

.schedule-summary::-webkit-details-marker {
  display: none;
}

.schedule-details[open] .schedule-summary {
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0.75rem;
}

/* Settings Page */
.settings-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.settings-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.settings-card h2 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.settings-option-full {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-radius: 8px;
  transition: background 0.2s;
  margin-bottom: 0.5rem;
}

.settings-option-full:hover {
  background: var(--bg);
}

.settings-option-full label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 0.9375rem;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}

/* Calendar */
.calendar-mock {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-top: 1rem;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.slot {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  border: 2px solid var(--border);
  transition: all 0.2s;
}

.slot:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 16px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl);
  position: relative;
  color: var(--text);
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-light);
  line-height: 1;
  transition: color 0.2s;
}

.close-btn:hover {
  color: var(--text);
}

.spinner {
  display: inline-block;
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 2rem auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.buddy-card {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  margin: 1rem 0;
  border: 2px solid var(--border);
}

.buddy-avatar {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

/* Resources Page */
.resource-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 1rem;
  display: block;
  object-fit: contain;
  background: var(--card-bg);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

.topic-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* HoloClass Hero */
.holoclass-hero {
  text-align: center;
  padding: 4rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
  border-radius: 16px;
  margin: 2rem 0;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.holoclass-hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Footer */
.site-footer {
  background: var(--card-bg);
  border-top: 2px solid var(--border);
  padding: 2rem;
  margin-top: auto;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  color: var(--text-light);
}

.footer-grid strong {
  font-family: 'Montserrat', sans-serif;
  color: var(--primary);
  font-size: 1.125rem;
}

.footer-grid a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-grid a:hover {
  color: var(--primary);
}

/* Utility Classes */
.muted {
  color: var(--text-light);
}

.hidden {
  display: none;
}

html {
  scroll-behavior: smooth;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    display: none;
  }

  .container {
    padding: 2rem 1rem;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .schedule-card {
    grid-column: span 1;
  }

  .tutoring-grid {
    grid-template-columns: 1fr;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .tutoring-results-grid {
    grid-template-columns: 1fr;
  }

  .profile-actions-row {
    flex-direction: column;
  }

  .profile-actions-row .btn {
    width: 100%;
  }

  .searchable-select-dropdown {
    max-height: 200px;
  }

  .features-grid,
  .resources-grid,
  .topic-grid {
    grid-template-columns: 1fr;
  }

  .calendar-header,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    text-align: center;
  }

  .cta-row {
    flex-direction: column;
  }

  .holoclass-hero h1 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 1rem;
  }

  .logo {
    font-size: 1.25rem;
  }

  .btn {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }
}

/* ELA Analyzer Specific Styles */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.btn-container {
  text-align: center;
  margin: 2rem 0;
}

.char-count {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.char-count.valid {
  color: var(--success);
  font-weight: 600;
}

.upload-box {
  margin-top: 1rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: var(--bg);
  color: var(--text-light);
}

.upload-box:hover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

.upload-box.drag-over {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

/* Results Section */
.results-header {
  text-align: center;
  margin-bottom: 2rem;
}

.results-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.score-display {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.score-circle {
  position: relative;
  width: 150px;
  height: 150px;
}

.score-circle svg {
  transform: rotate(-90deg);
}

.bg-circle {
  fill: none;
  stroke: var(--border);
  stroke-width: 8;
}

.progress-circle {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.score-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.results-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.result-section {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--border);
}

.result-section.strengths {
  border-left-color: var(--success);
}

.result-section.improvements {
  border-left-color: var(--warning);
}

.result-section.suggestions {
  border-left-color: var(--info);
}

.result-section h3 {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.5rem;
}

.result-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.result-section li {
  padding: 0.75rem;
  margin: 0.5rem 0;
  background: var(--bg);
  border-radius: 8px;
  border-left: 3px solid var(--border);
}

.deep-dive-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: 12px;
}

.deep-dive-hint {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Deep Dive Analysis */
.deep-dive-content {
  margin-top: 2rem;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.deep-dive-essay,
.deep-dive-feedback {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.annotated-text {
  line-height: 2;
  font-size: 1rem;
  color: var(--text);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.highlight {
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
}

.highlight.strength {
  background: rgba(16, 185, 129, 0.2);
  border-bottom: 2px solid var(--success);
}

.highlight.improvement {
  background: rgba(245, 158, 11, 0.2);
  border-bottom: 2px solid var(--warning);
}

.highlight.grammar {
  background: rgba(239, 68, 68, 0.2);
  border-bottom: 2px solid var(--danger);
}

.highlight.style {
  background: rgba(59, 130, 246, 0.2);
  border-bottom: 2px solid var(--info);
}

.highlight:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.highlight.active {
  animation: pulse 0.5s ease-in-out;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.3);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.feedback-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
}

.nav-btn {
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.feedback-counter {
  font-weight: 600;
  color: var(--text);
}

.feedback-list {
  position: relative;
  min-height: 200px;
}

.feedback-item {
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 12px;
  border-left: 4px solid var(--border);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  display: none;
}

.feedback-item.active-slide {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedback-item.strength {
  border-left-color: var(--success);
}

.feedback-item.improvement {
  border-left-color: var(--warning);
}

.feedback-item.grammar {
  border-left-color: var(--danger);
}

.feedback-item.style {
  border-left-color: var(--info);
}

.feedback-item:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow);
}

.feedback-item.active {
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.feedback-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.feedback-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: white;
}

.feedback-badge.strength {
  background: var(--success);
}

.feedback-badge.improvement {
  background: var(--warning);
}

.feedback-badge.grammar {
  background: var(--danger);
}

.feedback-badge.style {
  background: var(--info);
}

.feedback-quote {
  font-style: italic;
  color: var(--text-light);
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 3px solid var(--primary);
}

.feedback-text {
  color: var(--text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .deep-dive-grid {
    grid-template-columns: 1fr;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

/* AUTH PAGE STYLES */

/* GLOBAL RESET & BASE STYLES */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

a {
  color: #153a43;
  text-decoration: none;
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

.page-wrapper {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* NAVIGATION */
.navbar_component {
  background-color: var(--card-bg);
  color: var(--text);
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

/* Standard Button Styles */
.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  /* Prevent scaling issues */
  flex-shrink: 0;
  line-height: normal;
}

.btn:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}



.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: var(--text);
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  float: left;
  position: relative;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
  float: right;
  position: static;
}

.navbar_menu.is-page-height-tablet {
  background-color: var(--card-bg);
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  animation: fadeIn 0.12s ease;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.navbar_menu-button {
  float: right;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  padding: 18px;
  font-size: 24px;
  display: none;
  position: relative;
}

/* AUTH PAGE STYLES */
.auth-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 200px);
  padding: 4rem 2rem;
}

.auth-card {
  width: 100%;
  max-width: 450px;
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

.auth-header p {
  color: #666;
  font-size: 0.95rem;
}

.error-message,
.success-message {
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  display: none;
}

.error-message {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

.success-message {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fcfbfa;
  color: #153a43;
}

.form-group input:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3em;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.btn:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn.primary {
  width: 100%;
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid #e5e7eb;
  color: #1a1a1a;
  font-weight: 500;
  width: 100%;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.google-btn:hover {
  background: #f9fafb;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.divider {
  margin: 1.5rem 0;
  text-align: center;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e5e7eb;
}

.divider span {
  position: relative;
  background: white;
  padding: 0 1rem;
  color: #9ca3af;
  font-size: 0.875rem;
}

.toggle-text {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #666;
}

.toggle-text a {
  color: #4F46E5;
  text-decoration: none;
  font-weight: 600;
}

.toggle-text a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #4F46E5;
  padding-left: 12px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  .navbar_menu {
    border-bottom: 1px solid transparent;
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: var(--card-bg);
  }

  .navbar_menu.is-page-height-tablet {
    border-bottom-style: none;
    height: 100dvh;
    padding-bottom: 6.5rem;
    transition: height 0.5s;
  }

  .navbar_menu-button {
    display: flex;
  }
}

@media screen and (max-width: 767px) {
  .navbar_component {
    height: auto;
  }

  .auth-container {
    padding: 2rem 1rem;
  }

  .auth-card {
    padding: 2rem 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}


/* STYLES FOR DASHBOARD.HTML */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: #fcfbfa;
  color: #153a43;
  line-height: 1.5;
}

/* Navigation */
.navbar_component {
  background-color: #fcfbfa;
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: #153a43;
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.navbar_menu-button {
  cursor: pointer;
  padding: 18px;
  display: none;
}

@media screen and (max-width: 991px) {
  .navbar_menu {
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: #fcfbfa;
  }

  .navbar_menu-button {
    display: flex;
  }
}



/* Dashboard */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: #153a43;
}

.dashboard-header p {
  color: #666;
  font-size: 1.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.dashboard-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.card-header h2 {
  font-size: 1.25rem;
  margin: 0;
  color: #153a43;
}

/* Quick Links */
.quick-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: #153a43;
  transition: all 0.2s;
}

.quick-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.quick-link strong {
  display: block;
  margin-bottom: 0.25rem;
}

.quick-link small {
  color: #666;
  font-size: 0.875rem;
}

/* Form Elements */
input[type="text"] {
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  width: 100%;
  font-size: 1rem;
  transition: border-color 0.2s;
  font-family: 'Montserrat', sans-serif;
}

input[type="text"]:focus {
  outline: none;
  border-color: #4F46E5;
}

button {
  padding: 0.75rem 2rem;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

button:hover {
  background: #4338CA;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
  background: #818cf8;
}

.btn-secondary:hover {
  background: #6366f1;
}

/* Navbar Button Standard */
.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  /* Prevent scaling issues */
  flex-shrink: 0;
  line-height: normal;
}

.btn:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Footer */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #4F46E5;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* Quote styling */
#quoteText {
  font-style: italic;
  color: #153a43;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar_menu-links {
    display: none;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-header h1 {
    font-size: 2rem;
  }
}


/* STYLES FOR ELA-ANALYZER.HTML */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  background-color: #fcfbfa;
  color: #153a43;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navigation */
.navbar_component {
  background-color: #fcfbfa;
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: #153a43;
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  float: left;
  position: relative;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
  float: right;
  position: static;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.navbar_menu-button {
  cursor: pointer;
  padding: 18px;
  display: none;
}

@media screen and (max-width: 991px) {
  .navbar_menu {
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: #fcfbfa;
  }

  .navbar_menu-button {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  /* Prevent scaling issues */
  flex-shrink: 0;
  line-height: normal;
}

.btn:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: white;
  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 1440 320"><path fill="rgba(79, 70, 229, 0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-tag {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #60A5FA;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* Cards Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-icon {
  font-size: 1.75rem;
}

/* Textarea */
textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  resize: vertical;
  transition: all 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Character Count */
.char-count {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #666;
}

.char-count.valid {
  color: #10B981;
  font-weight: 600;
}

/* Upload Box */
.upload-box {
  margin-top: 1rem;
  padding: 2rem;
  border: 2px dashed #e0e0e0;
  border-radius: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  color: #666;
  font-weight: 600;
}

.upload-box:hover {
  border-color: #4F46E5;
  background-color: var(--bg);
  color: #4F46E5;
}

.upload-box.drag-over {
  border-color: #4F46E5;
  background-color: var(--bg);
  transform: scale(1.02);
}

/* Buttons */
.btn-container {
  text-align: center;
  margin: 3rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 3rem;
  border-radius: 100vw;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}

.btn.primary {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.primary.loading {
  position: relative;
  color: transparent;
}

.btn.primary.loading::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.btn.secondary {
  background: white;
  color: #4F46E5;
  border: 2px solid #4F46E5;
}

.btn.secondary:hover {
  background: #4F46E5;
  color: white;
}

/* Results Section */
#results {
  margin-top: 4rem;
}

.results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.results-header h2 {
  font-size: 2.5rem;
  font-weight: 900;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.results-header p {
  color: #666;
  font-size: 1.125rem;
}

/* Score Display */
.score-display {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.score-circle {
  position: relative;
  width: 200px;
  height: 200px;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 200px;
  height: 200px;
}

.bg-circle {
  fill: none;
  stroke: var(--bg);
  stroke-width: 12;
}

.progress-circle {
  fill: none;
  stroke: url(#gradient);
  stroke-width: 12;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease;
}

.score-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.score-value {
  font-size: 3rem;
  font-weight: 900;
  color: #4F46E5;
  line-height: 1;
}

.score-label {
  font-size: 1rem;
  color: #666;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* Results Content */
.results-content {
  display: grid;
  gap: 2rem;
}

.result-section {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.result-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-icon {
  font-size: 1.75rem;
}

.result-section.strengths h3 {
  color: #10B981;
}

.result-section.improvements h3 {
  color: #F59E0B;
}

.result-section.suggestions h3 {
  color: #6366F1;
}

.result-section ul {
  list-style: none;
  padding: 0;
}

.result-section ul li {
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  border-radius: 0.5rem;
  border-left: 4px solid;
  line-height: 1.6;
}

.strengths ul li {
  border-left-color: #10B981;
}

.improvements ul li {
  border-left-color: #F59E0B;
}

.suggestions ul li {
  border-left-color: #6366F1;
}

/* Deep Dive Section */
.deep-dive-section {
  text-align: center;
  margin-top: 2rem;
  padding: 2rem;
  background: var(--bg);
  border-radius: 1rem;
  border: 2px solid var(--border);
}

.deep-dive-hint {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 0.95rem;
}

/* Deep Dive Results */
#deepDiveResults {
  margin-top: 4rem;
}

.deep-dive-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.annotated-text {
  line-height: 2;
  font-size: 1rem;
}

.highlight {
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.highlight.strength {
  background-color: rgba(16, 185, 129, 0.2);
  border-bottom: 2px solid #10B981;
}

.highlight.improvement {
  background-color: rgba(245, 158, 11, 0.2);
  border-bottom: 2px solid #F59E0B;
}

.highlight.suggestion {
  background-color: rgba(99, 102, 241, 0.2);
  border-bottom: 2px solid #6366F1;
}

.highlight:hover,
.highlight.active {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Feedback Navigation */
.feedback-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--bg);
  border-radius: 0.75rem;
}

.nav-btn {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e0e0;
  background: white;
  border-radius: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
}

.nav-btn:hover:not(:disabled) {
  border-color: #4F46E5;
  color: #4F46E5;
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.feedback-counter {
  font-weight: 700;
  color: #4F46E5;
}

/* Feedback Items */
.feedback-list {
  position: relative;
  min-height: 300px;
}

.feedback-item {
  display: none;
  padding: 1.5rem;
  background: var(--bg);
  border-radius: 0.75rem;
  border-left: 4px solid;
}

.feedback-item.active-slide {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.feedback-item.strength {
  border-left-color: #10B981;
}

.feedback-item.improvement {
  border-left-color: #F59E0B;
}

.feedback-item.suggestion {
  border-left-color: #6366F1;
}

.feedback-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 100vw;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}

.feedback-badge.strength {
  background: rgba(16, 185, 129, 0.2);
  color: #10B981;
}

.feedback-badge.improvement {
  background: rgba(245, 158, 11, 0.2);
  color: #F59E0B;
}

.feedback-badge.suggestion {
  background: rgba(99, 102, 241, 0.2);
  color: #6366F1;
}

.feedback-quote {
  font-style: italic;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 0.5rem;
}

.feedback-text {
  color: var(--text);
  line-height: 1.6;
}

/* Save Results */
.save-results-section {
  margin-top: 2rem;
  text-align: center;
}

#saveStatus {
  color: #666;
  margin-bottom: 1rem;
}

#saveActions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-grid strong {
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid small {
  color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .deep-dive-grid {
    grid-template-columns: 1fr;
  }

  .feedback-navigation {
    flex-direction: column;
    gap: 1rem;
  }
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--text-light);
}


/* STYLES FOR HOLOCLASS.HTML */

/* GLOBAL RESET & BASE STYLES */
* {
  box-sizing: border-box;
}

html {
  font-family: sans-serif;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

a {
  color: var(--text);
  text-decoration: none;
}

h1,
h2,
h3 {
  margin-top: 0;
  font-weight: bold;
}

.page-wrapper {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* NAVIGATION */
.navbar_component {
  background-color: var(--card-bg);
  width: 100%;
  height: 4.5rem;
  padding: 0 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin: 0 auto;
}

.navbar_logo-link {
  color: var(--text);
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: var(--text);
  display: inline-block;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
  font-weight: 700;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

/* Standard Button Styles */
.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  /* Prevent scaling issues */
  flex-shrink: 0;
  line-height: normal;
}

.btn:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.navbar_menu-button {
  cursor: pointer;
  padding: 18px;
  display: none;
}

@media screen and (max-width: 991px) {
  .navbar_menu {
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: var(--card-bg);
    top: 100%;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
  }

  .navbar_menu.is-open {
    display: flex;
  }

  .navbar_menu-button {
    display: flex;
  }
}

/* PAGE HEADER */
.page-header {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: white;
  text-align: center;
}

.page-header .text-style-tagline {
  color: #818cf8;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
  display: inline-block;
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin: 1rem 0;
  color: white;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
  color: white;
}

/* HOLOCLASS SECTION */
.holoclass-section {
  padding: 5rem 0;
  background: var(--bg);
}

.holoclass-hero {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border-radius: 16px;
  margin: 2rem 0 4rem;
  border: 2px solid rgba(99, 102, 241, 0.2);
}

.holoclass-hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #4F46E5, #818cf8);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.holoclass-hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: none;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

.btn-white {
  background: white;
  color: #4F46E5;
  padding: 1rem 2.5rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.btn-white:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FEATURES SECTION */
.features-section {
  padding: 5rem 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text);
  margin-top: 1rem;
}

.section-header p {
  color: #666;
  margin-top: 1rem;
  line-height: 1.7;
  font-size: 1.1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: white;
}

/* CTA SECTION */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  color: white;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column h3 {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
}

.footer-column p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: #4F46E5;
  padding-left: 12px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  .page-header {
    padding: 6rem 0 3rem;
  }
}

@media screen and (max-width: 767px) {
  .holoclass-hero {
    padding: 3rem 1.5rem;
  }

  .holoclass-hero h2 {
    font-size: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}


/* STYLES FOR REFERENCES.HTML */

/* GLOBAL RESET & BASE STYLES */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #fcfbfa;
  color: #153a43;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
}

a {
  color: #153a43;
  text-decoration: none;
  background-color: transparent;
}

/* NAVIGATION */
.navbar_component {
  background-color: #fcfbfa;
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: #153a43;
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  float: left;
  position: relative;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
  float: right;
  position: static;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
  margin-right: 0.5rem;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5em 2em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3em;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.02);
}

/* MAIN CONTENT */
.main_content {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  min-height: 60vh;
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 5rem 0 3rem;
  border-top: 4px solid #4F46E5;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: -1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1rem 0;
  display: block;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #4F46E5;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: #4F46E5;
  padding-left: 12px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}


/* STYLES FOR RESOURCES.HTML */

/* GLOBAL RESET & BASE STYLES */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: #fcfbfa;
  color: #153a43;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

h2 {
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

h3 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

h4 {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

h5 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .01em;
  margin-bottom: 0;
}

h6 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.01em;
  margin-bottom: 0;
}

p {
  margin-top: 0;
  margin-bottom: 10px;
}

a {
  color: #153a43;
  text-decoration: none;
  background-color: transparent;
}

a:active,
a:hover {
  outline: 0;
}

img {
  max-width: 100%;
  vertical-align: middle;
  display: inline-block;
  border: 0;
}

.page-wrapper {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* NAVIGATION */
.navbar_component {
  background-color: #fcfbfa;
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: #153a43;
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  float: left;
  position: relative;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
  float: right;
  position: static;
}

.navbar_menu.is-page-height-tablet {
  background-color: #fcfbfa;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  animation: fadeIn 0.12s ease;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
  display: inline-block;
  position: relative;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.navbar_menu-button {
  float: right;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  padding: 18px;
  font-size: 24px;
  display: none;
  position: relative;
}

.navbar_menu-button:focus {
  outline: 0;
}

.user-greeting {
  color: #153a43;
  font-weight: 600;
  font-size: 0.95rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  background-color: #4F46E5;
  color: white;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 100vw;
  justify-content: center;
  align-items: center;
  padding: 0.5em 2em;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3em;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  gap: 0.4em;
  letter-spacing: 0;
  box-shadow: inset 0 0 transparent;
}

.btn:hover {
  opacity: 0.96;
  box-shadow: 2px 2px 14px 2px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
}

.btn.w-variant-606beeea-2e72-7739-2eb4-be6dd6316459 {
  background-color: #fcfbfa;
  color: #153a43;
}

.btn-primary {
  background-color: #4F46E5;
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 100vw;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn-secondary {
  background-color: white;
  color: #4F46E5;
  padding: 0.75rem 2rem;
  border-radius: 100vw;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid #4F46E5;
}

.btn-secondary:hover {
  background-color: #4F46E5;
  color: white;
  transform: translateY(-2px);
}

/* LAYOUT */
.padding-global {
  flex: 1;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-medium {
  width: 100%;
  max-width: 100rem;
  margin-left: auto;
  margin-right: auto;
}

.container-large {
  width: 100%;
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
}

/* PAGE HEADER - Blue gradient like LearnHub */
.page-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: white;
  padding: 4rem 0 3rem;
  position: relative;
}

.page-header::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 1440 320"><path fill="rgba(79, 70, 229, 0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.page-header .container-medium {
  position: relative;
  z-index: 1;
}

.text-style-tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #60A5FA;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  color: white;
  margin-bottom: 1rem;
  font-size: 3rem;
}

.page-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  max-width: 600px;
}

/* SEARCH & FILTER SECTION */
.search-container {
  margin-bottom: 2rem;
}

.search-bar {
  display: flex;
  gap: 0.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #e0e0e0;
  border-radius: 100vw;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.search-bar input:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.search-bar button {
  background-color: #4F46E5;
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 100vw;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* FILTER PILLS */
.filter-section {
  margin-bottom: 2rem;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.filter-pill {
  padding: 0.625rem 1.25rem;
  border-radius: 100vw;
  background: white;
  border: 2px solid #e0e0e0;
  color: #666;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-pill:hover {
  border-color: #4F46E5;
  color: #4F46E5;
  transform: translateY(-2px);
}

.filter-pill.active {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  border-color: #4F46E5;
}

.filter-pill i {
  font-size: 1.1rem;
}

/* RESOURCE CARDS - Styled like CommunityOS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.resource-card {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.15);
  border-color: #4F46E5;
}

.resource-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.resource-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.resource-card-category {
  background: var(--bg);
  color: #4F46E5;
  padding: 0.25rem 0.75rem;
  border-radius: 100vw;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.resource-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
  font-weight: 700;
}

.resource-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
  font-size: 0.95rem;
}

.resource-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f0f0f0;
  font-size: 0.875rem;
  color: #888;
}

.resource-card-meta span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-card-meta i {
  color: #4F46E5;
  font-size: 1rem;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding: 2rem 0;
}

.pagination a,
.pagination span {
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #666;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
  background: white;
}

.pagination a:hover {
  background-color: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

.pagination .active {
  background-color: #4F46E5;
  color: white;
  border-color: #4F46E5;
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 5rem 0 3rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
  position: relative;
  overflow: hidden;
}

.simple-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: -1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1rem 0;
  display: block;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #4F46E5;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: #4F46E5;
  padding-left: 12px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.footer-bottom p {
  margin: 0;
}

/* RESPONSIVE */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3 {
    font-size: 2rem;
  }

  .navbar_menu {
    border-bottom: 1px solid transparent;
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: #fcfbfa;
  }

  .navbar_menu.is-page-height-tablet {
    border-bottom-style: none;
    height: 100dvh;
    padding-bottom: 6.5rem;
    transition: height 0.5s;
  }

  .navbar_link {
    width: auto;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }

  .navbar_menu-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
    margin-left: 0;
  }

  .navbar_menu-button {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .search-bar {
    flex-direction: column;
  }

  .search-bar button {
    justify-content: center;
  }
}

@media screen and (max-width: 767px) {
  .page-header h1 {
    font-size: 2.25rem;
  }

  .padding-global {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .filter-pills {
    justify-content: flex-start;
  }

  .pagination {
    flex-wrap: wrap;
  }
}

@media screen and (max-width: 479px) {
  .page-header h1 {
    font-size: 2rem;
  }

  .footer-content {
    gap: 3rem;
  }
}


/* STYLES FOR SCHEDULE.HTML */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #fcfbfa;
  color: #153a43;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page-wrapper {
  opacity: 0;
  animation: fadeIn 0.25s ease-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Navigation */
.navbar_component {
  background-color: #fcfbfa;
  width: 100%;
  height: 4.5rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  border-bottom: 0px solid transparent;
  position: relative;
  z-index: 1000;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 120rem;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.navbar_logo-link {
  color: #153a43;
  padding-left: 0;
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
  float: left;
  position: relative;
}

.navbar_logo {
  font-size: 1.5rem;
}

.navbar_menu {
  display: flex;
  align-items: center;
  float: right;
  position: static;
}

.navbar_menu-links {
  display: flex;
  align-items: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  min-width: 220px;
  padding: 0.25rem 0;
  display: none;
  flex-direction: column;
  z-index: 1000;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f6f7fb;
  color: #4F46E5;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.navbar_link {
  padding: 0.5rem 1rem;
  color: #153a43;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.navbar_link:hover {
  color: #4F46E5;
}

.navbar_link.w--current {
  color: #4F46E5;
}

.navbar_menu-buttons {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  gap: 1rem;
}

.navbar_menu-button {
  cursor: pointer;
  padding: 18px;
  display: none;
}

@media screen and (max-width: 991px) {
  .navbar_menu {
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: #fcfbfa;
  }

  .navbar_menu-button {
    display: flex;
  }
}

/* Hero Section */
.school-hero {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: white;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.school-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 1440 320"><path fill="rgba(79, 70, 229, 0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,128C1248,117,1344,107,1392,101.3L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  pointer-events: none;
}

.school-logo {
  width: 120px;
  height: 120px;
  border-radius: 1rem;
  border: 4px solid white;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.school-hero-content {
  z-index: 1;
  max-width: 600px;
}

.school-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.muted {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.125rem;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.section {
  margin-bottom: 3rem;
}

/* Cards */
.card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

/* Tutoring Profile Card */
.tutoring-profile-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 2rem;
}

/* Profile Form */
.profile-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-hint {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
}

/* Searchable Select */
.searchable-select-container {
  position: relative;
}

.searchable-select-input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.searchable-select-input:focus {
  outline: none;
  border-color: #4F46E5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.searchable-select-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 0.75rem;
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.searchable-select-dropdown.hidden {
  display: none;
}

.dropdown-item {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: var(--bg);
  color: #4F46E5;
}

.dropdown-empty {
  padding: 1rem;
  text-align: center;
  color: #666;
}

/* Selected Items */
.selected-items-list {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-height: 50px;
}

.selected-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 100vw;
  font-size: 0.9rem;
  font-weight: 600;
}

.selected-remove {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.selected-remove:hover {
  background: rgba(255, 255, 255, 0.4);
}

.selected-empty {
  color: #999;
  font-style: italic;
  padding: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border-radius: 100vw;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Montserrat', sans-serif;
  background-color: #4F46E5;
  color: white;
  /* Prevent scaling issues */
  flex-shrink: 0;
  line-height: normal;
}

.btn:hover {
  background-color: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.btn.primary {
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.btn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn.ghost {
  background: white;
  color: #4F46E5;
  border: 2px solid #4F46E5;
}

.btn.ghost:hover {
  background: #4F46E5;
  color: white;
}

.btn.small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.profile-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Messages */
.error-message,
.success-message {
  padding: 1rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
  font-weight: 600;
}

.error-message {
  background: #FEE2E2;
  color: #DC2626;
  border: 2px solid #FCA5A5;
}

.success-message {
  background: #D1FAE5;
  color: #059669;
  border: 2px solid #6EE7B7;
}

/* Matching Results */
.tutoring-results-section {
  margin-top: 2rem;
}

.tutoring-results-section h2 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

.tutoring-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.buddy-match-card {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.3s;
}

.buddy-match-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15);
  border-color: #4F46E5;
}

.buddy-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: white;
}

.buddy-info {
  flex: 1;
  margin-bottom: 1rem;
}

.buddy-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.buddy-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.connect-buddy-btn.connected {
  background: #10B981;
  cursor: default;
}

/* Schedule Details */
.schedule-details {
  background: var(--card-bg);
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.schedule-summary {
  padding: 1.5rem 2rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
  background: var(--card-bg);
}

.schedule-summary:hover {
  background: var(--bg);
  color: #4F46E5;
}

.schedule-summary::-webkit-details-marker {
  display: none;
}

.schedule-details[open] .schedule-summary {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--bg);
  color: #4F46E5;
}

.schedule-details>div {
  padding: 2rem;
}

/* Calendar Mock */
.calendar-mock {
  background: var(--card-bg);
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid #e0e0e0;
}

.calendar-header {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  font-weight: 700;
  text-align: center;
}

.calendar-header>div {
  padding: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-header>div:last-child {
  border-right: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.slot {
  padding: 2rem 1rem;
  text-align: center;
  border: 1px solid #e0e0e0;
  font-weight: 600;
  color: #4F46E5;
  background: var(--bg);
}

.slot:nth-child(2),
.slot:nth-child(4) {
  color: #999;
  background: #f5f5f5;
}

/* Tutoring Cards Grid */
.tutoring-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tutoring-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s;
}

.tutoring-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(79, 70, 229, 0.15);
  border-color: #4F46E5;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.tutoring-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

.tutoring-card p {
  color: #666;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 3rem 2rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.footer-grid strong {
  font-size: 1.5rem;
  font-weight: 900;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-grid p {
  color: rgba(255, 255, 255, 0.75);
}

.footer-grid a {
  color: #60A5FA;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-grid a:hover {
  color: white;
}

.footer-grid small {
  color: rgba(255, 255, 255, 0.5);
}

/* Utility */
.hidden {
  display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
  }

  .school-hero {
    flex-direction: column;
    text-align: center;
  }

  .school-hero h1 {
    font-size: 1.75rem;
  }

  .school-logo {
    width: 80px;
    height: 80px;
  }

  .profile-form-grid {
    grid-template-columns: 1fr;
  }

  .calendar-header,
  .calendar-grid {
    font-size: 0.8rem;
  }

  .slot {
    padding: 1rem 0.5rem;
  }

  .tutoring-results-grid {
    grid-template-columns: 1fr;
  }
}


/* STYLES FOR INDEX.HTML */

/* GLOBAL LAYOUT */
.padding-global {
  padding-left: 5%;
  padding-right: 5%;
}

.container-large {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
}

.container-medium {
  width: 100%;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

/* DISCLAIMER MODAL */
.disclaimer-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.disclaimer-overlay.active {
  display: flex;
}

.disclaimer-modal {
  background: var(--card-bg);
  max-width: 600px;
  padding: 3rem;
  border-radius: 2rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: modalFadeIn 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.disclaimer-header {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.disclaimer-icon {
  width: 4rem;
  height: 4rem;
  background: #FEF3C7;
  color: #D97706;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  font-size: 2rem;
  flex-shrink: 0;
}

.disclaimer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin: 0;
}

.disclaimer-subtitle {
  color: #64748B;
  margin-top: 0.25rem;
}

.disclaimer-content {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.disclaimer-quote {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: #F8FAFC;
  border-left: 4px solid #4F46E5;
  color: #4F46E5;
  font-weight: 600;
  border-radius: 0 1rem 1rem 0;
}

.disclaimer-btn {
  width: 100%;
  padding: 1.25rem;
  background: #4F46E5;
  color: white;
  border: none;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 1.125rem;
  cursor: pointer;
  transition: all 0.3s;
}

.disclaimer-btn:hover {
  background: #4338CA;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* HERO SECTION */
.section_hero {
  position: relative;
  background-color: #0F172A;
  color: white;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 12rem 0 8rem;
  overflow: hidden;
}

.hero_content {
  position: relative;
  z-index: 5;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 0.5rem;
  letter-spacing: -3px;
}

.hero_visuals {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.dark_gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0F172A 40%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 2;
}

.noise {
  position: absolute;
  inset: 0;
  background-image: url("https://grainy-gradients.vercel.app/noise.svg");
  opacity: 0.2;
  z-index: 3;
  pointer-events: none;
}

/* QUICK CATEGORIES */
.section_categories {
  padding: 8rem 0;
  background: var(--bg);
}

.section-header {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 5rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.text-style-tagline {
  color: #4F46E5;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  display: block;
}

.categories_grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.category_btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: 2rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #E2E8F0;
  text-align: center;
  gap: 1.5rem;
}

.category_btn i {
  font-size: 3rem;
  color: #4F46E5;
  transition: transform 0.4s;
}

.category_btn:hover {
  background: var(--card-bg);
  border-color: #4F46E5;
  color: #4F46E5;
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(79, 70, 229, 0.1);
}

.category_btn:hover i {
  transform: scale(1.1);
}

/* FEATURED RESOURCES */
.section_resources {
  padding: 8rem 0;
  background: #F8FAFC;
}

.resources_grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.resource_card {
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 2.5rem;
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.resource_card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #4F46E5;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}

.resource_card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.1);
  border-color: white;
}

.resource_card:hover::before {
  transform: scaleX(1);
}

.resource_icon {
  width: 5rem;
  height: 5rem;
  background: var(--bg);
  color: #4F46E5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  font-size: 2.5rem;
}

.resource_card h3 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
}

.resource_link {
  font-weight: 800;
  color: #4F46E5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

/* STATS Section */
.stats_component {
  background: #0F172A;
  border-radius: 3rem;
  padding: 6rem;
  color: white;
  text-align: center;
}

.stats_list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4rem;
}

.stats_number {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, white 0%, #94A3B8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stats_text {
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.875rem;
}

/* TESTIMONIALS */
.section_testimonials {
  padding: 8rem 0;
  background: var(--bg);
}

.testimonials_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial_card {
  background: var(--card-bg);
  padding: 3.5rem;
  border-radius: 2.5rem;
  position: relative;
  border: 1px solid var(--border);
  transition: all 0.4s;
}

.testimonial_card:hover {
  background: white;
  border-color: #4F46E5;
  transform: translateY(-5px);
}

.testimonial_quote {
  font-size: 6rem;
  color: #E2E8F0;
  position: absolute;
  top: 1rem;
  left: 2rem;
  font-family: serif;
  opacity: 0.5;
}

.testimonial_text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.testimonial_author {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.testimonial_avatar {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.testimonial_info h4 {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 0.25rem 0;
}

.testimonial_info p {
  color: #64748B;
  font-size: 0.875rem;
  margin: 0;
}

/* CTA SECTION */
.section_cta {
  padding: 10rem 0;
  background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
  color: white;
  text-align: center;
  border-radius: 4rem;
  margin: 0 2rem 2rem;
}

.cta_content h2 {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  margin-bottom: 2rem;
  letter-spacing: -2px;
}

.cta_content p {
  font-size: 1.5rem;
  max-width: 45rem;
  margin: 0 auto 3rem;
  opacity: 0.9;
}

.cta_buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-white {
  background: white;
  color: #4F46E5;
  padding: 1.25rem 3rem;
  border-radius: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 1.25rem 3rem;
  border: 3px solid white;
  border-radius: 1rem;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: white;
  color: #4F46E5;
}

/* FOOTER */
.simple-footer {
  background: linear-gradient(180deg, #0a0f1e 0%, #0F172A 50%, #0a0f1e 100%);
  color: white;
  padding: 5rem 0 3rem;
  margin-top: 5rem;
  border-top: 4px solid #4F46E5;
  position: relative;
  overflow: hidden;
}

.simple-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.5), transparent);
  pointer-events: none;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 5rem;
  margin-bottom: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(79, 70, 229, 0.3);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: white;
  margin: 0;
  letter-spacing: -1px;
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.9;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
}

.footer-subtitle {
  font-size: 0.85rem;
  font-weight: 800;
  color: #4F46E5;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0 0 1rem 0;
  display: block;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: #4F46E5;
  border-radius: 2px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  display: inline-block;
}

.footer-links a:hover {
  color: #4F46E5;
  padding-left: 12px;
}

.footer-bottom {
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.footer-bottom p {
  margin: 0;
}

/* UTILITIES */
.margin-bottom {
  margin-bottom: 1rem;
}

.margin-bottom.margin-medium {
  margin-bottom: 2.5rem;
}

.z-index-2 {
  position: relative;
  z-index: 2;
}


/* RESPONSIVE */
@media screen and (max-width: 991px) {
  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 2.25rem;
  }

  .padding-section-large {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .padding-section-medium {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  ._2col_grid {
    grid-column-gap: 4rem;
    grid-row-gap: 4rem;
    grid-template-columns: 1fr;
  }

  ._2col_grid.z-index-2 {
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }

  .navbar_menu {
    border-bottom: 1px solid transparent;
    padding: 1rem 5% 2rem;
    position: absolute;
    overflow: auto;
    background-color: #fcfbfa;
  }

  .navbar_menu.is-page-height-tablet {
    border-bottom-style: none;
    height: 100dvh;
    padding-bottom: 6.5rem;
    transition: height 0.5s;
  }

  .navbar_link {
    width: auto;
    padding: 0.75rem 0;
    font-size: 1.125rem;
  }

  .navbar_menu-buttons {
    flex-direction: column;
    align-items: stretch;
    margin-top: 1.5rem;
    margin-left: 0;
  }

  .navbar_menu-button {
    display: flex;
  }

  .resources_grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  h3,
  h4 {
    font-size: 1.5rem;
  }

  .padding-global {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .padding-section-large {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .padding-section-medium {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section_hero {
    height: calc(100dvh - 4rem);
  }



  .navbar_menu.is-page-height-tablet {
    padding-bottom: 6rem;
  }

  .categories_grid {
    flex-direction: column;
    align-items: stretch;
  }

  .category_btn {
    justify-content: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 479px) {
  h2 {
    font-size: 2rem;
  }

  .hero-title {
    white-space: normal;
  }

  .footer-content {
    gap: 3rem;
  }
}

/* ========================================
   CHATBOT MASCOT & PANEL STYLES
   ======================================== */

/* Chatbot Mascot Button */
.chatbot-mascot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
  animation: mascotEntrance 0.5s ease-out;
}

@keyframes mascotEntrance {
  from {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }

  to {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.chatbot-mascot:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5);
}

.chatbot-mascot.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.mascot-icon {
  font-size: 28px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.mascot-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.6;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.15);
    opacity: 0;
  }
}

/* Chatbot Panel */
.chatbot-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 600px;
  max-height: calc(100vh - 100px);
  background: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: scale(0.8) translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--border);
  overflow: hidden;
}

.chatbot-panel.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 20px 20px 0 0;
  flex-shrink: 0;
}

.chatbot-header-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.chatbot-title h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  color: white;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.9;
  margin: 0;
}

.chatbot-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Chatbot Messages */
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--bg);
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* Message Bubbles */
.chatbot-message {
  display: flex;
  gap: 0.75rem;
  animation: messageSlideIn 0.3s ease-out;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-message.user {
  flex-direction: row-reverse;
}

.chatbot-message .message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 4px;
}

.chatbot-message.bot .message-avatar {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
}

.chatbot-message.user .message-avatar {
  background: var(--text-light);
  color: white;
}

.chatbot-message .message-content {
  max-width: 75%;
  padding: 0.875rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chatbot-message.bot .message-content {
  background: var(--card-bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
}

.chatbot-message.user .message-content {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border-radius: 16px 16px 4px 16px;
}

.chatbot-message.error .message-content {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

.chatbot-message .message-content p {
  margin: 0 0 0.5rem 0;
}

.chatbot-message .message-content p:last-child {
  margin-bottom: 0;
}

.chatbot-message .message-content ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.chatbot-message .message-content li {
  margin: 0.25rem 0;
}

.setup-info {
  background: rgba(99, 102, 241, 0.1);
  padding: 0.75rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  font-size: 0.85rem;
}

.setup-info i {
  color: var(--primary);
}

/* Typing Indicator */
.chatbot-message.typing .message-content {
  padding: 0.75rem 1rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingDot {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  30% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

/* Chatbot Input Area */
.chatbot-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
  background: var(--card-bg);
  flex-shrink: 0;
}

.chatbot-input-area input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
}

.chatbot-input-area input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.chatbot-input-area input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.chatbot-input-area button {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 12px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.chatbot-input-area button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.chatbot-input-area button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Chatbot Footer */
.chatbot-footer {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
  flex-shrink: 0;
}

.chatbot-settings-btn {
  width: 100%;
  padding: 0.625rem;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
}

.chatbot-settings-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.05);
}

/* Settings Modal */
.chatbot-settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}

.chatbot-settings-modal.active {
  opacity: 1;
}

.chatbot-settings-content {
  background: var(--card-bg);
  border-radius: 16px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s;
  border: 1px solid var(--border);
}

.chatbot-settings-modal.active .chatbot-settings-content {
  transform: scale(1);
}

.settings-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.25rem 1.5rem;
  border-radius: 16px 16px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.settings-header h3 {
  margin: 0;
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
}

.settings-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}

.settings-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.settings-body {
  padding: 1.5rem;
}

.settings-body>p {
  margin: 0 0 1rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

.api-key-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.api-key-input-group input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', monospace;
  font-size: 0.875rem;
  background: var(--bg);
  color: var(--text);
  transition: all 0.2s;
}

.api-key-input-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.toggle-visibility {
  width: 44px;
  height: 44px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  font-size: 18px;
}

.toggle-visibility:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.settings-info {
  background: var(--bg);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.settings-info p {
  margin: 0.5rem 0;
  font-size: 0.85rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.settings-info p:first-child {
  margin-top: 0;
}

.settings-info p:last-child {
  margin-bottom: 0;
}

.settings-info i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}

.settings-info a {
  color: var(--primary);
  text-decoration: underline;
}

.settings-info a:hover {
  color: var(--primary-dark);
}

.settings-actions {
  display: flex;
  gap: 0.75rem;
}

.settings-actions .btn {
  flex: 1;
  padding: 0.75rem;
  font-size: 0.9rem;
  text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .chatbot-mascot {
    bottom: 16px;
    right: 16px;
    width: 56px;
    height: 56px;
  }

  .mascot-icon {
    font-size: 24px;
  }

  .chatbot-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .chatbot-header {
    border-radius: 0;
  }

  .chatbot-settings-content {
    width: 95%;
    margin: 1rem;
  }
}