/* =======================
   🌍 Global Styles
======================= */
body {
    font-family: 'Poppins', 'Nunito', sans-serif;
}

/* =======================
   📌 Typography & Titles
======================= */
h1, h2, h3 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

/* =============================================
   🔗 Navbar & Dropdowns (Enhanced)
   ============================================= */

/* ---------- Brand / Logo ---------- */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    transition: transform var(--transition-fast, 0.2s ease);
    gap: 0.6rem;
}

.navbar-brand:hover {
    transform: scale(1.03);
}

.navbar-brand-text {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.light-mode #navbar:not(.glass-effect) .navbar-brand-text {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255,255,255,0.85) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.light-mode #navbar.glass-effect .navbar-brand-text {
    background: linear-gradient(135deg, #007bff 0%, #6610f2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Logo image rotation animation on hover */
.navbar-logo-img {
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.navbar-brand:hover .navbar-logo-img {
    transform: rotate(-8deg) scale(1.1);
}

/* ---------- Nav items / links ---------- */
.navbar-nav .nav-link {
    font-weight: 600;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full, 9999px);
    transition: all var(--transition-base, 0.3s ease);
    white-space: nowrap;
    font-size: 0.92rem;
}

/* Hover pill effect for top-level nav links */
.navbar-nav .nav-link:not(.disabled):hover {
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-nav .nav-link:not(.disabled):active {
    transform: translateY(0px) scale(0.97);
}

/* Active indicator (animated bottom line) for current page */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* ---------- Dropdown container (enhanced) ---------- */
.dropdown-menu-custom,
#navbar .dropdown-menu {
    border: none;
    border-radius: var(--radius-lg, 16px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 0.5rem;
    margin-top: 0.6rem !important;
    min-width: 220px;
    animation: dropdownSlideUp 0.25s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    transform-origin: top center;
}

/* Enhanced dropdown entrance animation */
@keyframes dropdownSlideUp {
    0% {
        opacity: 0;
        transform: translateY(-8px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Right-side dropdown entrance */
.dropdown-menu-end {
    animation-name: dropdownSlideLeft;
    transform-origin: top right;
}

@keyframes dropdownSlideLeft {
    0% {
        opacity: 0;
        transform: translateY(-8px) translateX(4px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) translateX(0) scale(1);
    }
}

/* ---------- Dropdown items ---------- */
.dropdown-item {
    font-weight: 500;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm, 8px);
    transition: all var(--transition-fast, 0.15s ease);
    position: relative;
}

.dropdown-item:hover {
    background: rgba(0, 123, 255, 0.08);
    transform: translateX(4px);
    box-shadow: 0 1px 4px rgba(0, 123, 255, 0.06);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-header {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 0.4rem 0.75rem 0.2rem;
    opacity: 0.8;
}

.dropdown-divider {
    margin: 0.3rem 0;
    opacity: 0.5;
}

/* Dropdown caret rotation animation */
#navbar .dropdown-toggle::after {
    vertical-align: 0.1em;
    transition: transform var(--transition-fast, 0.2s ease);
}

#navbar .dropdown-toggle[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* User dropdown toggle special style */
.user-dropdown-toggle {
    padding: 0.3rem 0.8rem 0.3rem 0.5rem !important;
    border-radius: var(--radius-full, 9999px) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: all var(--transition-base, 0.3s ease) !important;
}

.user-dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

/* Register button special style */
.register-dropdown-toggle {
    padding: 0.3rem 0.8rem 0.3rem 0.5rem !important;
    border-radius: var(--radius-full, 9999px) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    transition: all var(--transition-base, 0.3s ease) !important;
}

.register-dropdown-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.08)) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 12px rgba(255, 255, 255, 0.1) !important;
}

.register-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    color: #1a1a2e;
    font-size: 0.9rem;
    transition: transform var(--transition-fast, 0.2s ease);
}

.register-dropdown-toggle:hover .register-icon-wrapper {
    transform: rotate(-10deg) scale(1.1);
}

/* ---------- Laptop & Desktop specific enhancements ---------- */
@media (min-width: 992px) {
    /* Subtle nav item spacing */
    #navbar .navbar-nav > .nav-item {
        margin: 0 0.1rem;
    }

    /* Animated underline effect for dropdown parents */
    #navbar .navbar-nav > .nav-item.dropdown > .nav-link::before {
        content: '';
        position: absolute;
        bottom: 2px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 2px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 1px;
        transition: width var(--transition-base, 0.3s ease);
    }

    #navbar .navbar-nav > .nav-item.dropdown > .nav-link:hover::before {
        width: 50%;
    }

    /* Smooth dropdown hover - show on hover with delay */
    #navbar .navbar-nav > .nav-item.dropdown:hover > .dropdown-menu {
        display: block;
        visibility: visible;
        opacity: 1;
        margin-top: 0.6rem !important;
    }

    #navbar .navbar-nav > .nav-item.dropdown > .dropdown-menu {
        display: block;
        visibility: hidden;
        opacity: 0;
        transition: all 0.2s ease;
    }
}

