/* ========== CALENDAR STYLES ========== */
.calendar-container {
    /* Styling now handled by .modern-content-card */
}

.calendar-header {
    /* Removed - now using .modern-page-header */
}

.calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.calendar-controls {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-group select:hover {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.google-calendar-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #4CAF50;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
    margin-bottom: 24px;
}

.nav-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(102, 126, 234, 0.2);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: #667eea;
    color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-controls-row {
    display: contents;
}

.today-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.today-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.month-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
}

.view-toggles {
    display: flex;
    gap: 4px;
    background: rgba(102, 126, 234, 0.08);
    backdrop-filter: blur(10px);
    padding: 4px;
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.view-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    transition: all 0.3s ease;
    text-transform: lowercase;
}

.view-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
    color: #667eea;
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.view-btn:hover:not(.active) {
    color: #334155;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: white;
    width: 100%;
    overflow-x: auto;
    border-spacing: 2px;
}

.calendar-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.calendar-cell {
    min-height: 120px;
    border: 1px solid #e2e8f0;
    padding: 10px;
    position: relative;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    border-radius: 4px;
}

.calendar-header-cell {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.calendar-cell:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-cell.today {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-color: #667eea;
    box-shadow: 0 0 0 2px #667eea inset;
}

.calendar-cell.selected {
    background: #e0f2fe;
    border-color: #0ea5e9;
}

.calendar-cell.other-month {
    background: #f8fafc;
    opacity: 0.5;
}

.cell-date {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
    margin-bottom: 8px;
}

.calendar-cell.other-month .cell-date {
    color: #94a3b8;
}

.calendar-cell.today .cell-date {
    color: #667eea;
    font-weight: 700;
}

.calendar-event {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(10px);
    color: white;
    padding: 5px 8px;
    border-radius: 8px;
    margin-bottom: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 1) 0%, rgba(118, 75, 162, 1) 100%);
}

