:root {
    /* Light Theme */
    --primary: #6200ee;
    --primary-dark: #3700b3;
    --primary-light: #bb86fc;
    --secondary: #03dac6;
    --secondary-dark: #018786;
    --background: #f5f7fa;
    --surface: #ffffff;
    --error: #b00020;
    --on-primary: #ffffff;
    --on-secondary: #000000;
    --on-background: #121212;
    --on-surface: #121212;
    --text-primary: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.6);
    --neon-glow: 0 0 10px rgba(98, 0, 238, 0.8);
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --card-border: 1px solid rgba(255, 255, 255, 0.3);
    --success: #4ad56d;
    --success-dark: #3ba55c;
    --warning: #ffbe0b;
    --danger: #f72585;
}

[data-theme="dark"] {
    --primary: #bb86fc;
    --primary-dark: #3700b3;
    --primary-light: #e1bfff;
    --secondary: #03dac6;
    --background: #121212;
    --surface: #1e1e1e;
    --error: #cf6679;
    --on-primary: #000000;
    --on-secondary: #000000;
    --on-background: #ffffff;
    --on-surface: #ffffff;
    --text-primary: rgba(255, 255, 255, 0.87);
    --text-secondary: rgba(255, 255, 255, 0.6);
    --neon-glow: 0 0 15px rgba(187, 134, 252, 0.8);
    --card-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: color 0.3s, background-color 0.6s, border-color 0.3s, box-shadow 0.3s;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--background);
    color: var(--on-background);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* 3D Floating Controls */
.floating-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
    transform-style: preserve-3d;
}

.theme-switcher-3d {
    perspective: 1000px;
}

.theme-toggle-3d {
    display: none;
}

.theme-label-3d {
    display: block;
    width: 70px;
    height: 35px;
    background: var(--surface);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
}

.theme-label-3d:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.theme-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    z-index: 1;
}

.theme-icons i {
    font-size: 16px;
    transition: all 0.5s ease;
}

.theme-icons .fa-sun {
    color: #FFD700;
    transform: scale(1.1);
}

.theme-icons .fa-moon {
    color: #7B68EE;
}

.theme-ball-3d {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 29px;
    height: 29px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    border-radius: 50%;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.theme-toggle-3d:checked + .theme-label-3d .theme-ball-3d {
    transform: translateX(35px);
}

.theme-toggle-3d:checked + .theme-label-3d .fa-sun {
    transform: scale(0.9);
}

.theme-toggle-3d:checked + .theme-label-3d .fa-moon {
    transform: scale(1.1);
}

.sound-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--surface);
    border: none;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.sound-toggle:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    color: var(--secondary);
}

.sound-toggle i {
    font-size: 16px;
}

/* Animated Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.neon-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(98, 0, 238, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(98, 0, 238, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    opacity: 0.3;
    animation: gridScroll 100s linear infinite;
}

@keyframes gridScroll {
    from { background-position: 0 0; }
    to { background-position: 1000px 1000px; }
}

/* Main Container */
.main-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transform-style: preserve-3d;
}

/* Holographic Card */
.holographic-card {
    width: 100%;
    max-width: 1200px;
    background: rgba(var(--surface), 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: box-shadow 0.5s ease;
    border: var(--card-border);
    z-index: 1;
}

.holographic-card:hover {
    transform: none;
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(98, 0, 238, 0.1) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
    z-index: -1;
    opacity: 0.5;
}

.card-glow-2 {
    animation: rotateGlow 15s linear infinite reverse;
    background: radial-gradient(circle, rgba(3, 218, 198, 0.1) 0%, transparent 70%);
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--primary), var(--secondary)) 1;
    border-radius: 20px;
    pointer-events: none;
    animation: borderPulse 4s infinite alternate;
}

@keyframes borderPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

.card-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    pointer-events: none;
}

.card-corner-tl {
    top: 0;
    left: 0;
    border-top-color: var(--primary);
    border-left-color: var(--primary);
    border-radius: 20px 0 0 0;
}