/* =======================
   🎨 Buttons
======================= */
.btn {
    font-weight: 500;
}

/* =======================
   ☀️ Light Mode
======================= */
.light-mode {
    background-color: #f5f5f5; /* Gris clair au lieu du blanc pur */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%23e0e0e0' d='M0,192L60,186.7C120,181,240,171,360,165.3C480,160,600,160,720,181.3C840,203,960,245,1080,250.7C1200,256,1320,224,1380,208L1440,192L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: black;
}

/* Navbar - Toggler uses custom .hamburger-line now */

/* Cards */
.light-mode .card {
    background-color: white;
    color: black;
}

/* Buttons */
.light-mode .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}
.light-mode .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
}

/* =======================
   🌙 Dark Mode
======================= */

.dark-mode {
    background-color: #2e2e2e; /* Gris foncé au lieu du noir profond */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233a3a3a' d='M0,192L60,186.7C120,181,240,171,360,165.3C480,160,600,160,720,181.3C840,203,960,245,1080,250.7C1200,256,1320,224,1380,208L1440,192L1440,320L1380,320C1320,320,1200,320,1080,320C960,320,840,320,720,320C600,320,480,320,360,320C240,320,120,320,60,320L0,320Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: white;
}

/* Navbar */
.dark-mode .navbar {
    background-color: #222;
}
.dark-mode .nav-link,
.dark-mode .navbar-brand {
    color: #ffffff !important;
}
/* Dark Mode: Navbar Toggler uses custom .hamburger-line now */

/* Dropdown */
.dark-mode .dropdown-menu {
    background-color: #2a2a2a;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.dark-mode .dropdown-item {
    color: #ffffff;
}
.dark-mode .dropdown-item:hover {
    background: rgba(102, 16, 242, 0.2);
    color: #b388ff;
    transform: translateX(4px);
}

/* Cards */
.dark-mode .card {
    background-color: #222;
    color: #ffffff;
    border: 1px solid #444;
}

/* Buttons */
.dark-mode .btn-primary {
    background-color: #6610f2;
    border-color: #6610f2;
}
.dark-mode .btn-primary:hover {
    background-color: #520dc2;
}
.dark-mode .btn-warning {
    background-color: #ffb300;
    border-color: #ffb300;
}

/* Accordion */

/* 🎭 Icône collapse en mode sombre */
.dark-mode .accordion-button::after {
    filter: invert(1); /* Rend l'icône blanche */
}

/* 🖼️ Assurer un bon contraste */
.dark-mode .accordion-button {
    color: #ffffff; /* Texte blanc */
    background-color: #222; /* Fond assombri */
    border: 1px solid #444; /* Bordure plus visible */
}

/* 🌞 Mode clair - Garder le style par défaut */
.light-mode .accordion-button::after {
    filter: none; /* Pas de modification */
}
.dark-mode .accordion-body {
    background-color: #333 !important;
    color: #ffffff !important;
}
.dark-mode .accordion-item {
    border-color: #444;
}

/* Tables (legacy Bootstrap tables) */
.dark-mode .table {
    background-color: #222;
    color: #ffffff;
}
.dark-mode .table thead {
    background-color: #333;
    color: #ffffff;
}
.dark-mode .table th {
    background-color: #222;
    color: #ffffff;
    border-color: #555;
}
.dark-mode .table tr {
    background-color: #222;
    color: #ffffff;
    border-color: #555;
}
.dark-mode .table td {
    background-color: #222;
    color: #ffffff;
    border-color: #555;
}
.dark-mode .table tbody tr:hover {
    background-color: #3a3a3a;
}

