/* --------------------------------------------------------------
   USER THEME — DARK MODE (Match Admin)
-------------------------------------------------------------- */

:root {
    --bg: #020617;
    --card: #020617;
    --border: #111827;
    --text: #e5e7eb;
    --text-muted: #94a3b8;
    
    /* Sexy Blue Accent (Same as Admin) */
    --accent: #f97316;
    --accent-hover: #2563eb;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-gradient-hover: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);

    --slot-free: #94a3b8;
    --slot-booked: #22c55e;
    --slot-locked: #f97316;
    --slot-selected: #3b82f6;
}

.text-orange {
    color: #f97316;
}

body.user-body {
    background: var(--bg);
    color: var(--text);
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* HEADER */
.user-header {
    background: #030712;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.user-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.user-logo {
    font-size: 1rem;
    font-weight: 600;
    color: #FFFFFF; /* Keep logo orange for brand identity */
    letter-spacing: 0.05em;
}

/* HAMBURGER */
.user-hamburger {
    width: 28px;
    height: 22px;
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    padding: 0;
}

.user-hamburger span {
    width: 100%;
    height: 2px;
    background: #e5e7eb;
    border-radius: 2px;
    transition: 0.3s ease;
}

.user-hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.user-hamburger.active span:nth-child(2) {
    opacity: 0;
}
.user-hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}


.user-nav {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 1.5rem;
    background: #030712;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    width: 220px;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 100;
}

.user-nav.open {
    display: flex;
    animation: slideDown 0.2s ease-out forwards;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.user-nav a {
    padding: 0.6rem 0.5rem;
    color: #e5e7eb;
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    transition: background 0.2s;
}

.user-nav a:last-child {
    border-bottom: none;
}

.user-nav a:hover {
    background: #111827;
    text-decoration: none;
}

/* MAIN */
.user-main {
    max-width: 1100px;
    margin: 1.5rem auto 2rem auto;
    padding: 0 1.5rem;
}

/* CARDS */
.admin-card, .user-card, .dash-card {
    background: #020617;
    border: 1px solid #1e293b; /* Lighter border than var(--border) */
    padding: 1rem;
    border-radius: 16px; /* Curved edges */
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

/* BUTTONS - Sexy Blue Gradient */
.btn, .user-btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    background: var(--accent-gradient);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.85rem;
}

.btn:hover, .user-btn:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.5);
}

.btn:active, .user-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* INPUTS */
.admin-input, .user-input {
    width: 100%;
    padding: 0.4rem 0.5rem;
    border-radius: 4px;
    background: #020617;
    border: 1px solid #111827;
    color: #e5e7eb;
    box-sizing: border-box;
}

/* CALENDAR NAV */
.user-calendar-nav {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1.5rem;
    background: #0f172a;
    border-radius: 999px;
    border: 1px solid #1e293b;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    margin: 1.5rem 0;

}

.user-calendar-nav div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-calendar-nav a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.2rem;
    line-height: 1;
    transition: color 0.2s;
}

.user-calendar-nav a:hover {
    color: #f97316;
}

.user-calendar-day {
    font-size: 0.50rem;
    color: #94a3b8;
    text-decoration: none;
    padding: 0.25rem 0.55rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.user-calendar-day.active {
    color: #f97316;
    font-weight: bold;
    background: rgba(249, 115, 22, 0.1);
}

.user-calendar-day:hover:not(.active) {
    color: #f97316;
    background: rgba(249, 115, 22, 0.05);
}


/* TABLES */
.admin-table, .user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.admin-table th, .user-table th {
    background: #020617;
    font-weight: 500;
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #111827;
    color: #e5e7eb;
}

.admin-table td, .user-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid #111827;
    color: #e5e7eb;
}

.admin-table tr:hover, .user-table tr:hover {
    background: #030712;
}

/* STATUS BADGES */
.badge {
    display: inline-block;
    padding: 0.25em 0.8em;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 999px;
}

.badge-success {
    color: #22c55e;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge-warning {
    color: #f97316;
    background-color: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.badge-danger {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-muted {
    color: #94a3b8;
    background-color: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* CHECKBOXES */
input[type="checkbox"] {
    accent-color: #3b82f6;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

/* FOOTER */
.user-footer {
    text-align: center;
    padding: 1rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    font-size: 0.8rem;
}

/* ============================================
   THEME TOGGLE PILL
============================================ */
.theme-toggle {
    margin-left: auto;
}

.theme-pill {
    display: inline-flex;
    align-items: center;
    background: #0f172a;
    border-radius: 999px;
    border: 1px solid var(--border);
    padding: 2px;
    gap: 2px;
}

.theme-option {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    transition: all 0.2s;
}

.theme-option svg {
    width: 16px;
    height: 16px;
    stroke-width: 2px;
}

.theme-option:hover {
    color: var(--text);
}

.theme-option.active {
    background: #f97316; /* Orange active state */
    color: #0f172a; /* Dark icon on orange bg */
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .user-calendar-nav {
        padding: 0.5rem;
        gap: 0.25rem;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
        flex-wrap: wrap;
    }
    .user-calendar-nav a {
        font-size: 1rem;
        padding: 0.25rem;
    }
    .user-calendar-day {
        padding: 0.25rem 0.5rem;
        font-size: 0.85rem;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table th, .admin-table td {
        padding: 0.4rem 0.25rem;
    }
}
