/* ============================================
   CSS VARIABLES - Light & Dark Mode
   ============================================ */
:root {
    /* Light Mode Colors */
    --bg-primary: #f4f2ef;
    --bg-secondary: rgba(255, 255, 255, 0.9);
    --bg-tertiary: #f9f9f9;
    --text-primary: #4B2E22;
    --text-secondary: #8B5E3C;
    --text-tertiary: #666;
    --text-muted: #999;
    --accent-primary: #8B5E3C;
    --accent-secondary: #A67B5B;
    --accent-tertiary: #DCC7AA;
    --border-color: rgba(232, 229, 224, 0.5);
    --border-light: #e0e0e0;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-hover: rgba(0, 0, 0, 0.08);
    
    /* Blob Colors */
    --blob-latte: #DCC7AA;
    --blob-mocha: #A67B5B;
    --blob-espresso: #4B2E22;
}

[data-theme="dark"] {
    /* Dark Mode Colors - WCAG 2.2 AA Compliant */
    --bg-primary: #1a1a1a;
    --bg-secondary: rgba(30, 30, 30, 0.95);
    --bg-tertiary: #2a2a2a;
    /* Primary text: #f5f3f0 on #1a1a1a = 15.8:1 (AAA) */
    --text-primary: #f5f3f0;
    /* Secondary text: #e5d4b8 on #1a1a1a = 12.1:1 (AAA) */
    --text-secondary: #e5d4b8;
    /* Tertiary text: #d0d0d0 on #1a1a1a = 10.2:1 (AAA) */
    --text-tertiary: #d0d0d0;
    /* Muted text: #b8b8b8 on #1a1a1a = 7.1:1 (AAA) */
    --text-muted: #b8b8b8;
    /* Accent on dark: #c89d7a on #1a1a1a = 8.5:1 (AAA) */
    --accent-primary: #c89d7a;
    --accent-secondary: #b88a6a;
    --accent-tertiary: #8b6f4f;
    --border-color: rgba(80, 80, 80, 0.6);
    --border-light: #505050;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(0, 0, 0, 0.5);
    
    /* Blob Colors - Darker, more muted */
    --blob-latte: #4B3E2E;
    --blob-mocha: #3B2E22;
    --blob-espresso: #1a1a1a;
}

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: auto; /* Allow vertical scroll */
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Ensure all main content containers are above blobs */
.dashboard-container,
.admin-container,
.profile-container,
.how-it-works-container,
.page-container {
    position: relative;
    z-index: 10;
}

/* HERO CARD */
.hero-card {
    width: 90%;
    max-width: 620px;
    margin: 4rem auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 30px var(--shadow);
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* BRAND TEXT */
.brand {
    color: var(--text-primary);
    text-align: left;
    line-height: 1.1;
    margin-bottom: 0.8rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* TAGLINE */
.tagline {
    font-size: 1.9rem;
    color: var(--text-secondary);
    line-height: 1.25;
    margin-bottom: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

/* COFFEE ICON CONTAINER */
.coffee-icon {
    width: 400px;
    max-width: 80%;
    margin: 0 auto 2rem auto;
    position: relative;
    z-index: 5; /* Above background shapes */
}

/* CUP SVG */
.coffee-cup {
    width: 100%;
    height: auto;
    fill: var(--accent-secondary);
    animation: cupBreath 6s ease-in-out infinite;
    transition: fill 0.3s ease;
    position: relative;
    z-index: 2; /* Above steam */
}

/* CUP BREATHING ANIMATION */
@keyframes cupBreath {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.015); }
    100% { transform: scale(1); }
}

/* STEAM CONTAINER */
#steam-container {
    position: absolute;
    top: -65px; /* directly above cup */
    left: 45%;
    transform: translateX(-50%);
    width: 150px;
    height: 200px;
    pointer-events: none;
    z-index: 1; /* Below coffee cup */
}

/* STEAM PIECES */
.steam {
    position: absolute;
    opacity: 0;
    animation: rise 4s ease-in-out forwards;
}

