/* Calendar Section */
        .calendar-section {
            padding: 40px 0 60px;
            background: var(--light);
            margin-top:70px ;
        }

        /* Calendar Header */
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding: 20px;
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            flex-wrap: wrap;
            gap: 20px;
        }

        .tutor-info-mini {
            display: flex;
            align-items: center;
            gap: 15px;
            flex: 1;
            min-width: 280px;
        }

        .tutor-avatar-mini {
            position: relative;
            flex-shrink: 0;
        }

        .tutor-avatar-mini img {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid white;
            box-shadow: var(--shadow);
        }

        .online-status {
            position: absolute;
            bottom: 2px;
            right: 2px;
            width: 12px;
            height: 12px;
            background: #4caf50;
            border-radius: 50%;
            border: 2px solid white;
        }

        .tutor-info-mini h1 {
            margin: 0 0 5px 0;
            font-size: 1.5rem;
            color: var(--dark);
            font-weight: 700;
        }

        .tutor-bio-mini {
            margin: 0;
            color: var(--gray-600);
            font-size: 0.95rem;
        }

        .calendar-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        /* Calendar Wrapper */
        .calendar-wrapper {
            display: grid;
            grid-template-columns: 300px 1fr;
            gap: 30px;
            align-items: start;
        }

        /* Sidebar */
        .calendar-sidebar {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .legend-card,
        .stats-card,
        .filters-card,
        .upcoming-sessions {
            background: white;
            border-radius: var(--radius-lg);
            padding: 20px;
            box-shadow: var(--shadow);
        }

        .legend-card h3,
        .stats-card h3,
        .filters-card h3,
        .upcoming-sessions h3 {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 0 0 15px 0;
            color: var(--dark);
            font-size: 1.1rem;
            font-weight: 600;
        }

        .legend-card h3 i,
        .stats-card h3 i,
        .filters-card h3 i,
        .upcoming-sessions h3 i {
            color: var(--primary);
        }

        /* Legend Items */
        .legend-items {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .legend-color {
            width: 20px;
            height: 20px;
            border-radius: 4px;
            flex-shrink: 0;
        }

        .legend-color.available {
            background: #e3f2fd;
            border: 2px solid #2196f3;
        }

        .legend-color.booked {
            background: #ffebee;
            border: 2px solid #f44336;
        }

        .legend-color.unavailable {
            background: #f5f5f5;
            border: 2px solid #9e9e9e;
        }

        /* Stats Card */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
            margin-top: 10px;
        }

        .stat-item {
            text-align: center;
            padding: 12px;
            background: var(--light);
            border-radius: var(--radius);
            border: 1px solid var(--gray-200);
            transition: var(--transition);
        }

        .stat-item:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
        }

        .stat-number {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
            margin-bottom: 5px;
        }

        .stat-label {
            font-size: 0.75rem;
            color: var(--gray-600);
            font-weight: 500;
        }

        /* Filters Card - Time Filter Only */
        .filter-group {
            margin-bottom: 20px;
        }

        .filter-group h4 {
            margin: 0 0 10px 0;
            color: var(--gray-700);
            font-size: 0.95rem;
            font-weight: 600;
        }

        .filter-options {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .filter-checkbox {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 0.9rem;
            color: var(--gray-700);
        }

        .filter-checkbox input {
            cursor: pointer;
        }

        /* Main Calendar */
        .calendar-main {
            display: flex;
            flex-direction: column;
            gap: 20px;
        }

        .calendar-navigation {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: white;
            padding: 15px 20px;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
            flex-wrap: wrap;
            gap: 15px;
        }

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

        .nav-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1px solid var(--gray-300);
            background: white;
            cursor: pointer;
            transition: var(--transition);
        }

        .nav-btn:hover {
            background: var(--primary);
            border-color: var(--primary);
            color: white;
        }

        .nav-controls h2 {
            margin: 0;
            font-size: 1.2rem;
            min-width: 160px;
            text-align: center;
        }

        .view-toggles {
            display: flex;
            gap: 5px;
            background: var(--light);
            padding: 4px;
            border-radius: var(--radius);
            flex-wrap: wrap;
        }

        .view-toggle {
            padding: 8px 12px;
            border: none;
            background: transparent;
            cursor: pointer;
            border-radius: 4px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .view-toggle.active {
            background: var(--primary);
            color: white;
        }

        .calendar-container {
            background: white;
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow);
        }

        /* FullCalendar Customization */
        .fc {
            padding: 20px;
        }

        .fc .fc-toolbar {
            display: none !important;
        }

        .fc .fc-daygrid-day-frame {
            cursor: pointer;
        }

        .fc .fc-daygrid-day-frame:hover {
            background: rgba(79, 70, 229, 0.05);
        }

        .fc .fc-event-available {
            background: #e3f2fd;
            color: #1565c0;
            border-left: 4px solid #2196f3;
            cursor: pointer;
        }

        .fc .fc-event-booked {
            background: #ffebee;
            color: #c62828;
            border-left: 4px solid #f44336;
            cursor: not-allowed;
            opacity: 0.8;
        }

        .fc .fc-event-unavailable {
            background: #f5f5f5;
            color: #757575;
            border-left: 4px solid #9e9e9e;
            cursor: not-allowed;
        }
        /* List view custom styling */
        .fc-list-day-cushion {
            background: var(--primary) !important;
            color: white !important;
        }

        .fc-list-event:hover {
            background: var(--light) !important;
            cursor: pointer;
        }

        .fc-list-event-graphic {
            padding-left: 10px;
        }

        .fc-list-event-title {
            font-weight: 500;
        }

        .fc-list-event .available-event {
            color: #1565c0;
            border-left: 3px solid #2196f3;
        }

        .fc-list-event .booked-event {
            color: #c62828;
            border-left: 3px solid #f44336;
        }
        /* Upcoming Sessions */
        .sessions-list {
            display: flex;
            flex-direction: column;
            gap: 12px;
            max-height: 400px;
            overflow-y: auto;
        }

        .session-item {
            display: flex;
            align-items: center;
            gap: 15px;
            padding: 12px;
            background: var(--light);
            border-radius: var(--radius);
            border: 1px solid var(--gray-200);
            transition: var(--transition);
        }

        .session-item:hover {
            border-color: var(--primary);
            transform: translateX(5px);
        }

        .session-date {
            text-align: center;
            min-width: 50px;
        }

        .session-day {
            font-size: 0.7rem;
            color: var(--gray-600);
            text-transform: uppercase;
        }

        .session-date-num {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary);
        }

        .session-info {
            flex: 1;
        }

        .session-time {
            font-size: 0.85rem;
            font-weight: 600;
        }

        .session-student {
            font-size: 0.8rem;
            color: var(--gray-600);
        }

        /* Info Note */
        .info-note {
            background: linear-gradient(135deg, #f0f9ff, #e0e7ff);
            padding: 20px;
            border-radius: var(--radius-lg);
            border-left: 4px solid var(--primary);
        }

        .note-content {
            display: flex;
            gap: 15px;
        }

        .note-content i {
            font-size: 1.5rem;
            color: var(--primary);
        }

        .note-content h4 {
            margin-bottom: 10px;
            font-size: 1rem;
        }

        .note-content p {
            margin: 5px 0;
            font-size: 0.85rem;
        }

        /* Modal for Multiple Slots */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1000;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .modal.active {
            display: flex;
        }

        .modal-content {
            background: white;
            border-radius: var(--radius-lg);
            max-width: 500px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            animation: modalSlideIn 0.3s ease;
        }

        @keyframes modalSlideIn {
            from {
                opacity: 0;
                transform: translateY(-30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px;
            border-bottom: 1px solid var(--gray-200);
            position: sticky;
            top: 0;
            background: white;
            z-index: 1;
        }

        .modal-header h3 {
            margin: 0;
            font-size: 1.2rem;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .modal-header h3 i {
            color: var(--primary);
        }

        .modal-close {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: var(--transition);
        }

        .modal-close:hover {
            background: var(--gray-100);
            color: var(--danger);
        }

        .modal-body {
            padding: 20px;
        }

        /* Slots List */
        .date-info {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            padding: 15px;
            border-radius: var(--radius);
            margin-bottom: 20px;
            text-align: center;
        }

        .date-info .day {
            font-size: 1.1rem;
            font-weight: 600;
        }

        .date-info .full-date {
            font-size: 0.9rem;
            opacity: 0.9;
            margin-top: 5px;
        }

        .slots-list {
            display: flex;
            flex-direction: column;
            gap: 10px;
            max-height: 400px;
            overflow-y: auto;
        }

        .slot-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 15px;
            background: var(--light);
            border-radius: var(--radius);
            border: 1px solid var(--gray-200);
            transition: var(--transition);
            cursor: pointer;
        }

        .slot-item:hover {
            border-color: var(--primary);
            background: white;
            transform: translateX(5px);
        }

        .slot-time-info {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .slot-time-info i {
            font-size: 1.2rem;
            color: var(--primary);
        }

        .slot-time-info .time {
            font-weight: 600;
            font-size: 1rem;
            color: var(--dark);
        }

        .slot-time-info .duration {
            font-size: 0.8rem;
            color: var(--gray-500);
        }

        .slot-price {
            font-weight: 700;
            color: var(--primary);
            font-size: 1.1rem;
        }

        .no-slots {
            text-align: center;
            padding: 40px;
            color: var(--gray-500);
        }

        .no-slots i {
            font-size: 3rem;
            margin-bottom: 10px;
            display: block;
        }

        /* Responsive Styles */
        @media (max-width: 1024px) {
            .calendar-wrapper {
                grid-template-columns: 1fr;
            }
            
            .calendar-sidebar {
                order: 2;
            }
            
            .calendar-main {
                order: 1;
            }
        }

        @media (max-width: 768px) {
            .calendar-header {
                flex-direction: column;
                text-align: center;
            }
            
            .tutor-info-mini {
                flex-direction: column;
                text-align: center;
            }
            
            .calendar-actions {
                width: 100%;
                justify-content: center;
            }
            
            .calendar-actions .btn {
                flex: 1;
            }
            
            .stats-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 10px;
            }
            
            .stat-item {
                padding: 8px;
            }
            
            .stat-number {
                font-size: 1.2rem;
            }
            
            .nav-controls h2 {
                min-width: 120px;
                font-size: 1rem;
            }
            
            .view-toggle {
                padding: 6px 10px;
                font-size: 0.75rem;
            }
            
            .fc {
                padding: 10px;
            }
            
            .fc .fc-event {
                font-size: 0.7rem;
                padding: 2px 4px;
            }
            
            .modal-content {
                margin: 10px;
                max-width: calc(100% - 20px);
            }
            
            .slot-item {
                flex-direction: column;
                text-align: center;
                gap: 10px;
            }
            
            .slot-time-info {
                flex-direction: column;
                text-align: center;
            }
        }

        @media (max-width: 480px) {
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .breadcrumb {
                font-size: 0.8rem;
            }
            
            .tutor-info-mini h1 {
                font-size: 1.2rem;
            }
            
            .note-content {
                flex-direction: column;
                text-align: center;
            }
            
            .note-content i {
                margin: 0 auto;
            }
            
            .fc .fc-daygrid-day-number {
                font-size: 0.7rem;
                padding: 4px;
            }
        }

        /* Touch Device Optimizations */
        @media (hover: none) and (pointer: coarse) {
            .btn, 
            .view-toggle,
            .nav-btn,
            .slot-item {
                min-height: 44px;
            }
            
            .fc .fc-daygrid-day-frame {
                min-height: 80px;
            }
        }

        /* Loading Spinner */
        .loading {
            text-align: center;
            padding: 40px;
        }

        .loading i {
            font-size: 2rem;
            color: var(--primary);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        /* Add this additional style for availability blocks in modal */
    .availability-block {
        background: white;
        border: 2px solid var(--primary);
        border-radius: var(--radius);
        margin-bottom: 15px;
        overflow: hidden;
        transition: var(--transition);
    }

    .availability-block:hover {
        box-shadow: var(--shadow);
        transform: translateY(-2px);
    }

    .block-header {
        background: linear-gradient(135deg, var(--primary), var(--primary-dark));
        color: white;
        padding: 15px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .block-header i {
        font-size: 1.2rem;
    }

    .block-time {
        font-size: 1rem;
        margin-left: auto;
        font-weight: 500;
    }

    .block-body {
        padding: 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .block-body:hover {
        background: var(--light);
    }

    .slot-time-large {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .slot-time-large i {
        font-size: 1.3rem;
        color: var(--primary);
    }

    .slot-time-large .time-range {
        font-size: 1.1rem;
        font-weight: 600;
        color: var(--dark);
    }

    .slot-duration {
        font-size: 0.85rem;
        color: var(--gray-500);
        margin-left: 10px;
    }

    .slot-price-large {
        font-weight: 700;
        color: var(--primary);
        font-size: 1.2rem;
    }

    .booked-block {
        opacity: 0.6;
        cursor: not-allowed;
    }

    .booked-block .block-body {
        cursor: not-allowed;
    }
    /* Tablet */
@media (max-width: 992px) {
    .calendar-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .calendar-sidebar {
        width: 100%;
    }

    .calendar-main {
        width: 100%;
    }

    .calendar-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-controls {
        justify-content: center;
    }

    .view-toggles {
        justify-content: center;
        width: 100%;
    }

    .today-btn {
        display: flex;
        justify-content: center;
    }

    .fc {
        padding: 10px;
    }
}
.calendar-responsive-container {
    width: 100%;
    overflow-x: hidden;
}
/* Mobile */
@media (max-width: 768px) {
    .calendar-section {
        padding: 20px 0 40px;
        margin-top: 30px;
    }

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

    .tutor-info-mini {
        min-width: 100%;
    }

    .tutor-avatar-mini img {
        width: 50px;
        height: 50px;
    }

    .calendar-navigation {
        padding: 12px;
        gap: 12px;
    }

    .nav-controls h2 {
        min-width: auto;
        width: 100%;
        font-size: 1rem;
    }

    .view-toggles {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .view-toggle {
        justify-content: center;
        width: 100%;
    }

    .legend-card,
    .stats-card,
    .filters-card,
    .upcoming-sessions {
        padding: 15px;
    }

    .sessions-list {
        max-height: 250px;
    }

    .fc .fc-scrollgrid {
        font-size: 12px;
    }

    .fc .fc-daygrid-day {
        min-height: 80px;
    }

    .fc .fc-event {
        font-size: 11px !important;
        padding: 2px !important;
    }

    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    .block-body {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .slot-price-large {
        align-self: flex-end;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .calendar-header {
        border-radius: 12px;
    }

    .tutor-info-mini h1 {
        font-size: 1rem;
        line-height: 1.4;
    }

    .tutor-bio-mini {
        font-size: 0.8rem;
    }

    .view-toggles {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .session-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .slot-time-large {
        flex-direction: column;
        align-items: flex-start;
    }

    .slot-time-large .time-range {
        font-size: 1rem;
    }

    .fc .fc-daygrid-day-number {
        font-size: 11px;
    }

    .fc .fc-col-header-cell-cushion {
        font-size: 11px;
        padding: 4px;
    }

    .modal-header h3 {
        font-size: 1rem;
    }
}