﻿/* Modal Core */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: none;
    z-index: 1000;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 7px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.15);
}

/* Modal Header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-bottom: thin solid #e5e5e5;
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.modal-closed {
    background: #fff!important;
    border: none;
    color: #666;
    font-family: Arial;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: all 0.2s;
    line-height: 1;
    min-width: 24px;
    min-height: 24px;
}

    .modal-closed:hover {
        background-color: #555;
        color: #fff;
    }

/* Modal Content */
.modal-content {
    padding: 0.75rem 0;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hours Items */
.hours-day {
    padding: 7px 0;
    border-bottom: thin solid #ccc;
}

    .hours-day.current-day {
    }

.hours-day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.day-name {
    font-weight: 600;
    color: #333;
}

.hours-time {
    color: #333;
    font-size: 0.9rem;
}

    .hours-time.closed {
        color: #666;
    }

/* Service Options */
.service-options {
    display: flex;
    justify-content: right;
    gap: 10px;
    padding: 7px 0
}

.service-option {
    font-family: Calibri;
    font-size: 0.9rem;
    padding: 3px 10px;
    border-radius: 10px;
    background-color: #fff;
    color: #444!important;
}

    .service-option.available {
        background-color: #eee;
        border-color: #000;
        color: #000;
    }

    .service-option.unavailable {
        border-color: #e0e0e0;
        color: #666;
        text-decoration: line-through;
    }

/* Animations */
.modal-backdrop.show {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.modal-container.show {
    display: block;
    animation: slideIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Scrollbar */
.modal-container::-webkit-scrollbar {
    width: 4px;
}

.modal-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.modal-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .modal-container {
        width: 95%;
        max-height: 80vh;
    }

    .service-options {
        flex-wrap: wrap;
    }
}
