/**
 * Horizontal Cubed Calendar Styles
 */

/* Calendar Container */
.booking-calendar-container {
    margin-bottom: 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block !important;
}

/* Calendar Navigation */
.calendar-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 2px solid #00a884; /* Sea pickle green */
}

.current-month-display {
    font-weight: bold;
    font-size: 18px;
    color: #00a884; /* Sea pickle green */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prev-month, .next-month {
    background: #00a884; /* Sea pickle green */
    color: white;
    border: none;
    padding: 8px 15px !important;
    border-radius: 0 !important; /* Remove rounded corners */
    font-weight: bold !important;
    cursor: pointer !important;
    transition: none !important; /* Remove animations */
    box-shadow: none !important; /* Remove shadow */
}

.prev-month:hover, .next-month:hover {
    background: #008f72 !important; /* Darker sea pickle green */
    transform: none; /* Remove animations */
}

/* Horizontal Calendar Grid */
.booking-calendar {
    display: block !important;
    overflow-x: auto;
    padding: 10px 0;
}

.calendar-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
    margin: 0;
}

.calendar-table th {
    background: #00a884; /* Sea pickle green */
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 0; /* Remove rounded corners */
    box-shadow: none; /* Remove shadow */
}

.calendar-table td {
    padding: 0;
    text-align: center;
    width: 14.28%;
    height: 60px;
}

/* Cubed Calendar Days */
.calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 0; /* Remove rounded corners */
    transition: none; /* Remove animations */
    position: relative;
    background: #f8f9fa; /* Flat background */
    border: 1px solid #dee2e6;
    color: #495057;
    box-shadow: none; /* Remove shadow */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.calendar-day:hover {
    transform: none; /* Remove animations */
    box-shadow: none; /* Remove shadow */
    border-color: #00a884; /* Sea pickle green */
}

.calendar-day.available {
    background: rgba(0, 168, 132, 0.1); /* Sea pickle green background */
    border-color: #00a884; /* Sea pickle green border */
    color: #00a884; /* Sea pickle green text */
    font-weight: 700;
}

.calendar-day.available:hover {
    background: rgba(0, 168, 132, 0.2); /* Darker sea pickle green */
    transform: none; /* Remove animations */
    box-shadow: none; /* Remove shadow */
}

.calendar-day.selected {
    background: #00a884; /* Sea pickle green */
    color: white;
    border-color: #008f72; /* Darker sea pickle green */
    transform: none; /* Remove animations */
    box-shadow: none; /* Remove shadow */
    z-index: 10;
}

.calendar-day.unavailable {
    background: #f8f9fa; /* Flat background */
    color: #adb5bd;
    cursor: not-allowed;
    border-color: #dee2e6;
    opacity: 0.6;
}

.calendar-day.unavailable:hover {
    transform: none; /* Remove animations */
    box-shadow: none; /* Remove shadow */
}

.calendar-day.today {
    background: rgba(0, 168, 132, 0.1); /* Sea pickle green background */
    border-color: #00a884; /* Sea pickle green border */
    color: #00a884; /* Sea pickle green text */
    font-weight: 700;
    position: relative;
}

.calendar-day.today::after {
    content: '';
    position: absolute;
    top: 3px;
    right: 3px;
    width: 8px;
    height: 8px;
    background: #00a884; /* Sea pickle green */
    border-radius: 0; /* Remove rounded corners */
    box-shadow: 0 0 0 2px white;
}

.calendar-day.disabled {
    background: #f1f3f4; /* Flat background */
    color: #9aa0a6;
    cursor: not-allowed;
    border-color: #dadce0;
    opacity: 0.5;
}

.empty-day {
    background: transparent !important;
    border: none !important;
    cursor: default !important;
    box-shadow: none !important;
}

/* Calendar Legend */
.calendar-legend {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.legend-color {
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.legend-color.available {
    background: rgba(0, 168, 132, 0.1); /* Sea pickle green background */
    border-color: #00a884; /* Sea pickle green border */
}

.legend-color.unavailable {
    background: #f8f9fa; /* Flat background */
    border-color: #dee2e6;
}

.legend-color.selected {
    background: #00a884; /* Sea pickle green */
    border-color: #008f72; /* Darker sea pickle green */
}

.legend-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* Loading State */
#calendar-loading {
    text-align: center;
    padding: 40px 20px;
    font-style: italic;
    color: #666;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-table {
        border-spacing: 4px;
    }
    
    .calendar-table td {
        height: 45px;
    }
    
    .calendar-day {
        height: 45px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .calendar-table th {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .calendar-legend {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .current-month-display {
        font-size: 16px;
    }
    
    .prev-month, .next-month {
        padding: 6px 12px !important;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .booking-calendar-container {
        padding: 15px;
    }
    
    .calendar-table {
        border-spacing: 2px;
    }
    
    .calendar-table td {
        height: 40px;
    }
    
    .calendar-day {
        height: 40px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .calendar-table th {
        padding: 6px 2px;
        font-size: 10px;
    }
    
    .calendar-legend {
        justify-content: space-around;
    }
    
    .legend-item {
        font-size: 11px;
    }
    
    .legend-color {
        width: 14px;
        height: 14px;
        margin-right: 6px;
    }
}