.calendar-event.tour-type-adventure {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.95), rgba(56, 249, 215, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(67, 233, 123, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-adventure:hover {
    box-shadow: 0 6px 16px rgba(67, 233, 123, 0.5);
    background: linear-gradient(135deg, rgba(67, 233, 123, 1), rgba(56, 249, 215, 1));
}

.calendar-event.tour-type-cultural {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-cultural:hover {
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, rgba(102, 126, 234, 1), rgba(118, 75, 162, 1));
}

.calendar-event.tour-type-nature {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.95), rgba(0, 242, 254, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-nature:hover {
    box-shadow: 0 6px 16px rgba(79, 172, 254, 0.5);
    background: linear-gradient(135deg, rgba(79, 172, 254, 1), rgba(0, 242, 254, 1));
}

.calendar-event.tour-type-culinary {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.95), rgba(245, 87, 108, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-culinary:hover {
    box-shadow: 0 6px 16px rgba(240, 147, 251, 0.5);
    background: linear-gradient(135deg, rgba(240, 147, 251, 1), rgba(245, 87, 108, 1));
}

.calendar-event.tour-type-wellness {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(94, 234, 212, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-wellness:hover {
    box-shadow: 0 6px 16px rgba(20, 184, 166, 0.5);
    background: linear-gradient(135deg, rgba(20, 184, 166, 1), rgba(94, 234, 212, 1));
}

.calendar-event.tour-type-sports {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(251, 191, 36, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-sports:hover {
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.5);
    background: linear-gradient(135deg, rgba(249, 115, 22, 1), rgba(251, 191, 36, 1));
}

.calendar-event.tour-type-historical {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.95), rgba(245, 158, 11, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-historical:hover {
    box-shadow: 0 6px 16px rgba(217, 119, 6, 0.5);
    background: linear-gradient(135deg, rgba(217, 119, 6, 1), rgba(245, 158, 11, 1));
}

.calendar-event.tour-type-entertainment {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.95), rgba(219, 39, 119, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(192, 38, 211, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-entertainment:hover {
    box-shadow: 0 6px 16px rgba(192, 38, 211, 0.5);
    background: linear-gradient(135deg, rgba(192, 38, 211, 1), rgba(219, 39, 119, 1));
}

.calendar-event.tour-type-educational {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.calendar-event.tour-type-educational:hover {
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
    background: linear-gradient(135deg, rgba(99, 102, 241, 1), rgba(168, 85, 247, 1));
}

.event-time {
    font-weight: 600;
    margin-right: 4px;
}

.event-title {
    flex: 1;
}

.event-participants {
    font-size: 0.7rem;
    opacity: 0.8;
    margin-left: 4px;
}

.add-event-btn {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: #667eea;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.2s;
}

.calendar-cell:hover .add-event-btn {
    opacity: 1;
}

.add-event-btn:hover {
    background: #5a67d8;
    transform: scale(1.1);
}

.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.floating-action-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b42a0);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.6);
}

.event-tooltip {
    position: absolute;
    background: #333;
    color: white;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    max-width: 200px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    pointer-events: none;
}

.event-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-bottom: 5px solid #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .calendar-container {
        min-width: 700px;
        border-radius: 5px;
    }

    .calendar-title {
        font-size: 1.3rem;
        text-align: center;
    }

    .calendar-header {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }

    .calendar-controls {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .nav-controls {
        display: flex;
        gap: 10px;
        align-items: center;
        margin-right: 20px;
        /* Add this to create space after the controls */
    }

    .calendar-nav {
        display: flex;
        flex-direction: column;
        padding: 20px 30px;
        border-bottom: 1px solid #e0e0e0;
        background: #f8f9fa;
        gap: 15px;
    }

    .nav-controls-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .calendar-cell {
        min-height: 120px;
        border: 1px solid #e0e0e0;
        padding: 8px;
        position: relative;
        background: white;
        cursor: pointer;
        transition: all 0.2s;
        display: flex;
        flex-direction: column;
        margin-bottom: 2px;
        /* Add space between rows */
    }

    .calendar-event {
        font-size: 0.7rem;
        padding: 2px 4px;
    }

    .filter-group select {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .floating-action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 20px;
        right: 20px;
    }

    .month-year {
        font-size: 1.2rem;
    }

    .view-toggles {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        width: 100%;
        margin-top: 8px;
        margin-bottom: 10px;
    }

    .view-btn {
        padding: 10px 8px;
        font-size: 0.9rem;
        text-align: center;
    }

    .calendar-grid.week-view {
        grid-template-columns: auto repeat(7, minmax(60px, 1fr));
    }

    .week-header {
        padding: 5px;
    }

    .day-name {
        font-size: 0.7rem;
    }

    .day-number {
        font-size: 1rem;
    }

    .list-booking {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-status {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
    }

    .add-event-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
        opacity: 1;
        /* Always visible on mobile */
    }
}

/* Calendar Views CSS - Add this to your existing calendar styles */

/* Week View Styles */
.calendar-grid.week-view {
    display: grid;
    grid-template-columns: auto repeat(7, 1fr);
    gap: 1px;
    background: #e0e0e0;
}

.time-header {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
}

.week-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    gap: 5px;
}

.week-header.today {
    background: #fff3cd;
    color: #856404;
}

.day-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
}

.day-number {
    font-size: 1.2rem;
    font-weight: bold;
}

.time-slot-label {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    padding: 10px;
    text-align: right;
    font-size: 0.8rem;
    color: #666;
    min-height: 60px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 5px;
}

.week-time-slot {
    background: white;
    border: 1px solid #e0e0e0;
    min-height: 60px;
    padding: 4px;
    cursor: pointer;
    position: relative;
    transition: background 0.2s;
}

.week-time-slot:hover {
    background: #f8f9fa;
}

.week-time-slot.today {
    background: #fff3cd;
}

.week-event {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    margin-bottom: 2px;
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
    transition: all 0.2s;
}

.week-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.week-event.tour-type-adventure {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.95), rgba(56, 249, 215, 0.95));
    box-shadow: 0 1px 4px rgba(67, 233, 123, 0.2);
}

.week-event.tour-type-adventure:hover {
    box-shadow: 0 3px 8px rgba(67, 233, 123, 0.4);
}

.week-event.tour-type-cultural {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95), rgba(118, 75, 162, 0.95));
    box-shadow: 0 1px 4px rgba(102, 126, 234, 0.2);
}

.week-event.tour-type-cultural:hover {
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.4);
}

.week-event.tour-type-nature {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.95), rgba(0, 242, 254, 0.95));
    box-shadow: 0 1px 4px rgba(79, 172, 254, 0.2);
}

.week-event.tour-type-nature:hover {
    box-shadow: 0 3px 8px rgba(79, 172, 254, 0.4);
}

.week-event.tour-type-culinary {
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.95), rgba(245, 87, 108, 0.95));
    box-shadow: 0 1px 4px rgba(240, 147, 251, 0.2);
}

.week-event.tour-type-culinary:hover {
    box-shadow: 0 3px 8px rgba(240, 147, 251, 0.4);
}

.week-event.tour-type-wellness {
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.95), rgba(94, 234, 212, 0.95));
    box-shadow: 0 1px 4px rgba(20, 184, 166, 0.2);
}

.week-event.tour-type-wellness:hover {
    box-shadow: 0 3px 8px rgba(20, 184, 166, 0.4);
}

.week-event.tour-type-sports {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(251, 191, 36, 0.95));
    box-shadow: 0 1px 4px rgba(249, 115, 22, 0.2);
}

