/* Date Calendar Styles */

.date-calendar-container {
    margin-top: 15px;
    margin-bottom: 20px;
}

.date-calendar-container .calendar {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    background-color: #f9f9f9;
}

.date-calendar-container .calendar-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.date-calendar-container .calendar-header h4 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.date-calendar-container .calendar-dates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.date-calendar-container .calendar-date {
    padding: 12px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fff;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.date-calendar-container .calendar-date.available {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.date-calendar-container .calendar-date.available:hover {
    background-color: #c8e6c9;
    border-color: #388e3c;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
    transform: translateY(-2px);
}

.date-calendar-container .calendar-date.available.selected {
    background-color: #4caf50;
    color: white;
    border-color: #2e7d32;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.5);
}

.date-calendar-container .calendar-date.booked {
    background-color: #ffebee;
    border-color: #f44336;
    cursor: not-allowed;
    opacity: 0.6;
}

.date-calendar-container .calendar-date.booked:hover {
    background-color: #ffebee;
    transform: none;
}

.date-calendar-container .date-value {
    font-size: 24px;
    font-weight: bold;
    color: inherit;
    line-height: 1;
}

.date-calendar-container .calendar-date.booked .date-value {
    color: #f44336;
}

.date-calendar-container .date-month {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    margin-top: 2px;
}

.date-calendar-container .calendar-date.booked .date-month {
    color: #c62828;
}

.date-calendar-container .date-day {
    font-size: 11px;
    color: #999;
    margin-top: 2px;
    text-transform: uppercase;
}

.date-calendar-container .calendar-date.booked .date-day {
    color: #d32f2f;
}

.date-calendar-container .date-status {
    font-size: 10px;
    color: #fff;
    background-color: #f44336;
    padding: 3px 6px;
    border-radius: 2px;
    margin-top: 5px;
    font-weight: bold;
}

/* Всплывающее уведомление о выбранной дате (≈2 с, см. calendar.js) */
.calendar-date-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(120%);
    z-index: 10050;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 20px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 15px;
    line-height: 1.45;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
    opacity: 0;
    transition: transform 0.28s ease, opacity 0.28s ease;
    pointer-events: auto;
    cursor: pointer;
}

.calendar-date-toast--visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.calendar-date-toast strong {
    color: #5eead4;
    font-weight: 600;
}

@media (max-width: 768px) {
    .date-calendar-container .calendar-dates {
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 8px;
    }

    .date-calendar-container .calendar-date {
        padding: 8px;
        min-height: 70px;
    }

    .date-calendar-container .date-value {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .date-calendar-container .calendar-dates {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 6px;
    }

    .date-calendar-container .calendar-date {
        padding: 6px;
        min-height: 60px;
    }

    .date-calendar-container .date-value {
        font-size: 18px;
    }

    .date-calendar-container .date-month {
        font-size: 10px;
    }

    .date-calendar-container .date-day {
        font-size: 9px;
    }
}