.card-corner-tr {
    top: 0;
    right: 0;
    border-top-color: var(--secondary);
    border-right-color: var(--secondary);
    border-radius: 0 20px 0 0;
}

.card-corner-bl {
    bottom: 0;
    left: 0;
    border-bottom-color: var(--primary);
    border-left-color: var(--primary);
    border-radius: 0 0 0 20px;
}

.card-corner-br {
    bottom: 0;
    right: 0;
    border-bottom-color: var(--secondary);
    border-right-color: var(--secondary);
    border-radius: 0 0 20px 0;
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Holographic Header */
.card-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    padding-bottom: 1rem;
}

.holographic-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-shadow: 0 0 10px rgba(98, 0, 238, 0.3);
}

.title-text {
    position: relative;
    z-index: 2;
}

.title-subtext {
    font-size: 3rem;
    font-weight: 400;
    color: var(--secondary);
    margin-top: 0.5rem;
    font-family: 'Montserrat', sans-serif;
    text-transform: none;
    letter-spacing: normal;
}

.title-highlight {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: radial-gradient(circle, var(--primary-light), transparent 70%);
    opacity: 0.3;
    z-index: 1;
}

.scanline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);

}

@keyframes scanline {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}





.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
    border: none;
    z-index: 1;
}

.btn-holographic {
    background: rgba(var(--surface), 0.7);
    color: var(--primary);
    box-shadow: 0 3px 20px rgb(176 144 242);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary), 0.2);
}

.btn-holographic:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(98, 0, 238, 0.3);
    color: var(--primary);
}

.btn-holographic .btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(98, 0, 238, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-holographic:hover .btn-hover-effect {
    transform: translateX(100%);
}

.btn-accent {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(98, 0, 238, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-dark));
    color: white;
    box-shadow: 0 8px 25px rgba(98, 0, 238, 0.5);
}

/* Schedule Container */
.schedule-container {
    background: rgba(var(--surface), 0.5);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary), 0.1);
    transform-style: preserve-3d;
}

/* Schedule Filters */
.schedule-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--surface), 0.7);
    border-bottom: 1px solid rgba(var(--primary), 0.1);
    backdrop-filter: blur(5px);
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    box-shadow: var(--neon-glow);
}

.schedule-filters .scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: scanline 3s linear infinite;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 150px;
}

.filter-group label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-input {
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid rgba(var(--primary), 0.3);
    background: rgba(var(--surface), 0.8);
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 8px rgba(98, 0, 238, 0.5);
    transform: translateY(-2px);
}

.filter-search .filter-input {
    min-width: 200px;
}

.btn-clear-filters {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    align-self: flex-end;
    position: relative;
}

.filter-count {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--secondary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    text-shadow: 0 0 5px rgba(3, 218, 198, 0.3);
}

.filter-count::before {
    content: '\f00b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--primary);
}

.filter-count.pulse {
    animation: pulseCount 0.3s ease-in-out;
}

@keyframes pulseCount {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Schedule Header */
.schedule-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.schedule-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine {
    100% { transform: translateX(100%); }
}

.schedule-col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.schedule-col i {
    font-size: 1.1rem;
}

.schedule-body {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) transparent;
}

.schedule-body::-webkit-scrollbar {
    width: 6px;
}

.schedule-body::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-body::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 6px;
}

.schedule-item {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 1.2rem 1rem;
    align-items: center;
    position: relative;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(var(--primary), 0.1);
    transform-style: preserve-3d;
}

.schedule-item:last-child {
    border-bottom: none;
}