.steam svg {
    width: 50px;
    height: auto;
    fill: var(--accent-secondary);
    opacity: 0.7;
    transition: fill 0.3s ease;
}

/* STEAM RISING ANIMATION */
@keyframes rise {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.7);
    }
    40% {
        opacity: 0.6;
        transform: translateY(-10px) scale(1.05);
    }
    100% {
        opacity: 0;
        transform: translateY(-70px) scale(1.15);
    }
}

/* CTA BUTTONS - Keep original for landing page */
.hero-card .btn-primary {
    display: inline-block;
    background: var(--accent-primary);
    color: #ffffff;
    padding: 0.9rem 2rem;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease, background-color 0.3s ease;
}

.hero-card .btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
}

.learn-more {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

/* CORNER ABSTRACT SHAPES IN COFFEE COLOURS */
.corner-shape {
    position: fixed;
    border-radius: 50% 50% 40% 60%;
    opacity: 0.85;
    z-index: 0;
    transition: background-color 0.3s ease;
    pointer-events: none; /* Prevent interaction with blobs */
}

/* Only enable will-change and transform transitions on homepage */
body[data-page="home"] .corner-shape,
body.homepage .corner-shape {
    will-change: transform, border-radius;
    transition: transform 0.3s ease-out, background-color 0.3s ease;
}

/* LATTE — warm creamy beige */
.top-right {
    width: 380px;
    height: 280px;
    top: -70px;
    right: -120px;
    background: var(--blob-latte);
    transition: background-color 0.3s ease;
}

/* MOCHA — medium warm chocolate */
.mid-left {
    width: 280px;
    height: 240px;
    top: 40%;
    left: -120px;
    background: var(--blob-mocha);
    transition: background-color 0.3s ease;
}

/* ESPRESSO — rich dark brown */
.bottom-right {
    width: 300px;
    height: 200px;
    bottom: -70px;
    right: -60px;
    background: var(--blob-espresso);
    transition: background-color 0.3s ease;
}

/* Only animate blobs on homepage */
body[data-page="home"] .top-right,
body.homepage .top-right {
    animation: shapeMorph 12s ease-in-out infinite alternate;
}

body[data-page="home"] .mid-left,
body.homepage .mid-left {
    animation: shapeMorph 14s ease-in-out infinite alternate;
}

body[data-page="home"] .bottom-right,
body.homepage .bottom-right {
    animation: shapeMorph 13s ease-in-out infinite alternate;
}

/* ENHANCED GOOEY SHAPE MORPH */
@keyframes shapeMorph {
    0% {
        border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
    }
    25% {
        border-radius: 30% 70% 50% 50% / 50% 50% 70% 30%;
    }
    50% {
        border-radius: 45% 55% 40% 60% / 40% 60% 50% 50%;
    }
    75% {
        border-radius: 70% 30% 60% 40% / 40% 60% 30% 70%;
    }
    100% {
        border-radius: 60% 40% 55% 45% / 55% 45% 60% 40%;
    }
}

/* PULSE ANIMATION FOR GOOEY EFFECT */
@keyframes shapePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.12);
    }
}


/* ============================================
   MODAL SYSTEM - Theme Matching
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.modal-overlay.modal-show {
    opacity: 1;
}

.modal-container {
    background: var(--bg-secondary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    box-shadow: 0 20px 60px var(--shadow-hover), 0 0 0 1px var(--border-color);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    border: 1px solid var(--border-color);
}

.modal-overlay.modal-show .modal-container {
    transform: scale(1) translateY(0);
}

.modal-content {
    padding: 2.5rem;
    text-align: center;
}

.modal-icon {
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
    font-size: 2rem;
    font-weight: bold;
}
.modal-icon.success {
    background: rgba(0, 200, 0, 0.1);
    color: #4caf50;
}
[data-theme="dark"] .modal-icon.success {
    background: rgba(0, 200, 0, 0.2);
    color: #66bb6a;
}
.modal-icon.error {
    background: rgba(200, 0, 0, 0.1);
    color: #c62828;
}
[data-theme="dark"] .modal-icon.error {
    background: rgba(200, 0, 0, 0.2);
    color: #ef5350;
}
.modal-icon.warning {
    background: rgba(255, 193, 7, 0.1);
    color: #f57c00;
}
[data-theme="dark"] .modal-icon.warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffb74d;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.modal-message {
    font-size: 1rem;
    color: var(--text-tertiary);
    line-height: 1.6;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
    font-family: "Inter", sans-serif;
}

.modal-btn-confirm {
    background: var(--accent-primary);
    color: #ffffff;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .modal-btn-confirm {
    background: #a67b5b;
    color: #ffffff;
}

.modal-btn-confirm:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
}

.modal-btn-confirm:active {
    transform: translateY(0);
}

.modal-btn-cancel {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.modal-btn-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

/* ============================================
   FORM STYLES - Consistent Branding
   ============================================ */