/* Pagination */
.dark-mode .page-link {
    background-color: #222;
    color: #ffffff;
    border: 1px solid #444;
}
.dark-mode .page-item.active .page-link {
    background-color: #6610f2;
    border-color: #6610f2;
}
.dark-mode .page-link:hover {
    background-color: #444;
}

/* Offcanvas */
.dark-mode .offcanvas {
    background-color: #1e1e1e;
    color: #f0f0f0;
}

.dark-mode .offcanvas .form-select,
.dark-mode .offcanvas .form-control {
    background-color: #2c2c2c;
    color: #fff;
    border-color: #444;
}

.dark-mode .offcanvas .form-select:focus,
.dark-mode .offcanvas .form-control:focus {
    background-color: #2c2c2c;
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(102, 16, 242, 0.25); /* violet doux */
}

.dark-mode .offcanvas .btn-close {
    filter: invert(1); /* pour que la croix soit visible */
}

/* Dialogue */
.light-mode #dialogue-container {
    background-color: #fdfdfd;
    color: #000;
}

.light-mode .dialogue-line {
    background: rgba(255, 255, 255, 0.8);
    border-left: 4px solid #007bff;
    color: #212529;
}

.light-mode .dialogue-text {
    color: #212529;
}

.light-mode .word-tooltip {
    border-bottom: 1px dotted #007bff;
    color: #000;
}

.dark-mode #dialogue-container {
    background-color: #1e1e1e;
    color: #fff;
}

.dark-mode .dialogue-line {
    background: rgba(0, 0, 0, 0.5);
    border-left: 4px solid #6610f2;
    color: #fff;
}

.dark-mode .dialogue-text {
    color: #ffffff;
}

.dark-mode .word-tooltip {
    border-bottom: 1px dotted #bbb;
    color: #fff;
}

/* 🎭 Dark Mode override for text-muted */
.dark-mode .text-muted {
    color: #bbbbbb !important; /* ou un gris plus lisible : #ccc, #aaa, etc. */
}

/* 🌙 Dark Mode for Bootstrap Modal */
.dark-mode .modal-content {
background-color: #2c2c2c;
color: #f8f9fa;
border-color: #444;
}

.dark-mode .modal-header,
.dark-mode .modal-footer {
border-color: #444;
}

.dark-mode .btn-close {
filter: invert(1); /* pour voir la croix sur fond sombre */
}

.dark-mode .modal-title {
color: #fff;
}

/* —————————————————————————————————————
   DARK MODE : Popover Style Bootstrap 5.3.3
————————————————————————————————————— */
.dark-mode .popover {
    background-color: #1e1e1e;
    color: #f0f0f0;
    border: 1px solid #444;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.dark-mode .popover-header {
    background-color: #2c2c2c;
    color: #fff;
    border-bottom: 1px solid #555;
}

.dark-mode .popover-body {
    color: #ddd;
}

.dark-mode .popover {
    --bs-popover-bg: #1e1e1e;
    --bs-popover-arrow-border: #444;
}

/* =======================
   🔄 Toggle Switch (Theme)
======================= */
.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}
.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ddd;
    transition: .4s;
    border-radius: 24px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    transition: .4s;
}
input:checked + .slider {
    background-color: #222;
}
input:checked + .slider:before {
    transform: translateX(26px);
    background-color: #fff;
}

/* ============================
   📝 Forms & Inputs (Light & Dark Mode)
============================ */

/* General Styles */
.form-label {
    font-weight: bold;
}

/* 🌞 Light Mode Styles */
.light-mode .form-control,
.light-mode .form-select {
    color: #212529;  /* Texte sombre */
    background-color: #fff;  /* Fond blanc */
    border: 1px solid #ced4da;  /* Bordure par défaut */
}

.light-mode .form-label {
    color: #212529;  /* Texte sombre */
    background-color: #fff;  /* Fond blanc */
}

.light-mode .form-select {
    border: 1px solid #ccc;
}

.light-mode .input-group-text {
    background-color: #f8f9fa;
    border: 1px solid #ccc;
    color: #212529;
}

/* 🌙 Dark Mode Styles */
.dark-mode .form-control,
.dark-mode .form-select {
    color: #e1e1e1; /* Texte clair */
    background-color: #222; /* Fond sombre */
    border: 1px solid #555; /* Bordure subtile */
}

.dark-mode .form-label {
    color: #e1e1e1; /* Texte clair */
    background-color: #222; /* Fond sombre */
}