.schedule-item:hover {
    background: rgba(var(--primary), 0.05);
    transform: translateY(-3px) translateZ(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.schedule-item[data-status="available"]:hover {
    background: rgba(74, 213, 109, 0.05);
}

.schedule-item[data-status="booked"]:hover {
    background: rgba(247, 37, 133, 0.05);
}

.schedule-item-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(98, 0, 238, 0.1), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.schedule-item:hover .schedule-item-glow {
    opacity: 1;
}

.schedule-col .date,
.schedule-col .time {
    font-weight: 500;
}

.schedule-col i {
    color: var(--primary);
}

.actions {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 11;
}

.btn-edit-3d {
    background: rgba(var(--surface), 0.8);
    color: var(--warning);
    border: 1px solid rgba(255, 190, 11, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.btn-edit-3d:hover {
    background: rgba(255, 190, 11, 0.1);
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 4px 10px rgba(255, 190, 11, 0.2);
}

.btn-book-3d {
    background: linear-gradient(45deg, var(--success), var(--success-dark));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border: none;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.btn-book-3d:hover {
    background: linear-gradient(45deg, var(--success-dark), var(--success));
    transform: translateY(-2px) rotateX(5deg);
    box-shadow: 0 4px 15px rgba(74, 213, 109, 0.4);
}

.pulse-glow {
    /* animation: pulseGlow 2s infinite; */
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(74, 213, 109, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(74, 213, 109, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 213, 109, 0); }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-available {
    background: rgba(74, 213, 109, 0.1);
    color: var(--success);
    border: 1px solid rgba(74, 213, 109, 0.3);
}

.status-booked {
    background: rgba(247, 37, 133, 0.1);
    color: var(--danger);
    border: 1px solid rgba(247, 37, 133, 0.3);
}

/* Empty Schedule */
.schedule-empty {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    text-align: center;
}

.empty-content {
    max-width: 300px;
}

.empty-content i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-content p {
    color: var(--text-secondary);
}

.btn-archive {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    align-self: flex-end;
    position: relative;
    background: rgba(var(--surface), 0.7);
    color: var(--primary);
    box-shadow: 0 3px 20px rgb(176 144 242);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(var(--primary), 0.2);
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-style: preserve-3d;
}

.btn-archive:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(98, 0, 238, 0.3);
    color: var(--primary);
}

.btn-archive .btn-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(98, 0, 238, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.btn-archive:hover .btn-hover-effect {
    transform: translateX(100%);
}

.schedule-item.past {
    opacity: 0.7;
    background: rgba(128, 128, 128, 0.05);
}

/* Responsive */
@media (min-width: 100px) and (max-width: 768px) {
    .holographic-title {
        font-size: 1.3rem;
    }

    .title-subtext {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    .btn {
        padding: 0.5rem 0.5rem;
    }

    .action-buttons {
        flex-direction: row;
        align-items: center;
        margin-bottom: 0.3rem;
    }

    .card-header {
        text-align: center;
        margin-bottom: 0.8rem;
        position: relative;
        overflow: hidden;
        padding-bottom: 0rem;
    }

    .card-content {
        padding: 2rem;
        padding-top: 0.5rem;

    }

    .schedule-body {
        max-height: 500px;
        overflow-y: none;
        scrollbar-width: none;
        scrollbar-color: var(--primary) none;

    }

    .schedule-header {
        gap: 0rem;
        padding: 0.4rem;
    }

    .schedule-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 0.8rem;
        width: 100%;
        justify-items: center;

    }

    .schedule-col {
        justify-content: flex-start;
    }

    .main-container {
        padding: 0.5rem;
    }

    .actions {
        justify-content: flex-start;
    }

    .schedule-filters {
        flex-direction: row;
        align-items: flex-start;
        place-content: center;
        padding: 0.1rem;
    }

    .filter-group {
        min-width: 15%;
        flex-direction: column;
        gap: 0.3rem;
    }

    .filter-group label {
        font-family: 'Orbitron', sans-serif;
        font-size: 0.6rem;
        color: var(--text-secondary);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .filter-search {
        min-width: 50%;
        font-size: 0.7rem;
        border-radius: 8px;
    }

    .filter-input {
        font-size: 0.9rem;
        padding: 0.3rem;
        border-radius: 8px;
        width: 100%;
        min-width: 80px;

    }

    .btn-clear-filters {
        align-self: flex-start;
    }

    .filter-count {
        align-self: flex-start;
        margin-top: 0.5rem;
    }

    .schedule-col .date,
    .schedule-col .time {
        font-weight: 500;
        font-size: 4vw
    }
}

/* Confetti Canvas */
#confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
}