/* Site Navigation */
.site-nav {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.nav-brand {
    color: #2c5282;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    gap: 20px;
    margin-right: 80px;
}

.nav-link {
    color: #4a5568;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #2c5282;
    background-color: #e6f3ff;
    font-weight: bold;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        gap: 1rem;
    }
}


:root {
    --primary-color: #4a89dc;
    --secondary-color: #5d9cec;
    --text-color: #333;
    --light-gray: #f5f7fa;
    --border-color: #ddd;
    --event-color: #a0d468;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.calendar-container {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: var(--primary-color);
    color: white;
}

.calendar-title {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    letter-spacing: 0.5px !important;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.view-toggle {
    display: flex;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-right: 15px;
}

.toggle-btn {
    padding: 8px 12px !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    cursor: pointer;
    border-radius: 6px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background-color: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255,255,255,0.6) !important;
    font-weight: 700 !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.nav-btn {
    background: rgba(255,255,255,0.1) !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    color: #ffffff !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    cursor: pointer;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3) !important;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.date-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 20px;
}

.date-selector select {
    padding: 8px 12px !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 6px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
    transition: all 0.3s ease;
}

.date-selector select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.date-selector select option {
    background: #2c5282;
    color: white;
}

/* Day View Styles ====================== ====================== ====================== ====================== ====================== */
.day-view {
    display: none;
    flex-direction: column;
}

.day-headers {
    display: grid;
    grid-template-columns: 60px 1fr;
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}
.day-grid {
    display: grid;
    grid-template-columns: 60px 1fr;
    height: 600px;
    overflow-y: auto;
}

/* day 3 grid */
.day3-view {
    display: none;
    flex-direction: column;
}

.day3-headers {
    display: grid;
    grid-template-columns: 60px repeat(3, 1fr);
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}
.day3-grid {
    display: grid;
    grid-template-columns: 60px repeat(3, 1fr);
    height: 600px;
    overflow-y: auto;
}

/* Week View Styles */
.week-view {
    display: none;
    flex-direction: column;
}

.week-day-headers {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.day-header {
    padding: 10px;
    text-align: center;
    font-weight: 600;
    border-right: 1px solid var(--border-color);
}

.time-header {
    border-right: 1px solid var(--border-color);
    background-color: var(--light-gray);
}

.week-grid {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    height: 600px;
    overflow-y: auto;
}

.time-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.time-slot {
    height: 100px;
    padding: 5px;
    text-align: center;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.day-column {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
}

.hour-slot {
    height: 100px;
    border-bottom: 1px solid var(--border-color);
    padding: 5px;
    font-size: 0.8rem;
    position: relative;
}

.event {
    background-color: var(--event-color);
    border-radius: 4px;
    padding: 5px;
    font-size: 0.8rem;
    position: absolute;
    left: 2px;
    right: 2px;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
}

/* Month View Styles ============ ============ ============ ============ ============ ============ ============ ============ */
.month-view {
    display: none;
}
.month-title {
    font-size: 1.2rem;
    font-weight: 800;
    text-align: center;
    padding: 10px 0;
}
.month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background-color: var(--border-color);
}
.month-day-headers {
    display: grid;
    grid-template-columns: 100px repeat(7, 1fr);
    background-color: var(--light-gray);
    border-bottom: 1px solid var(--border-color);
}

.month-day-header {
    font-weight: 600;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background-color: var(--light-gray);
    padding: 5px;
    position: relative;
}
.month-day {
    background-color: white;
    min-height: 100px;
    padding: 5px;
    position: relative;
}

.month-day.other-month {
    background-color: var(--light-gray);
    color: #999;
}

.day-number {
    font-weight: 600;
    margin-bottom: 5px;
}

.hours-dropdown {
    width: 100%;
    margin-top: 5px;
    font-size: 0.8rem;
}

/* Session qty styles */
.quantity-selector {
    display: flex;
    align-items: center;
    margin: 2px 0;
}

.quantity-btn {
    width: 5px;
    height: 5px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-input {
    width: 50px;
    height: 20px;
    text-align: center;
    margin: 2px 2px;
    border: 1px solid #ddd;
    border-radius: 1px;
    font-size: 12px;
    font-weight: bold;
}

/* Responsive Styles ============ ============ ============ ============ ============ ============ ============ ============ ============ */

@media (max-width: 768px) {
    .cart-bubble {
        width: 50px;
        height: 50px;
    }
    
    .cart-icon {
        font-size: 18px;
    }
    
    .cart-count {
        font-size: 14px;
    }
    
    .cart-modal {
        width: 280px;
    }

    .day-headers, .week-grid {
        grid-template-columns: 40px repeat(7, 1fr);
    }
    
    .time-slot, .hour-slot {
        height: 40px;
        font-size: 0.7rem;
    }
    
    .calendar-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .week-grid {
        height: 480px;
    }
    
    .month-day {
        min-height: 80px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .day-headers, .week-grid {
        grid-template-columns: 30px repeat(1, 1fr);
        display: block;
        width: 100%;
        overflow-x: auto;

    }
    
    .day-header {
        padding: 5px 2px;
        font-size: 0.7rem;
    }
    
    .time-slot, .hour-slot {
        height: 30px;
        font-size: 0.6rem;
        padding: 2px;
    }
    
    .date-selector {
        margin: 0 5px;
        gap: 5px;
    }
    
    .date-selector select {
        font-size: 0.8rem;
        padding: 3px;
    }
    
    .month-day {
        min-height: 60px;
        padding: 2px;
        font-size: 0.7rem;
    }
}


/* For very small screens - additional optimizations */
@media (max-width: 359px) {
    .week-view .week-grid .day-column .hour-slot::before {
        width: 50px;
        min-width: 50px;
        font-size: 0.8rem;
    }    
    .week-view .week-grid .day-column .hour-slot {
        padding: 8px;
        min-height: 50px;
    }
    
    .week-view .week-grid .day-column .hour-slot .event {
        font-size: 0.8rem;
        padding: 8px;
    }
}

@media (max-width: 320px) {
    .day-headers, .week-grid {
        grid-template-columns: 30px repeat(1, minmax(40px, 1fr));
        display: block;
        width: 100%;
        overflow-x: auto;
    }
    
    .time-slot, .hour-slot {
        height: 35px;
        font-size: 0.6rem;
    }
    
    .day-header {
        font-size: 0.65rem;
    }
    
    .event {
        font-size: 0.65rem;
        padding: 2px;
    }
    
    .quantity-input {
        width: 25px;
        font-size: 9px;
    }
    
    .cart-bubble {
        width: 40px;
        height: 40px;
    }
    
    .cart-modal {
        width: 280px;
    }
}


/* Shopping Cart Bubble Styles ============= ============= ============= ============= ============= ============= ============= =============  */
.cart-bubble {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
    background: #2c5282;
    color: white;
    padding: 10px 15px;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, background-color 0.3s;
}

.cart-bubble:hover {
    transform: scale(1.05);
    background-color: #357bd8;
}

.cart-icon {
    font-weight: bold;
    font-size: 14px;
}

.cart-count {
    background: #e53e3e;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.cart-modal {
    display: none;
    position: fixed;
    top: 90px;
    right: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 999;
}

.cart-modal-header {
    background-color: #4a89dc;
    color: white;
    padding: 15px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-modal-title {
    margin: 0;
    font-size: 18px;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

.cart-modal-body {
    padding: 15px;
}

.cart-empty-message {
    text-align: center;
    color: #666;
    padding: 20px 0;
}

.cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-weight: bold;
    color: #2c5282;
}

.cart-item-subtitle {
    font-size: 14px;
    color: #4a5568;
    margin: 2px 0;
}

.cart-item-price {
    font-weight: bold;
    color: #38a169;
}

.cart-item-actions {
    display: flex;
    align-items: center;
}

.cart-item-quantity {
    margin: 0 8px;
    min-width: 20px;
    text-align: center;
}

.cart-item-btn {
    width: 24px;
    height: 24px;
    background-color: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-btn:hover {
    background-color: #e0e0e0;
}

.cart-item-remove {
    color: #e74c3c;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    margin-left: 10px;
}

.cart-summary {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 15px;
}

.checkout-btn {
    background-color: #2ecc71;
    color: white;
    border: none;
    padding: 10px 0;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    text-align: center;
}

.checkout-btn:hover {
    background-color: #27ae60;
}

.checkout-btn:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}