/* Placeholder en mode sombre */
.dark-mode .form-control::placeholder,
.dark-mode .form-select::placeholder {
    color: #bbb;
}

/* Inputs en Dark Mode */
.dark-mode .form-control,
.dark-mode .form-select {
    background-color: #222;
    color: #ffffff;
    border: 1px solid #555;
}

/* Focus Effects */
.light-mode .form-control:focus,
.light-mode .form-select:focus,
.light-mode .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus,
.dark-mode .input-group:focus-within {
    background-color: #333; /* Légèrement plus clair */
    border-color: #777;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* Input Group en Dark Mode */
.dark-mode .input-group-text {
    background-color: #333;
    border: 1px solid #555;
    color: #e1e1e1;
}

/* 🌙 Amélioration du Select (Dark Mode) */
.dark-mode .form-select option {
    background-color: #222;
    color: #ffffff;
}

/* 🏆 Icône de Dropdown (Dark Mode) */
.dark-mode .form-select {
    appearance: none;  /* Suppression du style natif */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23ffffff' d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E"); /* Icône blanche */
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 22px 22px;
}

/* 📅 Agrandir et colorer l'icône du datepicker en mode sombre */
.dark-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Rend l'icône blanche */
    width: 18px; /* Augmente la taille */
    height: 18px;
    cursor: pointer; /* Garde un pointeur au survol */
}

/* 🖥️ Support pour Firefox */
.dark-mode input[type="date"]::-moz-calendar-picker-indicator {
    filter: invert(1);
    width: 18px;
    height: 18px;
}

/* 💡 Light Mode - Garder l'icône inchangée */
.light-mode input[type="date"]::-webkit-calendar-picker-indicator {
    filter: none;
    width: 18px; /* Taille par défaut */
    height: 18px;
}

/* =======================
   Word CSS
======================= */
.word-tooltip {
    cursor: pointer;
    border-bottom: 1px dotted black;
    transition: background-color 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.word-tooltip:hover {
    background-color: #f0f8ff; /* ou #e0f7fa, selon le thème */
    color: #000; /* s'assurer que le texte reste lisible */
}

.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.3);
    z-index: 10;
}

/* =======================
   Audio
======================= */
@keyframes speakerPulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

.audio-playing {
    animation: speakerPulse 0.8s infinite;
    color: #3481f5; /* bleu Bootstrap ou autre couleur animée */
}
.audio-btn:hover,
.audio-btn:focus,
.audio-btn:active {
    background-color: transparent !important;
    border-color: #6c757d !important; /* ou conserve la couleur normale */
    color: inherit !important;
    box-shadow: none !important;
    outline: none !important;
}
.audio-btn {
    --bs-btn-padding-y: .25rem;
    --bs-btn-padding-x: .5rem;
}

/* =======================
   Search Button
======================= */

/* 🌞 Light Mode - Bouton de recherche */
.search-form .form-control {
    border-radius: 30px;
    padding: 10px 15px;
    transition: all 0.3s ease-in-out;
}

.search-form .form-control:focus {
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.5);
    border-color: #007bff;
}

/* 🎭 Dark Mode */
.dark-mode .search-form .form-control {
    background-color: #222;
    color: #fff;
    border: 1px solid #555;
}

.dark-mode .search-form .form-control:focus {
    border-color: #6610f2;
    box-shadow: 0 0 8px rgba(102, 16, 242, 0.5);
}