.week-event.tour-type-sports:hover {
    box-shadow: 0 3px 8px rgba(249, 115, 22, 0.4);
}

.week-event.tour-type-historical {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.95), rgba(245, 158, 11, 0.95));
    box-shadow: 0 1px 4px rgba(217, 119, 6, 0.2);
}

.week-event.tour-type-historical:hover {
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.4);
}

.week-event.tour-type-entertainment {
    background: linear-gradient(135deg, rgba(192, 38, 211, 0.95), rgba(219, 39, 119, 0.95));
    box-shadow: 0 1px 4px rgba(192, 38, 211, 0.2);
}

.week-event.tour-type-entertainment:hover {
    box-shadow: 0 3px 8px rgba(192, 38, 211, 0.4);
}

.week-event.tour-type-educational {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.95), rgba(168, 85, 247, 0.95));
    box-shadow: 0 1px 4px rgba(99, 102, 241, 0.2);
}

.week-event.tour-type-educational:hover {
    box-shadow: 0 3px 8px rgba(99, 102, 241, 0.4);
}

/* Day View Styles */
.calendar-grid.day-view {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1px;
    background: #e0e0e0;
}

.day-view-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    text-align: center;
    margin-bottom: 1px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.day-view-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.day-time-slot {
    background: white;
    border: 1px solid #e0e0e0;
    min-height: 80px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.day-time-slot:hover {
    background: #f8f9fa;
}

.day-event {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-left: 4px solid;
    border-left-color: #667eea;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.day-event:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.day-event.tour-type-adventure {
    background: linear-gradient(to right, rgba(67, 233, 123, 0.1), rgba(56, 249, 215, 0.05));
    border-left-color: #43e97b;
    box-shadow: 0 2px 4px rgba(67, 233, 123, 0.1);
}

.day-event.tour-type-adventure:hover {
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.2);
}

.day-event.tour-type-cultural {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.05));
    border-left-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.day-event.tour-type-cultural:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.day-event.tour-type-nature {
    background: linear-gradient(to right, rgba(79, 172, 254, 0.1), rgba(0, 242, 254, 0.05));
    border-left-color: #4facfe;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.1);
}

.day-event.tour-type-nature:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.2);
}

.day-event.tour-type-culinary {
    background: linear-gradient(to right, rgba(240, 147, 251, 0.1), rgba(245, 87, 108, 0.05));
    border-left-color: #f093fb;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.1);
}

.day-event.tour-type-culinary:hover {
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.2);
}

.day-event.tour-type-wellness {
    background: linear-gradient(to right, rgba(20, 184, 166, 0.1), rgba(94, 234, 212, 0.05));
    border-left-color: #14b8a6;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.1);
}

.day-event.tour-type-wellness:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.2);
}

.day-event.tour-type-sports {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.1), rgba(251, 191, 36, 0.05));
    border-left-color: #f97316;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.1);
}

.day-event.tour-type-sports:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.2);
}

.day-event.tour-type-historical {
    background: linear-gradient(to right, rgba(217, 119, 6, 0.1), rgba(245, 158, 11, 0.05));
    border-left-color: #d97706;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
}

.day-event.tour-type-historical:hover {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.2);
}

.day-event.tour-type-entertainment {
    background: linear-gradient(to right, rgba(192, 38, 211, 0.1), rgba(219, 39, 119, 0.05));
    border-left-color: #c026d3;
    box-shadow: 0 2px 4px rgba(192, 38, 211, 0.1);
}

.day-event.tour-type-entertainment:hover {
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.2);
}

.day-event.tour-type-educational {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.05));
    border-left-color: #6366f1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.day-event.tour-type-educational:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-time {
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

.event-status {
    background: #28a745;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.event-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.event-customer {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.event-participants {
    color: #666;
    font-size: 0.7rem;
}

/* List View Styles */
.calendar-grid.list-view {
    display: block;
    background: white;
    padding: 20px;
    min-height: calc(100vh - 320px);
    max-height: calc(100vh - 320px);
    overflow-y: auto;
}

