/* === Theme Variables === */
:root {
  --color-bg: #f3f6fd;
  --color-text: #2a4365;
  --color-navbar-bg: #fff;
  --color-navbar-text: #34495e;
  --color-navbar-hover: #2c3e50;
  --color-card-bg: #fff;
  --color-footer-bg: linear-gradient(90deg, #e3eefd 0%, #f8fafc 100%);
  --color-footer-text: #6b7280;
}
body {
  background: var(--color-bg);
  color: var(--color-text);
}
.custom-navbar, .navbar {
  background: var(--color-navbar-bg) !important;
}
.nav-link {
  color: var(--color-navbar-text);
}
.nav-link:hover {
  color: var(--color-navbar-hover);
}
.card, .card-header {
  background: var(--color-card-bg);
}
.site-footer, .landing-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}

body.dark-theme {
  --color-bg: #141926;
  --color-text: #f3f6fd;
  --color-navbar-bg: rgba(24,28,36,0.95);
  --color-navbar-text: #a3bffa;
  --color-navbar-hover: #fff;
  --color-card-bg: #1e2332;
  --color-footer-bg: linear-gradient(90deg, #181c24 0%, #23272f 100%);
  --color-footer-text: #b0b8c9;
  --color-accent: #2563eb;
  --color-accent2: #8e24aa;
  --color-success: #43e97b;
  --color-danger: #ff5370;
  --color-warning: #ffd166;
  --color-info: #00bcd4;
}

body.dark-theme,
body.dark-theme .main-content,
body.dark-theme .card,
body.dark-theme .card-header,
body.dark-theme .site-footer,
body.dark-theme .landing-footer,
body.dark-theme .skills-showcase,
body.dark-theme .cta-wide-section,
body.dark-theme .hero-section,
body.dark-theme .about-mission,
body.dark-theme .about-team,
body.dark-theme .about-cta,
body.dark-theme .about-hero-section,
body.dark-theme .contact-card,
body.dark-theme .contact-info,
body.dark-theme .contact-hero-section {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
  border-color: #23272f !important;
}

body.dark-theme .custom-navbar,
body.dark-theme .navbar {
  background: var(--color-navbar-bg) !important;
  color: var(--color-navbar-text) !important;
  box-shadow: 0 2px 16px rgba(37,99,235,0.10);
  backdrop-filter: blur(8px) saturate(1.2);
}
body.dark-theme .nav-link {
  color: var(--color-navbar-text) !important;
  transition: color 0.2s;
}
body.dark-theme .nav-link:hover {
  color: var(--color-navbar-hover) !important;
}

body.dark-theme .card,
body.dark-theme .card-header,
body.dark-theme .skills-showcase,
body.dark-theme .cta-wide-section,
body.dark-theme .hero-section,
body.dark-theme .about-mission,
body.dark-theme .about-team,
body.dark-theme .about-cta,
body.dark-theme .about-hero-section,
body.dark-theme .contact-card,
body.dark-theme .contact-info,
body.dark-theme .contact-hero-section {
  background: var(--color-card-bg) !important;
  color: var(--color-text) !important;
  box-shadow: 0 8px 40px rgba(37,99,235,0.10), 0 1.5px 8px rgba(20,30,60,0.10);
  border: 1.5px solid #23272f !important;
}

body.dark-theme .site-footer,
body.dark-theme .landing-footer {
  background: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
  border-top: 1.5px solid #23272f;
}
body.dark-theme .footer-link {
  color: var(--color-accent);
}
body.dark-theme .footer-link:hover {
  color: var(--color-accent2);
}

body.dark-theme .btn,
body.dark-theme .btn-primary,
body.dark-theme .btn-success,
body.dark-theme .btn-warning,
body.dark-theme .btn-danger,
body.dark-theme .btn-info {
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
body.dark-theme .btn-primary {
  background: linear-gradient(90deg, #2563eb 0%, #8e24aa 100%) !important;
}
body.dark-theme .btn-primary:hover,
body.dark-theme .btn-primary:focus {
  background: linear-gradient(90deg, #8e24aa 0%, #2563eb 100%) !important;
}
body.dark-theme .btn-success {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
}
body.dark-theme .btn-success:hover,
body.dark-theme .btn-success:focus {
  background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%) !important;
}
body.dark-theme .btn-warning {
  background: linear-gradient(90deg, #ffd166 0%, #ffb74d 100%) !important;
  color: #181c24 !important;
}
body.dark-theme .btn-danger {
  background: linear-gradient(90deg, #ff5370 0%, #ffb74d 100%) !important;
}
body.dark-theme .btn-info {
  background: linear-gradient(90deg, #00bcd4 0%, #2563eb 100%) !important;
}

body.dark-theme .form-control,
body.dark-theme input,
body.dark-theme textarea,
body.dark-theme select {
  background: #181c24 !important;
  color: #e3e6eb !important;
  border: 1.5px solid #23272f !important;
}
body.dark-theme .form-control:focus,
body.dark-theme input:focus,
body.dark-theme textarea:focus,
body.dark-theme select:focus {
  border-color: #2563eb !important;
  background: #23272f !important;
  color: #fff !important;
}
body.dark-theme .form-text,
body.dark-theme .small,
body.dark-theme small {
  color: #b0b8c9 !important;
}

body.dark-theme .dropdown-menu,
body.dark-theme .profile-dropdown-content {
  background: #23272f !important;
  color: #e3e6eb !important;
  border: 1.5px solid #374151 !important;
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
body.dark-theme .dropdown-item,
body.dark-theme .profile-dropdown-content a {
  color: #a3bffa !important;
}
body.dark-theme .dropdown-item:hover,
body.dark-theme .dropdown-item:focus,
body.dark-theme .profile-dropdown-content a:hover,
body.dark-theme .profile-dropdown-content a:focus,
body.dark-theme .profile-dropdown-content a:active {
  background-color: #2563eb !important;
  color: #fff !important;
}
body.dark-theme .profile-info {
  border-bottom: 1px solid #374151 !important;
}

body.dark-theme .modal-content {
  background: #23272f !important;
  color: #e3e6eb !important;
  border: 1.5px solid #374151 !important;
}

body.dark-theme .table {
  background: #181c24 !important;
  color: #e3e6eb !important;
}
body.dark-theme .table th,
body.dark-theme .table td {
  border-color: #23272f !important;
}

body.dark-theme .alert-success {
  background: rgba(67,233,123,0.12) !important;
  color: var(--color-success) !important;
  border-color: var(--color-success) !important;
}
body.dark-theme .alert-danger {
  background: rgba(255,83,112,0.12) !important;
  color: var(--color-danger) !important;
  border-color: var(--color-danger) !important;
}
body.dark-theme .alert-warning {
  background: rgba(255,209,102,0.12) !important;
  color: var(--color-warning) !important;
  border-color: var(--color-warning) !important;
}
body.dark-theme .alert-info {
  background: rgba(0,188,212,0.12) !important;
  color: var(--color-info) !important;
  border-color: var(--color-info) !important;
}

body.dark-theme .badge-reading {
  background: #00bcd4 !important;
  color: #181c24 !important;
}
body.dark-theme .badge-writing {
  background: #ffd166 !important;
  color: #181c24 !important;
}
body.dark-theme .badge-listening {
  background: #43e97b !important;
  color: #181c24 !important;
}
body.dark-theme .badge-speaking {
  background: #8e24aa !important;
  color: #fff !important;
}
body.dark-theme .badge-default {
  background: #757575 !important;
  color: #fff !important;
}

body.dark-theme .highlighted-text {
  background-color: #23272f !important; /* Neutral dark background for uncolored highlights */
  color: #fff !important;
  cursor: pointer;
  border-radius: 0.3em;
  padding: 0.1em 0.2em;
  transition: background 0.2s;
  position: relative;
}
body.dark-theme .highlighted-text[data-color="yellow"] { background-color: #ffe066 !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="green"] { background-color: #43e97b !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="blue"] { background-color: #2563eb !important; color: #fff !important; }
body.dark-theme .highlighted-text[data-color="pink"] { background-color: #e040fb !important; color: #fff !important; }
body.dark-theme .highlighted-text[data-color="orange"] { background-color: #ffb74d !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="gray"] { background-color: #374151 !important; color: #fff !important; }

body.dark-theme ::-webkit-scrollbar {
  background: #23272f;
}
body.dark-theme ::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 8px;
}
body.dark-theme ::-webkit-scrollbar-corner {
  background: #23272f;
}

body.dark-theme a,
body.dark-theme a:visited {
  color: #a3bffa;
}
body.dark-theme a:hover,
body.dark-theme a:focus {
  color: #2563eb;
}

body.dark-theme .notfound-red { color: #ff5370; }
body.dark-theme .footer-logo-text { color: #2563eb; }
body.dark-theme .footer-tagline { color: #b0b8c9; }
body.dark-theme .support-title { color: #ff5370; }
body.dark-theme .support-desc { color: #b0b8c9; }
body.dark-theme .footer-qr { background: #181c24; }
body.dark-theme .profile-pic,
body.dark-theme .profile-pic-lg {
  border: 2px solid #23272f;
}

body, .hero-section, .card, .site-footer, .landing-footer, .skills-showcase, .cta-wide-section, .form-control, .btn, .dropdown-menu, .modal-content, .table, .highlighted-text {
  transition: background 0.4s, color 0.4s, box-shadow 0.4s, border-color 0.4s;
}

/* Ensure all elements use the variables */
body, .main-content, .card, .card-header, .site-footer, .landing-footer {
  background: var(--color-bg);
  color: var(--color-text);
}
.custom-navbar, .navbar {
  background: var(--color-navbar-bg) !important;
}
.nav-link {
  color: var(--color-navbar-text) !important;
}
.nav-link:hover {
  color: var(--color-navbar-hover) !important;
}
.card, .card-header {
  background: var(--color-card-bg) !important;
  color: var(--color-text) !important;
}
.site-footer, .landing-footer {
  background: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
}

/* Timer styling for sidebar */
.timer-container {
    border: 2px solid #f8d7da;
    background: #fff;
    transition: all 0.3s ease;
}

.timer-container.time-warning {
    border-color: #ffc107;
    background: #fff3cd;
}

.timer-container.time-critical {
    border-color: #dc3545;
    background: #f8d7da;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

#timer {
    font-weight: bold;
    font-size: 1.2rem;
    color: #d9534f; /* Bootstrap danger color */
}

/* Remove body padding since timer is no longer fixed */
body {
    padding-top: 0;
    background: #f3f6fd;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Time's up overlay */
#timeup-overlay {
    display: none;
}

#timeup-overlay .modal-content {
    max-width: 500px;
    margin: 0 auto;
}

/* Disabled practice content */
.practice-disabled {
    filter: blur(2px);
    pointer-events: none;
    user-select: none;
}

/* Test header styling */
.test-header {
    position: relative;
    z-index: 100;
    margin-top: 20px;
    border-bottom: 1px solid #dee2e6;
}

/* Ensure content starts below header */
.test-container {
    padding-top: 20px;
}

/* Global roundness for all divs and buttons */
div, button, input, textarea, .card, .btn, .form-control {
    border-radius: 0.75rem !important;
}

/* Super-specific global roundness override */
body div, body button, body input, body textarea, body .card, body .btn, body .form-control {
    border-radius: 0.75rem !important;
}

body div:hover, body button:hover, body input:hover, body textarea:hover, body .card:hover, body .btn:hover, body .form-control:hover,
body div:focus, body button:focus, body input:focus, body textarea:focus, body .card:focus, body .btn:focus, body .form-control:focus {
    border-radius: 0.75rem !important;
}

body a, body a:hover, body a:focus {
    border-radius: 0.75rem !important;
}

/* Highlighting and Notes Feature Styles */
.highlighted-text {
    background-color: #ffe066;
    color: #181c24;
    cursor: pointer;
    border-radius: 0.3em;
    padding: 0.1em 0.2em;
    transition: background 0.2s;
    position: relative;
}
.highlighted-text[data-color="yellow"] { background-color: #ffe066; color: #181c24; }
.highlighted-text[data-color="green"] { background-color: #b6fcb6; color: #181c24; }
.highlighted-text[data-color="blue"] { background-color: #b6e0fc; color: #181c24; }
.highlighted-text[data-color="pink"] { background-color: #fcb6e0; color: #181c24; }
.highlighted-text[data-color="orange"] { background-color: #ffd6a0; color: #181c24; }
.highlighted-text[data-color="gray"] { background-color: #e0e0e0; color: #181c24; }

.highlight-popup {
    position: absolute;
    z-index: 9999;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0.75em 1em;
    min-width: 220px;
    max-width: 320px;
    font-size: 0.98em;
    display: none;
}
.highlight-popup .color-option {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    margin: 0 4px;
    border: 2px solid #eee;
    cursor: pointer;
    vertical-align: middle;
}
.highlight-popup .color-option.selected {
    border: 2px solid #333;
}
.highlight-popup textarea {
    width: 100%;
    min-height: 40px;
    margin-top: 0.5em;
    border-radius: 0.4em;
    border: 1px solid #ccc;
    padding: 0.3em;
    font-size: 1em;
}
.highlight-popup .popup-actions {
    margin-top: 0.5em;
    text-align: right;
}
.highlight-popup button {
    margin-left: 0.5em;
    border-radius: 0.4em;
    font-size: 0.95em;
}
.highlighted-text[data-has-note="true"] {
    box-shadow: 0 0 0 2px #007bff;
    position: relative;
}
.highlighted-text[data-has-note="true"]:after {
    content: "📝";
    font-size: 0.9em;
    position: absolute;
    right: -1.2em;
    top: 0.1em;
}

/* Skills Showcase Section - always visible */
.skills-showcase {
  width: 96vw;
  max-width: 1600px;
  margin: 3.5rem auto 2rem auto;
  padding: 3.5rem 2rem 2.5rem 2rem;
  box-sizing: border-box;
  gap: 2.5rem !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  position: relative;
  z-index: 1;
}

.skill-card {
  background: rgba(255,255,255,0.97);
  border-radius: 1.5rem;
  box-shadow: 0 2px 16px rgba(60, 100, 180, 0.07);
  padding: 2.2rem 2rem 1.7rem 2rem;
  min-width: 260px;
  flex: 1 1 320px;
  max-width: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.18s, box-shadow 0.18s;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}

.skill-card .icon.mb-3 {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
}

.animated-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(circle at 20% 30%, #e3eefd 0%, #f8fafc 60%, #fff 100%);
  animation: bgMove 12s ease-in-out infinite alternate;
}
@keyframes bgMove {
  0% { background-position: 0% 0%; }
  100% { background-position: 100% 100%; }
}
.hero-logo-img {
  width: 120px;
  height: 120px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(60,100,180,0.13));
}
.hero-section {
  background: #fff;
  border-radius: 5rem !important;
  box-shadow: 0 8px 40px rgba(60,100,180,0.13), 0 1.5px 8px rgba(60,100,180,0.07);
  margin: 3.5rem auto 2rem auto;
  max-width: 1400px;
  width: 96vw;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 2;
}
.hero-title {
  letter-spacing: -1px;
  font-size: 3.2rem;
  font-weight: 800;
  color: #2a4365;
}
.hero-tagline {
  font-size: 1.7rem;
  color: #3b4a5a;
  font-weight: 500;
}
.cta-wide-section {
  background: linear-gradient(90deg, #e3eefd 0%, #f8fafc 100%);
  border-radius: 2rem;
  margin: 2.5rem auto 0 auto;
  width: 94vw;
  max-width: 1400px;
  box-shadow: 0 2px 16px rgba(60, 100, 180, 0.07);
  position: relative;
  z-index: 1;
}
.landing-cta-btn.animated-cta,
.landing-cta-btn.animated-cta:hover,
.landing-cta-btn.animated-cta:focus {
  border-radius: 999px !important;
}
.landing-cta-btn.animated-cta {
  background: linear-gradient(90deg, #e53935 0%, #2563eb 100%);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  padding: 1.1rem 2.7rem;
  border: none;
  transition: transform 0.18s, box-shadow 0.18s;
  text-decoration: none;
  animation: pulseCta 1.5s infinite alternate;
}
@keyframes pulseCta {
  0% { transform: scale(1); box-shadow: 0 4px 16px rgba(60, 100, 180, 0.13); }
  100% { transform: scale(1.06); box-shadow: 0 8px 32px rgba(229,57,53,0.18); }
}
.landing-footer, .landing-footer:before, .landing-footer:after {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
body.dark-theme .landing-footer, body.dark-theme .landing-footer:before, body.dark-theme .landing-footer:after {
  border: none !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
}
@media (max-width: 900px) {
  .hero-section {
    padding: 2rem 1rem 1.5rem 1rem;
    border-radius: 1.2rem !important;
  }
}
@media (max-width: 600px) {
  .hero-section {
    padding: 1rem 0.3rem 1rem 0.3rem;
    border-radius: 0.7rem !important;
  }
  .hero-title { font-size: 2rem; }
  .hero-tagline { font-size: 1.1rem; }
}

/* Navbar and Profile Dropdown */
.navbar-brand { font-weight: bold; color: #2c3e50; display: flex; align-items: center; gap: 10px; }
.navbar-brand img { height: 40px; width: auto; }
.nav-link { color: #34495e; }
.nav-link:hover { color: #2c3e50; }
.custom-navbar, .navbar {
  width: 100%;
  margin: 0;
  padding-left: 2.5rem;
  padding-right: 2.5rem;
  border-radius: 0;
  position: relative;
  box-sizing: border-box;
  background: rgba(255,255,255,0.96) !important;
  box-shadow: 0 2px 12px rgba(60,100,180,0.07);
  z-index: 1002;
  backdrop-filter: blur(8px) saturate(1.2);
}
.profile-pic { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.profile-pic-lg { width: 64px; height: 64px; }
.profile-pic.bi-person-circle {
  margin-bottom: 0 !important;
  margin-right: 0.5em;
  vertical-align: middle !important;
  line-height: normal !important;
}
.profile-pic-lg.bi-person-circle {
  width: 64px;
  height: 64px;
  font-size: 64px;
  line-height: 64px;
}
.profile-dropdown { position: relative; display: inline-block; }
.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  z-index: 1000;
  padding: 1rem;
}
.profile-dropdown:hover .profile-dropdown-content,
.profile-dropdown:focus-within .profile-dropdown-content {
  display: block;
}
.profile-dropdown-content a {
  color: #333;
  padding: 8px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.3s;
}
.profile-dropdown-content a:hover,
.profile-dropdown-content a:focus,
.profile-dropdown-content a:active {
  background-color: #2563eb !important;
  color: #fff !important;
}
.profile-info {
  padding: 8px 16px;
  border-bottom: 1px solid #eee;
  margin-bottom: 8px;
}
.profile-name {
  margin: 0;
  font-weight: 500;
}
.dropdown-menu { border-radius: 0.75rem !important; }
select, select.form-select { border-radius: 0.75rem !important; }

/* Alerts */
.fade-alert {
  opacity: 1;
  transition: opacity 0.5s ease;
}
.fade-alert.hide {
  opacity: 0;
  pointer-events: none;
}

/* Badges for list_tests.php */
.badge-reading {
  background: #00bcd4 !important;
  color: #fff !important;
}
.badge-writing {
  background: #ff9800 !important;
  color: #fff !important;
}
.badge-listening {
  background: #43a047 !important;
  color: #fff !important;
}
.badge-speaking {
  background: #8e24aa !important;
  color: #fff !important;
}
.badge-default {
  background: #757575 !important;
  color: #fff !important;
}
.card.h-100.shadow-sm a.btn {
  margin-top: 8px;
}

/* 404 page */
.notfound-margin { margin-top: 10vh; }
.notfound-big { font-size: 4em; }
.notfound-red { color: #ff6666; }

/* Edit profile */
.profile-file-input { max-width: 220px; display: inline-block; }

/* Card and Card Header */
.card {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-top: 1.2rem;
}
.card-header {
  background-color: #f8f9fa;
  margin-top: 0rem;
}

/* Responsive adjustments for profile-pic */
@media (max-width: 600px) {
  .profile-pic-lg { width: 48px; height: 48px; }
}

/* Beautiful Responsive Footer */
.site-footer {
  background: linear-gradient(90deg, #e3eefd 0%, #f8fafc 100%);
  border-top: 1.5px solid #e0e7ef;
  box-shadow: 0 -2px 16px rgba(60, 100, 180, 0.07);
  position: relative;
  z-index: 2;
  margin-top: 0;
}
.main-content {
  flex: 0;
}
.main-content > .row:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.footer-brand {
  font-size: 1.2rem;
  color: #2a4365;
}
.footer-logo-text {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: #2563eb;
}
.footer-tagline {
  font-size: 1rem;
  color: #3b4a5a;
  font-weight: 500;
}
.footer-support {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.support-title {
  font-weight: 600;
  color: #e53935;
  font-size: 1.1rem;
  letter-spacing: 0.2px;
}
.footer-qr {
  width: 90px;
  height: 90px;
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(60,100,180,0.10);
  background: #fff;
  padding: 6px;
  margin-bottom: 0.3rem;
}
.support-desc {
  color: #6b7280;
  font-size: 0.95rem;
}
.footer-links {
  font-size: 1.1rem;
  color: #2a4365;
}
.footer-link {
  color: #2563eb;
  text-decoration: none;
  margin: 0 0.3em;
  transition: color 0.18s;
}
.footer-link:hover {
  color: #e53935;
  text-decoration: underline;
}
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0;
  }
  .footer-brand, .footer-support, .footer-links {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
  }
}
@media (max-width: 600px) {
  .footer-content {
    padding: 0 0.5rem;
  }
  .footer-qr {
    width: 70px;
    height: 70px;
  }
  .footer-logo-text {
    font-size: 1.1rem;
  }
}

/* About Page Styles */
.about-hero-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 32px rgba(60, 100, 180, 0.10);
}
.about-content {
  max-width: 1200px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.5rem;
}
.about-mission, .about-team, .about-cta {
  border-radius: 1.2rem;
  background: #fff;
  margin-bottom: 2rem;
}
.about-mission h2, .about-team h2, .about-cta h2 {
  font-weight: 700;
}
body.dark-theme .about-team-list li {
  color: #f3f6fd !important;
}
.about-cta {
  background: linear-gradient(90deg, #e3eefd 0%, #f8fafc 100%);
  border: 1.5px solid #e0e7ef;
}
@media (max-width: 900px) {
  .about-content {
    padding: 0 0.5rem;
  }
  .about-hero-section {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .about-hero-section {
    padding: 1rem 0.2rem;
  }
  .about-content {
    padding: 0 0.2rem;
  }
  .about-mission, .about-team, .about-cta {
    padding: 1.2rem 0.7rem !important;
  }
}

/* Contact Page Styles */
.contact-hero-section {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 4px 32px rgba(60, 100, 180, 0.10);
}
.contact-content {
  max-width: 1000px;
  margin: 0 auto 2.5rem auto;
  padding: 0 1.5rem;
}
.contact-card, .contact-info {
  border-radius: 1.2rem;
  background: #fff;
  margin-bottom: 2rem;
}
.contact-card h2, .contact-info h2 {
  font-weight: 700;
}
.contact-info {
  background: linear-gradient(90deg, #e3eefd 0%, #f8fafc 100%);
  border: 1.5px solid #e0e7ef;
}
@media (max-width: 900px) {
  .contact-content {
    padding: 0 0.5rem;
  }
  .contact-hero-section {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    padding: 1.2rem 0.5rem;
  }
}
@media (max-width: 600px) {
  .contact-hero-section {
    padding: 1rem 0.2rem;
  }
  .contact-content {
    padding: 0 0.2rem;
  }
  .contact-card, .contact-info {
    padding: 1.2rem 0.7rem !important;
  }
}

@media (max-width: 900px) {
  .custom-navbar, .navbar {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
@media (max-width: 600px) {
  .custom-navbar, .navbar {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 1.1rem;
  color: #2a4365;
  line-height: 1.7;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.footer-spacer {
  flex: 1;
}

.passage-panel {
  color: #212529 !important; /* High contrast for light mode */
  background: transparent !important;
  padding: 1.25em 1.5em !important;
  border-radius: 0.7em !important;
  box-shadow: 0 2px 8px rgba(60,100,180,0.07);
  margin-bottom: 1.5rem !important;
  font-size: 1.13rem;
  line-height: 1.8;
}
body.dark-theme .passage-panel {
  color: #f8f9fa !important; /* High contrast for dark mode */
  background: transparent !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.13);
}

.alert {
  margin-top: 1rem;
  padding: 1rem;
  margin-right: 5rem;
}

.notification-alert {
  margin-left: 5rem;
  margin-right: 5rem;
}

/* Admin Dashboard Tabs: Chrome-style outward curl for active admin dashboard tab */
.nav-tabs .nav-link {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.nav-tabs .nav-link.active {
  background: #fff !important;
  color: #0d6efd !important;
  box-shadow: 0 2px 8px rgba(60,100,180,0.07);
  border-color: #dee2e6 #dee2e6 #fff #dee2e6 !important;
  z-index: 3;
}

/* Remove all theme switcher, dragger, knob, and icon styles */
.theme-dragger-switch, .slider-knob, .slider-icon, .slider-sun, .slider-moon, .theme-switch, .theme-switch input, .slider, .slider:before, .theme-toggle-btn {
  display: none !important;
}

.did-you-know-attractive,
.did-you-know-attractive:hover,
.did-you-know-attractive:focus {
  border-radius: 2rem !important;
}

.landing-hero-group {
  background: rgba(255,255,255,0.96);
  border-radius: 2.2rem;
  box-shadow: 0 8px 40px rgba(60,100,180,0.13), 0 1.5px 8px rgba(60,100,180,0.07);
  padding: 3.5rem 2.5rem 2.5rem 2.5rem;
  margin: 3.5rem auto 2rem auto;
  max-width: 1200px;
  width: 96vw;
  position: relative;
  z-index: 2;
}
@media (max-width: 900px) {
  .landing-hero-group {
    padding: 2rem 1rem 1.5rem 1rem;
    border-radius: 1.2rem;
  }
}
@media (max-width: 600px) {
  .landing-hero-group {
    padding: 1rem 0.3rem 1rem 0.3rem;
    border-radius: 0.7rem;
  }
}

.hero-section .landing-cta-btn {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-group > .hero-section {
  background: rgba(255,255,255,0.96);
  border-radius: 5rem !important;
  box-shadow: 0 4px 24px rgba(60,100,180,0.10);
  padding: 2.5rem 2rem;
  margin: 0 auto;
}

.landing-hero-group > .glass-hero {
  border-radius: 5rem !important;
}

.theme-toggle-label {
  display: inline-block;
  cursor: pointer;
  user-select: none;
}
.theme-toggle-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.theme-toggle-slider {
  display: inline-block;
  width: 36px;
  height: 20px;
  background: #e3eefd;
  border-radius: 20px;
  position: relative;
  transition: background 0.3s, border 0.3s;
  vertical-align: middle;
  border: 1.5px solid #d1d5db;
}
.theme-toggle-label input[type="checkbox"]:checked ~ .theme-toggle-slider {
  background: #23272f;
  border-color: #23272f;
}
.theme-toggle-circle {
  position: absolute;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(60,100,180,0.13);
  border: 2px solid #e3e6eb;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s, border 0.3s;
  z-index: 2;
}
.theme-toggle-label input[type="checkbox"]:checked ~ .theme-toggle-slider .theme-toggle-circle {
  transform: translateX(14px) translateY(-50%);
  background: #23272f;
  border: 2px solid #fff;
}
.theme-toggle-label .material-icons,
.theme-toggle-label svg {
  color: #f3f6fd !important;
  fill: #f3f6fd !important;
}

/* Smooth theme transitions */
body, .hero-section, .card, .site-footer, .landing-footer, .skills-showcase, .cta-wide-section {
  transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}

body.dark-theme, body.dark-theme .main-content, body.dark-theme .card, body.dark-theme .card-header, body.dark-theme .site-footer, body.dark-theme .landing-footer {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}
body.dark-theme .custom-navbar, body.dark-theme .navbar {
  background: var(--color-navbar-bg) !important;
  color: var(--color-navbar-text) !important;
  box-shadow: 0 2px 16px rgba(37,99,235,0.10);
  backdrop-filter: blur(8px) saturate(1.2);
}
body.dark-theme .nav-link {
  color: var(--color-navbar-text) !important;
  transition: color 0.2s;
}
body.dark-theme .nav-link:hover {
  color: var(--color-navbar-hover) !important;
}
body.dark-theme .card, body.dark-theme .card-header, body.dark-theme .skills-showcase, body.dark-theme .cta-wide-section, body.dark-theme .hero-section {
  background: var(--color-card-bg) !important;
  color: var(--color-text) !important;
  box-shadow: 0 8px 40px rgba(37,99,235,0.10), 0 1.5px 8px rgba(20,30,60,0.10);
  border: 1.5px solid #23272f !important;
}
body.dark-theme .hero-section {
  background: linear-gradient(135deg, #181c24 60%, #23272f 100%) !important;
  color: var(--color-text) !important;
}
body.dark-theme .landing-cta-btn.animated-cta {
  background: linear-gradient(90deg, #2563eb 0%, #8e24aa 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(37,99,235,0.18);
}
body.dark-theme .landing-cta-btn.animated-cta:hover, body.dark-theme .landing-cta-btn.animated-cta:focus {
  background: linear-gradient(90deg, #8e24aa 0%, #2563eb 100%);
  color: #fff;
}
body.dark-theme .site-footer, body.dark-theme .landing-footer {
  background: var(--color-footer-bg) !important;
  color: var(--color-footer-text) !important;
  border-top: 1.5px solid #23272f;
}
body.dark-theme .footer-link {
  color: var(--color-accent);
}
body.dark-theme .footer-link:hover {
  color: var(--color-accent2);
}
body.dark-theme .alert-success {
  background: rgba(67,233,123,0.12) !important;
  color: var(--color-success) !important;
  border-color: var(--color-success) !important;
}
body.dark-theme .alert-danger {
  background: rgba(255,83,112,0.12) !important;
  color: var(--color-danger) !important;
  border-color: var(--color-danger) !important;
}
body.dark-theme .alert-warning {
  background: rgba(255,209,102,0.12) !important;
  color: var(--color-warning) !important;
  border-color: var(--color-warning) !important;
}
body.dark-theme .alert-info {
  background: rgba(0,188,212,0.12) !important;
  color: var(--color-info) !important;
  border-color: var(--color-info) !important;
}
body.dark-theme .badge-reading {
  background: #00bcd4 !important;
  color: #181c24 !important;
}
body.dark-theme .badge-writing {
  background: #ffd166 !important;
  color: #181c24 !important;
}
body.dark-theme .badge-listening {
  background: #43e97b !important;
  color: #181c24 !important;
}
body.dark-theme .badge-speaking {
  background: #8e24aa !important;
  color: #fff !important;
}
body.dark-theme .badge-default {
  background: #757575 !important;
  color: #fff !important;
}
body.dark-theme .highlighted-text[data-color="yellow"] { background-color: #ffe066 !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="green"] { background-color: #43e97b !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="blue"] { background-color: #2563eb !important; color: #fff !important; }
body.dark-theme .highlighted-text[data-color="pink"] { background-color: #e040fb !important; color: #fff !important; }
body.dark-theme .highlighted-text[data-color="orange"] { background-color: #ffb74d !important; color: #23272f !important; }
body.dark-theme .highlighted-text[data-color="gray"] { background-color: #374151 !important; color: #fff !important; }
body.dark-theme .card, body.dark-theme .card-header {
  border-color: #23272f !important;
}
body.dark-theme .profile-dropdown-content {
  background: #23272f !important;
  color: #e3e6eb !important;
  box-shadow: 0 8px 32px rgba(37,99,235,0.13);
}
body.dark-theme .profile-dropdown-content a {
  color: #a3bffa !important;
}
body.dark-theme .profile-dropdown-content a:hover,
body.dark-theme .profile-dropdown-content a:focus,
body.dark-theme .profile-dropdown-content a:active {
  background-color: #2563eb !important;
  color: #fff !important;
}
body.dark-theme .profile-info {
  border-bottom: 1px solid #374151 !important;
}
body.dark-theme .form-control, body.dark-theme input, body.dark-theme textarea, body.dark-theme select {
  background: #181c24 !important;
  color: #e3e6eb !important;
  border: 1.5px solid #23272f !important;
}
body.dark-theme .form-control:focus, body.dark-theme input:focus, body.dark-theme textarea:focus, body.dark-theme select:focus {
  border-color: #2563eb !important;
  background: #23272f !important;
  color: #fff !important;
}
body.dark-theme .btn-primary, body.dark-theme .btn-success, body.dark-theme .btn-warning, body.dark-theme .btn-danger, body.dark-theme .btn-info {
  color: #fff !important;
  border: none !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.10);
}
body.dark-theme .btn-primary {
  background: linear-gradient(90deg, #2563eb 0%, #8e24aa 100%) !important;
}
body.dark-theme .btn-primary:hover, body.dark-theme .btn-primary:focus {
  background: linear-gradient(90deg, #8e24aa 0%, #2563eb 100%) !important;
}
body.dark-theme .btn-success {
  background: linear-gradient(90deg, #43e97b 0%, #38f9d7 100%) !important;
}
body.dark-theme .btn-success:hover, body.dark-theme .btn-success:focus {
  background: linear-gradient(90deg, #38f9d7 0%, #43e97b 100%) !important;
}
body.dark-theme .btn-warning {
  background: linear-gradient(90deg, #ffd166 0%, #ffb74d 100%) !important;
  color: #181c24 !important;
}
body.dark-theme .btn-danger {
  background: linear-gradient(90deg, #ff5370 0%, #ffb74d 100%) !important;
}
body.dark-theme .btn-info {
  background: linear-gradient(90deg, #00bcd4 0%, #2563eb 100%) !important;
}
body.dark-theme .dropdown-menu {
  background: #23272f !important;
  color: #e3e6eb !important;
  border: 1.5px solid #374151 !important;
}
body.dark-theme .dropdown-item {
  color: #e3e6eb !important;
}
body.dark-theme .dropdown-item:hover, body.dark-theme .dropdown-item:focus {
  background-color: #2563eb !important;
  color: #fff !important;
}
body.dark-theme .modal-content {
  background: #23272f !important;
  color: #e3e6eb !important;
  border: 1.5px solid #374151 !important;
}
body.dark-theme .table {
  background: #181c24 !important;
  color: #e3e6eb !important;
}
body.dark-theme .table th, body.dark-theme .table td {
  border-color: #23272f !important;
}
body.dark-theme .form-text, body.dark-theme .small, body.dark-theme small {
  color: #b0b8c9 !important;
}

/* Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  z-index: 11000;
  transition: width 0.2s ease;
}

/* Sticky Navbar */
nav.navbar.custom-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.main-content {
  padding-top: 76px; /* Height of navbar + progress bar */
}

.btn {
  border-radius: 999px !important;
}

body.dark-theme .skill-card {
  background: #23272f !important;
  color: #f3f6fd !important;
  box-shadow: 0 2px 16px rgba(37,99,235,0.10);
}
body.dark-theme .skill-card .badge-default,
body.dark-theme .skill-card .badge-reading,
body.dark-theme .skill-card .badge-writing,
body.dark-theme .skill-card .badge-listening,
body.dark-theme .skill-card .badge-speaking {
  color: #181c24 !important;
  background: #ffd166 !important;
}

body.dark-theme .btn-primary,
body.dark-theme .landing-cta-btn.animated-cta {
  box-shadow: 0 0 12px 2px rgba(37,99,235,0.18);
}

body.dark-theme .hero-section,
body.dark-theme .cta-wide-section,
body.dark-theme .skills-showcase {
  background: #181c24 !important;
}

body.dark-theme .text-muted,
body.dark-theme .badge-default,
body.dark-theme .skill-card .badge-default {
  color: #b0b8c9 !important;
}

body.dark-theme .footer-link,
body.dark-theme .navbar-brand,
body.dark-theme .navbar-brand img {
  color: #a3bffa !important;
  filter: brightness(1.2);
}

body.dark-theme .card,
body.dark-theme .skill-card,
body.dark-theme .hero-section,
body.dark-theme .cta-wide-section {
  box-shadow: 0 4px 32px rgba(37,99,235,0.10), 0 1.5px 8px rgba(20,30,60,0.10);
}

body.dark-theme img,
body.dark-theme svg,
body.dark-theme .material-icons {
  filter: brightness(1.2) !important;
}

body.dark-theme .animated-bg {
  background: radial-gradient(circle at 20% 30%, #23272f 0%, #181c24 60%, #141926 100%) !important;
}

.landing-footer {
  background: transparent !important;
  color: #2a4365 !important;
  font-size: 1.15rem !important;
  text-align: center !important;
  margin-top: 2.5rem !important;
  margin-bottom: 1.5rem !important;
  z-index: 2;
  position: relative;
  padding: 0.5rem 0 !important;
}
body.dark-theme .landing-footer {
  background: transparent !important;
  color: #f3f6fd !important;
}

body.dark-theme .hero-section,
body.dark-theme .hero-section .hero-title,
body.dark-theme .hero-section .hero-tagline,
body.dark-theme .hero-section h1,
body.dark-theme .hero-section h2,
body.dark-theme .hero-section h3,
body.dark-theme .hero-section h4,
body.dark-theme .hero-section h5,
body.dark-theme .hero-section h6,
body.dark-theme .hero-section p,
body.dark-theme .hero-section span {
  color: #f3f6fd !important;
}

body.dark-theme .hero-section,
body.dark-theme .about-hero-section,
body.dark-theme .contact-hero-section,
body.dark-theme .hero-section .hero-title,
body.dark-theme .about-hero-section .hero-title,
body.dark-theme .contact-hero-section .hero-title,
body.dark-theme .hero-section .hero-tagline,
body.dark-theme .about-hero-section .hero-tagline,
body.dark-theme .contact-hero-section .hero-tagline,
body.dark-theme .hero-section h1,
body.dark-theme .about-hero-section h1,
body.dark-theme .contact-hero-section h1,
body.dark-theme .hero-section h2,
body.dark-theme .about-hero-section h2,
body.dark-theme .contact-hero-section h2,
body.dark-theme .hero-section h3,
body.dark-theme .about-hero-section h3,
body.dark-theme .contact-hero-section h3,
body.dark-theme .hero-section h4,
body.dark-theme .about-hero-section h4,
body.dark-theme .contact-hero-section h4,
body.dark-theme .hero-section h5,
body.dark-theme .about-hero-section h5,
body.dark-theme .contact-hero-section h5,
body.dark-theme .hero-section h6,
body.dark-theme .about-hero-section h6,
body.dark-theme .contact-hero-section h6,
body.dark-theme .hero-section p,
body.dark-theme .about-hero-section p,
body.dark-theme .contact-hero-section p,
body.dark-theme .hero-section span,
body.dark-theme .about-hero-section span,
body.dark-theme .contact-hero-section span {
  color: #f3f6fd !important;
}

body.dark-theme .table .text-muted,
body.dark-theme .table .text-secondary,
body.dark-theme .table .text-dark,
body.dark-theme .table .table-secondary,
body.dark-theme .table .disabled,
body.dark-theme .table tr[style*="color"],
body.dark-theme .table td[style*="color"] {
  color: #b0b8c9 !important;
  opacity: 1 !important;
}

body.dark-theme table,
body.dark-theme table tr,
body.dark-theme table td,
body.dark-theme table th {
  color: #e3e6eb !important;
  opacity: 1 !important;
}

body.dark-theme table th,
body.dark-theme .table th {
  background: #23272f !important;
  color: #f3f6fd !important;
}

.profile-dropdown .d-flex.align-items-center {
  display: flex !important;
  align-items: center !important;
}

/* Reusable icon class for SVGs */
.icon {
  display: inline-block;
  vertical-align: middle;
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}
.icon-sm { width: 1em; height: 1em; }
.icon-lg { width: 2em; height: 2em; }

.alert .icon {
  width: 1.5em;
  height: 1.5em;
  min-width: 1.5em;
  min-height: 1.5em;
  vertical-align: middle;
}

body.dark-theme .highlight-popup {
  background: #23272f !important;
  color: #f3f6fd !important;
  border: 1px solid #374151 !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.13);
}
body.dark-theme .highlight-popup textarea {
  background: #181c24 !important;
  color: #f3f6fd !important;
  border: 1px solid #374151 !important;
}
body.dark-theme .highlight-popup .color-option {
  border: 2px solid #23272f !important;
}
body.dark-theme .highlight-popup .color-option.selected {
  border: 2px solid #fff !important;
}

.card.h-100.border-primary {
  border: 5px solid transparent !important;
  border-radius: 1.5rem !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #43e97b, #38f9d7, #2563eb) border-box !important;
  background-clip: padding-box, border-box !important;
  box-shadow: 0 4px 24px 0 rgba(37,99,235,0.18), 0 1.5px 8px rgba(20,30,60,0.10) !important;
  position: relative;
  transition: box-shadow 0.2s, border-color 0.2s;
}
body.dark-theme .card.h-100.border-primary {
  background: linear-gradient(#181c24, #181c24) padding-box, linear-gradient(90deg, #43e97b, #38f9d7, #2563eb) border-box !important;
}
.card.h-100.border-primary:hover {
  box-shadow: 0 8px 32px 0 rgba(37,99,235,0.28), 0 2px 16px rgba(60, 100, 180, 0.13) !important;
  border-color: transparent !important;
}

.icon.arrow-left-animate {
  transition: transform 0.22s cubic-bezier(0.4,0,0.2,1);
}
.icon.arrow-left-animate-hover {
  transform: translateX(-6px);
}

.p-4 {
    border-radius: 5em !important;
}

.about-cta .about-team .about-mission {
    border-radius: 2em;
}
.about-cta:hover .about-team:hover .about-mission:hover {
    transform: translateY(8px) scale(1.03);
}