/* Super Luxury Dental Clinic Design */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Luxury Color Palette */
    --gold: #2dd4bf;
    /* Teal */
    --gold-light: #99f6e4;
    /* Light Teal */
    --gold-dark: #115e59;
    /* Dark Teal */
    --navy-deep: #051e34;
    --navy-dark: #020c16;
    --navy-light: #0a2b45;
    --black: #000000;
    --white: #ffffff;

    /* Functional Colors */
    --text-main: #ffffff;
    /* Enforce Pure White */
    --text-muted: #e2e8f0;
    /* Lighter Grey for muted text */
    --success: #34d399;
    /* Teal-green */
    --danger: #f87171;
    --warning: #fbbf24;
    --info: #60a5fa;

    /* Components */
    --card-bg: rgba(5, 30, 52, 0.7);
    --card-border: rgba(212, 175, 55, 0.2);
    --glass-bg: rgba(5, 30, 52, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 15px rgba(45, 212, 191, 0.2);
    /* Teal Glow */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--navy-dark);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(45, 212, 191, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(5, 30, 52, 0.8) 0%, transparent 25%);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Global Text Overrides */
p,
span,
div,
a,
li,
label,
input,
button,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--white);
}

.text-muted,
.text-secondary {
    color: var(--text-muted) !important;
}