.form-container {
    max-width: 480px;
    margin: 2rem auto;
    background: var(--bg-secondary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="time"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    font-family: "Inter", sans-serif;
    transition: all 0.2s ease;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.2);
}

/* Ensure focus is visible in dark mode */
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus,
[data-theme="dark"] .form-group textarea:focus {
    outline: 2px solid var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(200, 157, 122, 0.3);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    text-align: center;
}

.btn-primary,
.btn.btn-primary {
    background: var(--accent-primary);
    /* Ensure white text meets WCAG on accent background */
    color: #ffffff;
    transition: background-color 0.3s ease;
}

/* Dark mode button: Ensure contrast on darker accent */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn.btn-primary {
    /* #ffffff on #c89d7a = 2.8:1 - needs improvement */
    /* Use darker background for better contrast: #a67b5b = 4.2:1 (AA) */
    background: #a67b5b;
    color: #ffffff;
}

.btn-primary:hover,
.btn.btn-primary:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 94, 60, 0.3);
}

/* WCAG 2.2: Focus indicators for buttons */
.btn:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
    border-radius: 12px;
}

[data-theme="dark"] .btn:focus-visible,
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] a:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 3px;
}

.btn-secondary,
.btn.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.btn-secondary:hover,
.btn.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.btn-outline,
.btn.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.btn-outline:hover,
.btn.btn-outline:hover {
    background: var(--accent-primary);
    color: #ffffff;
}

/* Dark mode outline button hover */
[data-theme="dark"] .btn-outline:hover,
[data-theme="dark"] .btn.btn-outline:hover {
    background: #a67b5b;
    color: #ffffff;
}

/* ============================================
   DASHBOARD STYLES
   ============================================ */

.dashboard-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px var(--shadow);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    transition: color 0.3s ease, border-color 0.3s ease;
}

