/* Calendar Modal Styles */
.calendar-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 14, 23, 0.95);
    z-index: 1000;
    backdrop-filter: blur(12px);
    transition: opacity 0.4s ease;
}

.calendar-container {
    position: relative;
    max-width: 600px;
    width: 90%;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    margin: 2rem auto;
    border: 2px solid rgba(52, 152, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                0 0 0 1px rgba(52, 152, 255, 0.1),
                inset 0 0 30px rgba(52, 152, 255, 0.1),
                0 0 30px rgba(52, 152, 255, 0.2);
    animation: containerGlow 3s ease-in-out infinite;
    transform: translateY(20px) perspective(1000px) rotateX(5deg);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.calendar-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.4s forwards;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.calendar-modal.active .calendar-container {
    transform: translateY(0) perspective(1000px) rotateX(0deg);
    opacity: 1;
}

.calendar-header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.calendar-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
}

.calendar-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 15px rgba(52, 152, 255, 0.3);
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background: rgba(52, 152, 255, 0.05);
    cursor: not-allowed;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(52, 152, 255, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2),
                inset 0 0 10px rgba(52, 152, 255, 0.1);
}

.coming-soon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-10deg);
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    white-space: nowrap;
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 255, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
    z-index: 10;
}

@keyframes containerGlow {
    0% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(52, 152, 255, 0.1),
                    inset 0 0 30px rgba(52, 152, 255, 0.1),
                    0 0 20px rgba(52, 152, 255, 0.2);
    }
    50% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(52, 152, 255, 0.2),
                    inset 0 0 50px rgba(52, 152, 255, 0.2),
                    0 0 30px rgba(52, 152, 255, 0.4);
    }
    100% {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
                    0 0 0 1px rgba(52, 152, 255, 0.1),
                    inset 0 0 30px rgba(52, 152, 255, 0.1),
                    0 0 20px rgba(52, 152, 255, 0.2);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1);
        opacity: 1;
        box-shadow: 0 4px 15px rgba(52, 152, 255, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1.05);
        opacity: 0.8;
        box-shadow: 0 8px 25px rgba(52, 152, 255, 0.5),
                    inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        transform: translate(-50%, -50%) rotate(-10deg) scale(1);
        opacity: 1;
        box-shadow: 0 4px 15px rgba(52, 152, 255, 0.3),
                    inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(52, 152, 255, 0.05);
}

.close-modal:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
    background: rgba(52, 152, 255, 0.1);
    box-shadow: 0 0 15px rgba(52, 152, 255, 0.3);
}

.calendar-day:hover {
    transform: translateZ(15px) rotateX(10deg) scale(1.05);
    box-shadow: 0 15px 30px rgba(52, 152, 255, 0.3),
                inset 0 0 15px rgba(52, 152, 255, 0.2);
    border-color: rgba(52, 152, 255, 0.4);
    background: rgba(52, 152, 255, 0.15);
    color: white;
}

.calendar-day::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(52, 152, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.calendar-day:hover::before {
    opacity: 1;
}

.day-label {
    text-align: center;
    font-weight: bold;
    color: var(--primary-color);
    font-size: 0.8rem;
    padding: 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.calendar-day.empty {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    cursor: default;
}

.calendar-day.empty:hover {
    transform: none;
    box-shadow: none;
    background: transparent;
}

.calendar-day.current-day {
    border-color: var(--primary-color);
    background: rgba(52, 152, 255, 0.15);
    color: white;
    font-weight: bold;
}

.calendar-day.past-day {
    opacity: 0.5;
    cursor: not-allowed;
}

.calendar-day.future-day {
    cursor: pointer;
}

.time-slot {
    position: absolute;
    bottom: 5px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 0.7rem;
    color: var(--primary-color);
    background: rgba(52, 152, 255, 0.1);
    padding: 2px 0;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transform: translateY(5px);
    opacity: 0;
    transition: all 0.3s ease;
}

.calendar-day:hover .time-slot {
    transform: translateY(0);
    opacity: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-bottom: 2rem;
    position: relative;
}