.text-dark,
.text-black {
    color: var(--white) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(145deg, rgba(10, 43, 69, 0.6) 0%, rgba(5, 30, 52, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
}

/* Auth Pages */
.auth-page {
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Text Visibility Improvements */
.text-muted {
    color: var(--text-muted) !important;
}

.text-dark {
    color: var(--white) !important;
    /* Invert dark text for dark theme */
}

b,
strong {
    font-weight: 600;
    color: var(--white);
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-gold);
    padding: 3rem 2.5rem;
    text-align: center;
}

.auth-logo {
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.auth-logo img {
    width: 192px;
    /* Updated width as requested */
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(45, 212, 191, 0.3));
}

.auth-title {
    font-size: 2.25rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Forms */
.form-floating>.form-control {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    color: var(--white);
    border-radius: var(--radius-sm);
    height: 3.5rem;
}

.form-floating>.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(45, 212, 191, 0.1);
    color: var(--white);
}

.form-floating>label {
    color: var(--text-muted);
}

.form-floating>.form-control:focus~label,
.form-floating>.form-control:not(:placeholder-shown)~label {
    color: var(--gold);
    background: transparent !important;
}

.form-floating>.form-control:-webkit-autofill {
    -webkit-text-fill-color: var(--white);
    -webkit-box-shadow: 0 0 0px 1000px #0a1825 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    border: none;
    color: var(--navy-dark);
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
    color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 212, 191, 0.4);
}

.btn-outline-secondary {
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    background: transparent;
    border-radius: var(--radius-sm);
    padding: 0.8rem;
}

.btn-outline-secondary:hover {
    border-color: var(--white);
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.auth-divider {
    margin: 2rem 0;
    position: relative;
    text-align: center;
}

.auth-divider span {
    background: transparent;
    /* Changed from card-bg to allow gradient if needed, but text needs bg to hide line */
    background-color: #0b2236;
    /* Hardcoded to match visually or needs wrapper */
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* HACK for divider line through text */
.auth-divider span {
    background: transparent;
    /* Actually, for the line to go behind, we need a solid bg for the text OR we use a different approach.
        Since card bg is semi-transparent, using background matches the card. */
}

/* Re-doing divider logic for glassmorphism */
.auth-divider {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.auth-divider span {
    padding: 0 1rem;
    background: transparent;
}


.auth-link {
    color: var(--gold);
    font-weight: 500;
}

.auth-link:hover {
    color: var(--gold-light);
    text-decoration: none;
}

/* Dashboard Sidebar */
.sidebar {
    background: rgba(2, 12, 22, 0.95);
    border-right: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    width: 280px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.sidebar-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.sidebar-logo {
    width: 192px;
    height: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 0 5px rgba(45, 212, 191, 0.3));
}

.sidebar-nav {
    flex: 1;
    padding: 2rem 1rem;
    overflow-y: auto;
}

.nav-section {
    margin-bottom: 2.5rem;
}

.nav-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--gold);
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.8;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link i {
    font-size: 1.25rem;
    margin-right: 1rem;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%);
    border-left: 3px solid var(--gold);
    color: var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.nav-link.active i {
    color: var(--gold);
}

/* Dashboard Layout */
.main-content {
    margin-left: 280px;
    padding: 2rem;
    min-height: 100vh;
}

.top-navbar {
    background: rgba(2, 12, 22, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 900;
    margin: -2rem -2rem 2rem -2rem;
    /* Negate padding of main-content */
    padding-left: calc(2rem + 20px);
    /* Adjust for visual balance */
}

/* Cards & Stats */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.card-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem;
}

.card-title {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.25rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.card-title i {
    color: var(--gold);
    margin-right: 0.75rem;
}

.card-body {
    padding: 1.5rem;
}

/* Stat Cards */
.stat-card {
    background: linear-gradient(145deg, rgba(10, 43, 69, 0.4) 0%, rgba(5, 30, 52, 0.6) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-gold);
    border-color: var(--gold);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-extra {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--gold);
}

/* Tables */
.table-responsive {
    border-radius: var(--radius-md);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.table-responsive::-webkit-scrollbar {
    height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

.table {
    margin-bottom: 0;
    color: var(--white) !important;
    /* Force white text */
}

.table> :not(caption)>*>* {
    background-color: transparent;
    border-bottom-color: var(--glass-border);
    padding: 1rem 1.5rem;
    color: var(--white) !important;
    /* Force white text on all cells */
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.4) !important;
    color: var(--gold) !important;
    /* Keep headers Teal */
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--card-border);
}

.table tbody tr:hover {
    background-color: rgba(45, 212, 191, 0.05);
    color: var(--white) !important;
}

.table td,
.table th {
    color: var(--white) !important;
}

/* Badges */
.badge {
    padding: 0.5em 1em;
    font-weight: 500;
    letter-spacing: 0.5px;
    border-radius: 30px;
}

.bg-success,
.badge.bg-success {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.bg-warning,
.badge.bg-warning {
    background-color: rgba(245, 158, 11, 0.2) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.bg-danger,
.badge.bg-danger {
    background-color: rgba(239, 68, 68, 0.2) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.bg-info,
.badge.bg-info {
    background-color: rgba(59, 130, 246, 0.2) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.bg-primary-subtle {
    background-color: rgba(212, 175, 55, 0.15) !important;
    color: var(--gold) !important;
}

.text-primary {
    color: var(--gold) !important;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy-dark);
}

/* User Dropdown */
.user-dropdown {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--navy-dark);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
    font-family: var(--font-heading);
}

.user-name {
    color: var(--white);
    font-weight: 500;
    display: block;
}

.user-role {
    color: var(--gold);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-menu {
    background: var(--navy-light);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
}

.dropdown-item {
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dropdown-divider {
    border-top-color: var(--glass-border);
}

/* Welcome Section */
.welcome-section {
    background: linear-gradient(to right, rgba(5, 30, 52, 0.8), rgba(0, 0, 0, 0.4)), url('../img/luxury-bg.jpg');
    /* You might need a subtle pattern or image */
    background-size: cover;
    padding: 3rem;
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.welcome-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.welcome-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-action-tile {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1rem;
    height: 100%;
    transition: var(--transition);
}

.quick-action-tile:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: var(--gold);
    transform: translateY(-5px);
    color: var(--white);
}

.tile-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--gold);
    margin-bottom: 0.5rem;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    animation: whatsappPulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile Responsiveness - Fix Cropping */
@media (max-width: 991px) {

    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .sidebar {
        left: -280px;
        position: fixed;
        z-index: 1050;
    }

    .sidebar.open {
        left: 0;
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .top-navbar {
        margin: -1rem -1rem 1rem -1rem;
        padding-left: 1rem;
    }

    /* Mobile Menu Toggle Button */
    .menu-toggle {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
        border: none;
        border-radius: var(--radius-sm);
        color: var(--navy-dark);
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(45, 212, 191, 0.3);
        transition: all 0.3s ease;
    }

    .menu-toggle:hover,
    .menu-toggle:focus {
        transform: scale(1.05);
        box-shadow: 0 6px 15px rgba(45, 212, 191, 0.4);
        outline: none;
    }

    .menu-toggle:active {
        transform: scale(0.95);
    }

    .menu-toggle i {
        color: var(--navy-dark);
    }

    /* Sidebar Close Button */
    .sidebar-close {
        position: absolute;
        top: 1.5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        background: rgba(239, 68, 68, 0.2);
        border: 1px solid rgba(239, 68, 68, 0.4);
        border-radius: 50%;
        color: #f87171;
        font-size: 1.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .sidebar-close:hover {
        background: rgba(239, 68, 68, 0.3);
        transform: rotate(90deg);
    }

    .sidebar-close:active {
        transform: rotate(90deg) scale(0.9);
    }
}

/* Alerts */
.alert {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: var(--radius-sm);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #ff8787;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.alert-dismissible .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.main-content,
.auth-card {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-card,
.overview-item,
.quick-action-tile {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}

.stat-card:nth-child(1) {
    animation-delay: 0.1s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.15s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.2s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.25s;
}

.table tbody tr {
    animation: fadeIn 0.5s ease-out backwards;
}

.table tbody tr:nth-child(1) {
    animation-delay: 0.1s;
}

.table tbody tr:nth-child(2) {
    animation-delay: 0.15s;
}

.table tbody tr:nth-child(3) {
    animation-delay: 0.2s;
}

.table tbody tr:nth-child(4) {
    animation-delay: 0.25s;
}

.table tbody tr:nth-child(5) {
    animation-delay: 0.3s;
}

/* Calendar Modal Styles */
.modal-content {
    background: var(--card-bg);
    /* Use global card background (dark/teal glass) */
    backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.modal-header {
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.modal-title {
    color: var(--gold);
    /* Teal/Gold accent */
    font-family: var(--font-heading);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--glass-border);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    /* White close button */
}

/* Time Slots Grid */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.time-slot {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--white);
    padding: 0.75rem 0.5rem;
    border-radius: var(--radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 500;
}

.time-slot:hover {
    background: rgba(45, 212, 191, 0.15);
    /* Teal hover */
    border-color: var(--gold);
    transform: translateY(-2px);
    color: var(--white);
}

.time-slot.booked {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    cursor: not-allowed;
    border-color: transparent;
    opacity: 0.6;
}

.time-slot.booked:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.02);
}

.booked-label {
    display: block;
    font-size: 0.7rem;
    color: var(--danger);
    margin-top: 0.25rem;
}

/* ========================= */
/* REFERRAL CARD STYLING     */
/* ========================= */
.referral-card {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(5, 30, 52, 0.9) 100%);
    border: 1px solid var(--gold);
}

.referral-code-box {
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.2) 0%, rgba(45, 212, 191, 0.05) 100%);
    border: 2px dashed var(--gold);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.referral-code-box::before,
.referral-code-box::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--navy-dark);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.referral-code-box::before {
    left: -12px;
    border-right: 2px dashed var(--gold);
}

.referral-code-box::after {
    right: -12px;
    border-left: 2px dashed var(--gold);
}

#referralCode {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--gold) !important;
    text-shadow: 0 0 10px rgba(45, 212, 191, 0.5);
}

.copy-btn {
    background: var(--gold) !important;
    border: none !important;
    color: var(--navy-dark) !important;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.copy-btn:hover {
    background: var(--gold-light) !important;
    transform: scale(1.05);
}

.referral-link-box {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.referral-link-box .form-control {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.referral-link-box .form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.15);
}

/* ========================= */
/* MOBILE RESPONSIVENESS     */
/* ========================= */
@media (max-width: 767px) {
    .sidebar-logo {
        width: 120px;
    }

    .referral-code-box {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .referral-code-box::before,
    .referral-code-box::after {
        display: none;
    }

    #referralCode {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .referral-link-box {
        flex-direction: column;
    }

    .stat-card {
        flex-direction: column;
        text-align: center;
    }

    .stat-icon {
        margin-bottom: 1rem;
    }

    .card-body {
        padding: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    /* Table Enhancements for Mobile */
    .table {
        min-width: 700px;
    }

    .table th,
    .table td {
        padding: 0.75rem 1rem;
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .btn-sm {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Top Navbar Mobile */
    .top-navbar {
        padding: 0.75rem 1rem;
    }

    .navbar-title h5 {
        font-size: 1rem;
    }

    /* Card Headers */
    .card-header {
        padding: 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    /* Sidebar Mobile Overlay */
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }

    .sidebar-overlay.active {
        display: block;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.5rem 1rem;
    }

    .auth-logo img {
        width: 140px;
    }

    .auth-title {
        font-size: 1.75rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    #referralCode {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .btn-primary {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}