.match-card {
    background: var(--bg-tertiary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
    z-index: 10;
}

.match-card:hover {
    box-shadow: 0 4px 12px var(--shadow-hover);
    transform: translateY(-2px);
}

.match-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.match-email {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.match-date {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    transition: color 0.3s ease;
}

.availability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.availability-item {
    background: var(--bg-tertiary);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.error {
    background: rgba(198, 40, 40, 0.1);
    color: #c62828;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #c62828;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .error {
    background: rgba(198, 40, 40, 0.25);
    /* #ff8a80 on #1a1a1a = 8.2:1 (AAA) */
    color: #ff8a80;
    border-left-color: #ff8a80;
}

.success {
    background: rgba(46, 125, 50, 0.1);
    color: #2e7d32;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid #2e7d32;
    transition: background-color 0.3s ease;
}

[data-theme="dark"] .success {
    background: rgba(46, 125, 50, 0.25);
    /* #81c784 on #1a1a1a = 7.5:1 (AAA) */
    color: #81c784;
    border-left-color: #81c784;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* ============================================
   NAVIGATION - Consistent Across All Pages
   ============================================ */

.main-navigation {
    background: var(--bg-secondary);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 8px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    margin-bottom: 0;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
    transition: opacity 0.2s ease, color 0.3s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-primary);
}

.nav-link-button {
    padding: 0.625rem 1.5rem !important;
    border-radius: 8px;
}

.nav-user-menu {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    transition: background 0.2s ease;
}

.nav-user-trigger:hover {
    background: var(--bg-tertiary);
    transition: background-color 0.3s ease;
}

.nav-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.nav-user-avatar-default {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-user-avatar-default svg {
    width: 24px;
    height: 24px;
}

.nav-user-name {
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-user-chevron {
    color: var(--text-tertiary);
    transition: transform 0.2s ease, color 0.3s ease;
}

.nav-user-menu.active .nav-user-chevron {
    transform: rotate(180deg);
}

.nav-user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-secondary);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--shadow-hover);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
    z-index: 1001;
    border: 1px solid var(--border-color);
}

.nav-user-menu.active .nav-user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s ease, color 0.3s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.nav-dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.nav-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.nav-dropdown-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.nav-dropdown-item-danger {
    color: #c62828;
}

.nav-dropdown-item-danger svg {
    color: #c62828;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
    transition: background-color 0.3s ease;
}

.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.2s ease, background-color 0.3s ease;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: nowrap;
    }
    
    /* Dark mode toggle always visible on mobile */
    .dark-mode-toggle {
        order: 2;
        margin-left: auto;
        margin-right: 0.5rem;
        flex-shrink: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        /* background: var(--bg-secondary); */
        /* flex-direction: column; */
        align-items: stretch;
        padding: 1rem;
        /* box-shadow: 0 4px 12px var(--shadow-hover); */
        transform: translateX(-100%);
        transition: transform 0.3s ease, background-color 0.3s ease;
        z-index: 999;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    
    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        transition: border-color 0.3s ease;
    }
    
    .nav-user-menu {
        width: 100%;
    }
    
    .nav-user-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        margin-top: 0.5rem;
    }
    
    .nav-mobile-toggle {
        display: flex;
        order: 3;
    }
}

@media (max-width: 768px) {
    .modal-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .form-container {
        margin: 1rem;
        padding: 2rem 1.5rem;
    }
    
    .dashboard-section {
        padding: 1.5rem;
    }
    
    .availability-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DARK MODE TOGGLE SWITCH
   ============================================ */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    background: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.dark-mode-toggle:hover {
    background: var(--bg-tertiary);
}

.dark-mode-toggle:active {
    background: var(--bg-tertiary);
    transform: scale(0.95);
}

.dark-mode-toggle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: block;
}

.dark-mode-toggle .dark-mode-label {
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .dark-mode-toggle {
        padding: 0.625rem;
        min-width: 44px;
        min-height: 44px;
        margin-right: 0.5rem;
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .dark-mode-toggle .dark-mode-label {
        display: none;
    }
    
    .dark-mode-toggle svg {
        width: 22px;
        height: 22px;
    }
}

/* Communication Channel Buttons - Uniform Sizing */
.channel-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 1rem !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-height: 60px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    filter: grayscale(100%);
    opacity: 0.7;
    border: 2px solid var(--border-color) !important;
}
.channel-button:hover {
    opacity: 1;
    filter: grayscale(80%);
}
.channel-button.selected {
    filter: grayscale(0%);
    opacity: 1;
    border-width: 3px !important;
    border-color: var(--accent-primary) !important;
}

.channel-button span:first-child {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
}

.channel-button span:first-child svg {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
}

/* Icons are grayscale by default (inherited from parent) */
.channel-button span:first-child svg {
    filter: grayscale(100%);
    opacity: 0.7;
}

/* For icons when selected - restore color */
.channel-button.selected span:first-child svg {
    filter: grayscale(0%);
    opacity: 1;
}

/* Multi-color brand icons (Zoom, Teams, Google Meet) - keep original colors when selected */
.channel-button.selected[data-channel="zoom"] span:first-child svg,
.channel-button.selected[data-channel="teams"] span:first-child svg,
.channel-button.selected[data-channel="google_meet"] span:first-child svg {
    filter: grayscale(0%) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) brightness(1.1) !important;
    opacity: 1;
}

.channel-button span:last-child {
    flex: 1 !important;
    text-align: center !important;
    white-space: nowrap !important;
}
