body {
    font-family: Arial, sans-serif;
    padding: 20px;
}

.calendar-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
}

.calendar-container {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.month-selector {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 12px;
    min-width: 100px;
}

.month {
    padding: 10px;
    margin-bottom: 5px;
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    color: #00479e;
    font-weight: 500;
    user-select: none;
    transition: background-color 0.3s, color 0.3s;
}

.month:hover {
    background-color: #cce0ff;
}

.month.active {
    background-color: #00479e;
    color: white;
}

.calendar-content {
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    border-radius: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.month-label {
    font-weight: bold;
    font-size: 20px;
    color: #00479e;
    user-select: none;
}

.nav-btn {
    background: #f3f3f3;
    border: none;
    border-radius: 6px;
    padding: 5px 12px;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
    user-select: none;
}

.nav-btn:hover {
    background-color: #d0dfff;
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
    user-select: none;
}

.red {
    color: red;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.day {
    padding: 5px;
    border-radius: 8px;
    min-height: 50px;
    font-size: 14px;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, border-color 0.3s;
}

.day:hover {
    background-color: #f0f8ff;
}

.price {
    font-weight: bold;
    color: red;
    font-size: 13px;
    margin-top: 3px;
}

.selected-day {
    border: 2px solid red;
    border-radius: 8px;
    background-color: #ffe6e6;
}

.note {
    color: red;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    margin-top: 20px;
}

/* Responsive: màn hình nhỏ */
@media (max-width: 767px) {
    .calendar-container {
        flex-direction: column;
    }
    .month-selector {
        display: none; /* Ẩn selector tháng trên mobile để chỉ hiển thị ngày có giá */
    }
    .weekdays {
        display: none; /* Ẩn thứ trong tuần trên mobile để tránh rối */
    }
    .days {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
    .nav-btn {
        padding: 5px 8px;
        font-size: 12px;
        width: auto;
    }
}