.no-events {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-events h3 {
    color: #333;
    margin-bottom: 10px;
}

.list-date-group {
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
}

.list-date-group:last-child {
    border-bottom: none;
}

.list-date-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.list-date-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.booking-count {
    background: #667eea;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.list-bookings {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-booking {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.list-booking:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.list-booking.tour-type-adventure {
    background: linear-gradient(to right, rgba(67, 233, 123, 0.08), rgba(56, 249, 215, 0.03));
    border-left-color: #43e97b;
    box-shadow: 0 2px 4px rgba(67, 233, 123, 0.1);
}

.list-booking.tour-type-adventure:hover {
    box-shadow: 0 4px 12px rgba(67, 233, 123, 0.15);
}

.list-booking.tour-type-cultural {
    background: linear-gradient(to right, rgba(102, 126, 234, 0.08), rgba(118, 75, 162, 0.03));
    border-left-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.list-booking.tour-type-cultural:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.list-booking.tour-type-nature {
    background: linear-gradient(to right, rgba(79, 172, 254, 0.08), rgba(0, 242, 254, 0.03));
    border-left-color: #4facfe;
    box-shadow: 0 2px 4px rgba(79, 172, 254, 0.1);
}

.list-booking.tour-type-nature:hover {
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.15);
}

.list-booking.tour-type-culinary {
    background: linear-gradient(to right, rgba(240, 147, 251, 0.08), rgba(245, 87, 108, 0.03));
    border-left-color: #f093fb;
    box-shadow: 0 2px 4px rgba(240, 147, 251, 0.1);
}

.list-booking.tour-type-culinary:hover {
    box-shadow: 0 4px 12px rgba(240, 147, 251, 0.15);
}

.list-booking.tour-type-wellness {
    background: linear-gradient(to right, rgba(20, 184, 166, 0.08), rgba(94, 234, 212, 0.03));
    border-left-color: #14b8a6;
    box-shadow: 0 2px 4px rgba(20, 184, 166, 0.1);
}

.list-booking.tour-type-wellness:hover {
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.15);
}

.list-booking.tour-type-sports {
    background: linear-gradient(to right, rgba(249, 115, 22, 0.08), rgba(251, 191, 36, 0.03));
    border-left-color: #f97316;
    box-shadow: 0 2px 4px rgba(249, 115, 22, 0.1);
}

.list-booking.tour-type-sports:hover {
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.list-booking.tour-type-historical {
    background: linear-gradient(to right, rgba(217, 119, 6, 0.08), rgba(245, 158, 11, 0.03));
    border-left-color: #d97706;
    box-shadow: 0 2px 4px rgba(217, 119, 6, 0.1);
}

.list-booking.tour-type-historical:hover {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.list-booking.tour-type-entertainment {
    background: linear-gradient(to right, rgba(192, 38, 211, 0.08), rgba(219, 39, 119, 0.03));
    border-left-color: #c026d3;
    box-shadow: 0 2px 4px rgba(192, 38, 211, 0.1);
}

.list-booking.tour-type-entertainment:hover {
    box-shadow: 0 4px 12px rgba(192, 38, 211, 0.15);
}

.list-booking.tour-type-educational {
    background: linear-gradient(to right, rgba(99, 102, 241, 0.08), rgba(168, 85, 247, 0.03));
    border-left-color: #6366f1;
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.list-booking.tour-type-educational:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.booking-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.booking-time .time {
    font-weight: 600;
    font-size: 1.1rem;
    color: #333;
}

.booking-time .duration {
    font-size: 0.8rem;
    color: #666;
}

.booking-details {
    flex: 1;
}

.booking-title {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
}

.booking-customer,
.booking-participants {
    margin: 4px 0;
    color: #666;
    font-size: 0.9rem;
}

.booking-status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
}

.status-confirmed {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.15), rgba(56, 249, 215, 0.15));
    color: #059669;
    border: 1px solid rgba(67, 233, 123, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15), rgba(245, 158, 11, 0.15));
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.status-cancelled {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.15), rgba(0, 242, 254, 0.15));
    color: #0284c7;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.booking-ref {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {}

@media (max-width: 1024px) {
    .calendar-container {
        min-width: 800px;
        /* Reduce from 1000px */
        margin: 0;
    }

    .calendar-header {
        padding: 15px;
    }

    .calendar-title {
        font-size: 1.5rem;
    }

    /* Allow list view to use available vertical space on tablets */
    .calendar-grid.list-view {
        min-height: calc(100vh - 300px);
        max-height: calc(100vh - 300px);
        /* 100vh minus approximate header/filter/nav height */
    }
}

@media (max-width: 480px) {
    .calendar-container {
        min-width: 320px;
        margin: 0;
    }

    .calendar-header {
        padding: 10px;
    }

    .calendar-title {
        font-size: 1.1rem;
    }

    .calendar-controls {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .filter-group select {
        width: 100%;
    }

    /* Hide "My Bookings Only" filter on mobile */
    #assignedToMeFilterGroup {
        display: none !important;
    }

    .calendar-nav {
        padding: 10px 15px;
    }

    .nav-btn,
    .today-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .calendar-cell {
        min-height: 60px;
        padding: 2px;
    }

    .cell-date {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .calendar-event {
        font-size: 0.6rem;
        padding: 1px 2px;
        margin-bottom: 2px;
    }

    .event-time {
        font-size: 0.70rem;
    }

    .floating-action-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
}

/* End of calendar.css */