/* 🔘 Bouton stylisé */
.search-btn {
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.search-btn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 🌙 Dark Mode - Bouton */
.dark-mode .search-btn {
    background-color: #6610f2;
    border-color: #6610f2;
}

.dark-mode .search-btn:hover {
    background-color: #520dc2;
    border-color: #520dc2;
}

/* ── Chat (tutoring) — dark mode ── */
.dark-mode .chat-page-wrapper {
    background: #1e1e1e;
    border-color: #444;
}
.dark-mode .chat-page-wrapper .border-end {
    border-color: #444 !important;
}
.dark-mode .chat-page-wrapper .border-bottom {
    border-color: #444 !important;
}
.dark-mode .chat-page-wrapper .border-top {
    border-color: #444 !important;
}
.dark-mode .conversation-item {
    background: #333 !important;
    border-color: #3a3a3a !important;
    color: #e0e0e0;
}
.dark-mode .conversation-item:hover {
    background: #3a3a3a !important;
}
.dark-mode .conversation-item.conversation-active {
    background: rgba(102, 16, 242, 0.15) !important;
    border-left-color: #b388ff !important;
}
.dark-mode #chatHeader,
.dark-mode .chat-page-wrapper div[style*="background: #f8f9fb"] {
    background: #333 !important;
}
.dark-mode .chat-page-wrapper div[style*="background: #fff"] {
    background: #3a3a3a !important;
}
.dark-mode #chatHeader h6,
.dark-mode #chatHeader small {
    color: #e0e0e0 !important;
}
.dark-mode #chatHeader .btn-outline-secondary {
    color: #aaa;
    border-color: #555;
}
.dark-mode .message-bubble.bg-primary {
    background: #6610f2 !important;
}
.dark-mode .message-bubble.bg-white {
    background: #333 !important;
    border-color: #444 !important;
    color: #e0e0e0 !important;
}
.dark-mode .message-bubble.border {
    border-color: #444 !important;
}
.dark-mode #messagesArea {
    background: #1a1a1a !important;
}
.dark-mode #messagesArea .badge.bg-light {
    background: #333 !important;
    color: #aaa !important;
}
.dark-mode #messageInputArea {
    background: #222 !important;
    border-color: #444 !important;
}
.dark-mode #messageInputArea .form-control {
    background: #333 !important;
    color: #e0e0e0 !important;
}
.dark-mode #messageInputArea .form-control::placeholder {
    color: #888;
}
.dark-mode .avatar-circle {
    color: #fff;
}
.dark-mode .chat-page-wrapper .text-muted {
    color: #999 !important;
}

/* ── Calendar (tutoring) — lighter dark mode ── */
.dark-mode .fc {
    color: #f0f0f0;
}
.dark-mode .fc .fc-toolbar-title {
    color: #f0f0f0 !important;
}
.dark-mode .fc .fc-button {
    background: #4a4a4a !important;
    border-color: #666 !important;
    color: #f0f0f0 !important;
}
.dark-mode .fc .fc-button:hover {
    background: #5a5a5a !important;
}
.dark-mode .fc .fc-button-primary:not(:disabled).fc-button-active {
    background: #7c3aed !important;
    border-color: #7c3aed !important;
}
.dark-mode .fc .fc-daygrid-day-number {
    color: #ddd !important;
}
.dark-mode .fc .fc-col-header-cell-cushion {
    color: #bbb !important;
}
.dark-mode .fc .fc-daygrid-day.fc-day-today {
    background: rgba(124, 58, 237, 0.1) !important;
}
.dark-mode .fc .fc-timegrid-slot {
    background: transparent;
}
.dark-mode .fc .fc-timegrid-col {
    background: transparent;
}
.dark-mode .fc .fc-timegrid-col.fc-day-today {
    background: rgba(124, 58, 237, 0.08) !important;
}
.dark-mode .fc .fc-non-business {
    background: rgba(255,255,255,0.04);
}
.dark-mode .fc .fc-popover {
    background: #3a3a3a !important;
    border-color: #555 !important;
}
.dark-mode .fc .fc-popover-header {
    background: #4a4a4a !important;
    color: #f0f0f0 !important;
}
.dark-mode .fc .fc-more-popover .fc-popover-body {
    background: #3a3a3a !important;
}
.dark-mode .fc .fc-list-view {
    border-color: #555 !important;
}
.dark-mode .fc .fc-list-table th {
    background: #4a4a4a !important;
    color: #f0f0f0 !important;
}
.dark-mode .fc .fc-list-event:hover td {
    background: rgba(255,255,255,0.08);
}
.dark-mode .fc .fc-list-event td {
    border-color: #555 !important;
}
.dark-mode .fc .fc-list-day-cushion {
    background: #3a3a3a !important;
}
.dark-mode .fc .fc-timegrid-now-indicator-line {
    border-color: #ff6b6b !important;
}
.dark-mode .fc .fc-timegrid-now-indicator-arrow {
    border-color: #ff6b6b !important;
}
.dark-mode .fc .fc-scrollgrid {
    border-color: #555 !important;
}
.dark-mode .fc .fc-scrollgrid-section > td {
    border-color: #555 !important;
}
.dark-mode .fc .fc-daygrid-day-bottom {
    color: #bbb;
}
