#calendar .fc-toolbar-title{
    font-size:20px !important;
    display:inline-block;
}
#calendar .btn-primary:disabled{
    background: none !important;
    color:#EF6820 !important;
    border-color:#EF6820 !important;
}
#calendar .fc-button-primary{
    background-color:#ffffff !important;
}
#calendar .btn-primary.fc-button-active, #calendar .fc-button-primary.fc-button-active{
    background-color:#EF6820 !important;
    color:white !important;
}
#calendar .fc-button-active:focus,  #calendar .fc-button-active:focus{
    outline:none !important;
}
#calendar .btn-primary, #calendar .fc-button-primary{
    border-color:#EF6820 !important;
    color:#EF6820 !important;
}
.fc-col-header-cell .fc-col-header-cell-cushion {
    color: #293056;
    text-decoration:none;
}
.instruction-container .text-image p{
font-size:1rem;
}

.fc-button-group button{
text-transform:capitalize;
}

.fc .fc-list-event:hover td{
background-color:unset !important;
opacity:0.7;
}

#select-date{
z-index:9999;
}

.ui-timepicker-list li {
  /*width: 242px;*/
  /*padding: 5px;*/
}

.ui-timepicker-wrapper {
overflow-y: auto;
height: 170px;
width: auto;
text-align: center;
overflow-x: hidden;
}
.right-area > img{
object-fit:cover;
width:100%;
height:310.38px;
border-radius:8px;
}

.filters {
max-width:350px;
}

.fc-toolbar .btn-group > button{
background-color: #EF6820 !important;
border-color: #EF6820 !important;
text-transform:capitalize;
}
.fc-toolbar .fc-today-button{
text-transform:capitalize;
    background-color: #3f8ee9 !important;
  border-color: #3f8ee9 !important;
}

.fc-col-header-cell, th.fc-timegrid-axis {
  background-color: unset;
  color: #fff;
  font-weight: normal;
  line-height: 35px;
}

.fc-toolbar .btn-group .fc-prev-button, .fc-toolbar .btn-group .fc-today-button, .fc-toolbar .btn-group .fc-next-button,  
.fc-toolbar .btn-group .fc-dayGridMonth-button, .fc-toolbar .btn-group .fc-timeGridWeek-button, .fc-toolbar .btn-group .fc-timeGridDay-button,
#add-event, #export-calendar, #export-calendar .btn-primary{
  background-color: white !important;
  color: #EF6820 !important;
}

.fc-toolbar .btn-group button.fc-button-active{
  background-color: #EF6820 !important;
  color:white !important;
  border-color:#EF6820 !important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active{
  background-color: #EF6820 !important;
  color:white !important;
  border-color:#EF6820 !important;
}


.streams .card {
  padding:10px;
}
.calendar-modal .dropdown-toggle {
  padding-top:unset;
  padding-bottom:unset;
  
}

a.live {
  background:green;
  border-color:green;
}

a.live .fc-daygrid-event-dot{
  border-color:lightgreen;
}

a.past {
  background:grey;
  border-color:grey;
}

a.past .fc-daygrid-event-dot{
  border-color:lightgrey;
}

a.cancelled { background: #dc3545; border-color: #dc3545; }
a.cancelled .fc-daygrid-event-dot {border-color: #dc3545; }
 
a.scheduled-live { background: #ffc107; border-color: #ffc107;}
a.scheduled-live .fc-daygrid-event-dot {border-color: #ffc107;}


a.missed, .btn-orange { background: #fd7e14; border-color: #fd7e14; }
a.missed .fc-daygrid-event-dot { border-color: #fd7e14; }

.btn-orange {
    text-transform: uppercase;
    box-shadow: none;
}

.legend {
  border: 2px solid lightgrey;
  padding:10px;
  max-width:400px;
  box-shadow: 1px 1px 3px 3px lightgrey;
}
.legend-color {
 width:100px;
 border-radius:5px;
}
.legend-live {
  background-color:green;
  
}
.legend-future {
  background: linear-gradient(to right, rgba(109, 176, 238, 1) 0%, rgba(66, 144, 233, 1) 54%, rgba(63, 142, 233, 1) 58%);
}
.legend-past{
  background-color:grey;
}
.legend-title {
  font-size:1.5rem;
  font-weight:600;
  margin-left:10px;
}


          /* Calendar container */

    
    .fc-timegrid-slot {
        height: 40px !important;  /* Taller time slots */
    }
    
    
    /* Event styling */
    .fc-event {
        margin: 0;
        padding: 2px !important;
        min-height: 25px;
        border-radius: 2px;
        border: none;
        border-left: 3px solid #007bff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    
    /* Compact event title */
    .fc-event-title {
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 0.9em;
        padding: 2px;
        font-weight:800 !important;
    }
    
    /* Course name in event */
    .fc-event-course {
       font-size: 0.7em;
        line-height: 1.1;
        padding: 1px 2px;
        /*opacity: 0.85;*/
        border-bottom: 1px solid rgba(0,0,0,0.1);
    }
    
      /* Column adjustments */
    .fc .fc-timegrid-axis-cushion {
        min-width: 70px;
        padding: 8px;
    }
    
    .fc .fc-timegrid-col {
        min-width: 120px;  /* Ensure columns are wide enough */
    }
    
    .fc-timegrid-event-harness {
        margin: 0 1px;
    }
    
    
    /* Status-based colors */
    .fc-event.past {
        border-left-color: #6c757d;
        opacity: 0.7;
    }
    
    .fc-event.live {
        border-left-color: #28a745;
    }
    
    .fc-event.upcoming {
        border-left-color: #007bff;
    }
    
    /* Time grid specific */
    .fc-timegrid-event {
        min-height: 18px !important;
    }
    
    /* More link styling */
    .fc-more-link {
        font-size: 0.85em;
        color: #666;
        background: #f8f9fa;
        padding: 2px 4px;
        border-radius: 2px;
    }
    
    /* Responsive adjustments */
    @media (max-width: 768px) {
        .fc-event-title {
            font-size: 0.8em;
        }
        
        .fc-event-course {
            font-size: 0.7em;
        }
        
        .fc-timegrid-event {
            min-height: 15px !important;
        }
    }
        
        
.fc-event-course {
    font-size: 0.7em;
    font-weight: bold;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


    /* Week view specific adjustments */
    .fc-timeGridWeek-view .fc-timegrid-slot {
        height: 45px !important;
        min-height: 45px !important;
    }

    .fc-timeGridWeek-view .fc-event {
        height: auto !important;
        min-height: 25px;
        max-height: none !important;
    }

    /* Improve time column in week view */
    .fc-timeGridWeek-view .fc-timegrid-axis-cushion {
        min-width: 60px;
        padding: 4px;
    }

    /* Adjust day headers in week view */
    .fc-timeGridWeek-view .fc-col-header-cell {
        padding: 4px 2px;
    }

    /* Ensure columns expand properly */
    .fc-timegrid-cols {
        width: 100% !important;
    }

    .fc-timegrid-col {
        min-width: 100px !important;
        width: auto !important;
    }
    
     .fc-timeGridWeek-view .fc-timegrid-col {
        min-width: 180px !important;  /* Wider columns since we have fewer days */
        width: 20% !important;        /* 5 days = 20% each */
    }
    
       /* Week view container */
    .fc-timeGridWeek-view {
        min-height: 800px;  /* Minimum height */
        height: auto !important;
    }

    /* Adjust scrolling container */
    .fc-scroller {
        height: auto !important;
        max-height: 80vh !important;  /* 80% of viewport height */
        overflow-y: auto !important;
    }


    /* Container adjustments */
    #calendar {
        max-width: 98%;    /* Use more screen width */
        margin: 0 auto;
        /*padding: 0 10px;*/
    }

    /* Improve readability of time slots */
    .fc-timegrid-slot-label {
        font-size: 0.9em;
        vertical-align: middle;
    }

/* UPDATE THE DAY VIEW FOR EVENTS */
.fc-timeGridDay-view .fc-event-main-frame{
  display: flex; 
  align-items: center;
  padding: 5px;
  flex-direction: row !important;
  flex-wrap:wrap;
  overflow:hidden;
}
.fc-timeGridDay-view .fc-event-time {
  margin-right: 10px; 
  font-weight: bold;
}
.fc-timeGridDay-view .fc-event-title-container {
  flex: 1;
}

.fc-event-skills {
    font-size: 0.8em;
    margin-top: 2px;
}

.fc-event-skill {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.9;
    font-style: italic;
}

.fc-event-skill-more {
    font-style: italic;
    opacity: 0.7;
}

.fc-timeGridDay-view .fc-event-skills {
    display:flex;
}
#session-data .btn-success, #sessionModal .btn-success {
    background: #098824;
    color: #fff;
}
#session-data .list-recordings {
    background: #0d8094;
    color: #fff;
}
#session-btn .btn-info {
    background: #0d8094;
}

.modal-content-center p > img {
    display: unset;
}
.modal-content-center hr {
    margin-top: 20px;
    margin-bottom: 20px;
}
#bootbox-body #ef-conference-go {
    display: inline-block;
}
#ef-conference-go.btn-success {
    background-color: #098824;
    color: white;
}
#live-sessions h3 {
    font-size:24px;
    font-weight:600;
}

/* Fix owl-dots positioning on Calendar page carousel - prevent horizontal movement */
.sessions-carousel {
    position: relative;
    min-height: 140px; /* Reduced height for more compact layout */
    padding-bottom: 0px; /* Reduced padding for dots */
    overflow: visible; /* Allow dots to be visible */
    width: 100%; /* Ensure full width */
}

/* Carousel container - this should be the positioning context for dots */
.sessions-carousel .owl-carousel {
    position: relative !important;
    min-height: 140px; /* Reduced height to match container */
    padding-bottom: 0;
    width: 100% !important;
    /* Ensure this container doesn't move, only the stage inside moves */
    /* Prevent any transforms on this container */
    transform: none !important;
}

/* Smooth carousel animations with hardware acceleration */
.sessions-carousel .owl-stage-outer,
.classes-container .owl-stage-outer {
    /* Enable hardware acceleration for smooth animations */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Smooth transitions */
    -webkit-transition: -webkit-transform 0.6s ease;
    -moz-transition: -moz-transform 0.6s ease;
    -ms-transition: -ms-transform 0.6s ease;
    -o-transition: -o-transform 0.6s ease;
    transition: transform 0.6s ease;
    /* Performance optimizations */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    perspective: 1000px;
    -webkit-perspective: 1000px;
}

.sessions-carousel .owl-stage,
.classes-container .owl-stage {
    /* Smooth stage transitions */
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: -moz-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: -ms-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: -o-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Hardware acceleration */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Performance */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.sessions-carousel .owl-item,
.classes-container .owl-item {
    /* Smooth item transitions */
    -webkit-transition: opacity 0.3s ease, transform 0.3s ease;
    -moz-transition: opacity 0.3s ease, transform 0.3s ease;
    -ms-transition: opacity 0.3s ease, transform 0.3s ease;
    -o-transition: opacity 0.3s ease, transform 0.3s ease;
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Hardware acceleration for items */
    -webkit-transform: translate3d(0, 0, 0);
    -moz-transform: translate3d(0, 0, 0);
    -ms-transform: translate3d(0, 0, 0);
    -o-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    /* Performance */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* Prevent layout shifts */
    min-height: 1px;
    float: left;
    /* Smooth rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent jerky motion during carousel transitions */
.sessions-carousel .owl-carousel.owl-drag .owl-item,
.classes-container .owl-carousel.owl-drag .owl-item {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Smooth dragging */
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
}

/* Smooth transitions when not dragging */
.sessions-carousel .owl-carousel:not(.owl-drag) .owl-stage,
.classes-container .owl-carousel:not(.owl-drag) .owl-stage {
    -webkit-transition: -webkit-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -moz-transition: -moz-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -ms-transition: -ms-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -o-transition: -o-transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Ensure dots are positioned relative to owl-carousel container, not the moving stage */
.sessions-carousel .owl-carousel .owl-dots {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 15 !important;
    pointer-events: auto !important;
    /* Position relative to owl-carousel, not stage */
}

/* Stage-outer positioning is handled above with smooth animations */

/* General fix for all owl-carousels on calendar page */
.classes-container {
    position: relative;
    width: 100%;
}

.classes-container .owl-carousel {
    position: relative !important;
    min-height: 140px; /* Reduced height for more compact layout */
    padding-bottom: 0px; /* Reduced padding for dots */
    width: 100% !important;
    /* Prevent any transforms on this container */
    transform: none !important;
}

.classes-container .owl-carousel .owl-dots {
    position: absolute !important;
    bottom: 10px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;
    z-index: 15 !important;
    pointer-events: auto !important;
}

.classes-container .owl-stage-outer {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* ========================================================================
   MOBILE RESPONSIVE STYLES - 768px and below
   ======================================================================== */

@media (max-width: 768px) {
    
    /* Header Adjustments */
    .header-logo img {
        max-width: 120px !important;
    }
    
    .header-menu {
        display: none; /* Hidden by default on mobile, shown via hamburger menu */
    }
    
    .header-button .button-1 {
        font-size: 0.85rem;
        padding: 8px 12px;
    }
    
    .menu-toggle {
        display: block !important;
    }
    
    /* Calendar Section Spacing */
    #calendar_section {
        padding-top: 20px !important;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Live Sessions Carousel */
    #live-sessions {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    #live-sessions .text-left {
        padding-left: 0 !important;
    }
    
    #live-sessions h3 {
        font-size: 1.25rem;
        margin-left: 0 !important;
    }
    
    #live-sessions h6 {
        font-size: 0.9rem;
        padding-left: 0 !important;
    }
    
    .streams .item {
        margin: 0 !important;
    }
    
    .streams .card {
        margin: 8px !important;
    }
    
    /* Hide filters on mobile */
    .filters,
    .row[style*="margin-bottom:2rem"] {
        display: none !important;
    }
    
    /* Professor overrides calendar filters - Hide on mobile */
    .filters-section {
        display: none !important;
    }
    
    .filters-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        grid-template-columns: none !important;
    }
    
    .filter-group {
        width: 100%;
        gap: 6px !important;
    }
    
    .filter-label {
        font-size: 0.9rem !important;
        margin-bottom: 4px !important;
    }
    
    .filter-select {
        width: 100% !important;
        min-width: 100% !important;
        font-size: 0.9rem !important;
        padding: 10px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        height: auto !important;
        min-height: 44px !important;
    }
    
    /* Ensure native select elements are visible */
    select.filter-select,
    select.ef-select {
        display: block !important;
        visibility: visible !important;
        appearance: auto !important;
        -webkit-appearance: menulist !important;
        -moz-appearance: menulist !important;
    }
    
    /* Hide selectize custom elements on mobile - use native selects */
    .selectize-control,
    .selectize-input,
    .selectize-dropdown {
        display: none !important;
    }
    
    /* Ensure the original select is visible (selectize hides it) */
    .selectize-control select,
    .selectize-control + select {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: static !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
    }
    
    /* Filter Actions */
    .filters-actions {
        text-align: center !important;
        margin-top: 10px !important;
        margin-bottom: 15px !important;
    }
    
    #clear-filters-btn {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    /* Calendar Legend (Old Style) */
    .legend {
        margin-bottom: 20px;
        padding: 0 10px;
    }
    
    .legend .row {
        flex-direction: column;
    }
    
    .legend [class*='col-'] {
        margin-bottom: 10px;
    }
    
    /* Calendar Legend (New Container Style) */
    .legend-container {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
        padding: 15px !important;
    }
    
    .legend-item {
        width: 100%;
        font-size: 0.9rem !important;
    }
    
    /* Main Calendar */
    #calendar {
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }
    
    /* Calendar Toolbar */
    .fc-toolbar {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        padding: 10px 5px !important;
    }
    
    .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    
    .fc-toolbar-title {
        font-size: 1.1rem !important;
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Calendar Navigation Buttons */
    .fc-button {
        font-size: 0.75rem !important;
        padding: 6px 10px !important;
    }
    
    .fc-button-group {
        display: flex;
        gap: 2px;
    }
    
    .fc-prev-button,
    .fc-next-button {
        min-width: 40px;
    }
    
    /* View Switch Buttons - Make them fit */
    .fc-dayGridMonth-button,
    .fc-timeGridWeek-button,
    .fc-timeGridDay-button {
        font-size: 0.7rem !important;
        padding: 6px 8px !important;
        display: inline-block !important;
        visibility: visible !important;
        min-width: 40px !important;
    }
    
    /* Calendar Day Headers */
    .fc-col-header-cell {
        font-size: 0.75rem !important;
        padding: 4px 2px !important;
    }
    
    .fc-col-header-cell-cushion {
        padding: 4px 2px !important;
    }
    
    /* Time Grid Adjustments */
    .fc-timegrid-axis-cushion {
        font-size: 0.7rem !important;
        padding: 2px !important;
        min-width: 40px !important;
    }
    
    .fc-timegrid-slot-label {
        font-size: 0.7rem !important;
    }
    
    /* Event Styling for Mobile */
    .fc-event {
        font-size: 0.7rem !important;
        padding: 2px 3px !important;
    }
    
    .fc-event-time {
        font-size: 0.65rem !important;
    }
    
    .fc-event-title {
        font-size: 0.7rem !important;
        line-height: 1.2;
    }
    
    .fc-event-course {
        font-size: 0.6rem !important;
    }
    
    /* Day Grid (Month View) */
    .fc-daygrid-day-number {
        font-size: 0.85rem !important;
        padding: 4px !important;
    }
    
    .fc-daygrid-event {
        font-size: 0.7rem !important;
        padding: 1px 2px !important;
        margin-bottom: 1px !important;
    }
    
    /* Time Grid Columns - Make them narrower on mobile */
    .fc-timegrid-col {
        min-width: 70px !important;
    }
    
    .fc-timeGridWeek-view .fc-timegrid-col {
        min-width: 60px !important;
        width: auto !important;
    }
    
    /* Scrollable Container */
    .fc-scroller {
        max-height: 60vh !important;
    }
    
    /* Modal Adjustments for Mobile */
    .calendar-modal {
        width: 95% !important;
        max-width: 95% !important;
        margin: 10px auto !important;
        padding: 15px !important;
    }
    
    .calendar-modal .title {
        font-size: 1.1rem !important;
    }
    
    .calendar-modal .text {
        font-size: 0.9rem !important;
    }
    
    .calendar-modal .btn-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .calendar-modal .modal-btn {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .calendar-modal .dropup {
        width: 100%;
    }
    
    .calendar-modal .dropup .btn {
        width: 100%;
    }
    
    /* Session Modal */
    #session-data,
    #event-data {
        font-size: 0.9rem !important;
    }
    
    #session-btn {
        width: 100%;
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    /* Owl Carousel Dots */
    .owl-carousel .owl-dots {
        margin-top: 15px !important;
    }
    
    .owl-carousel .owl-dot {
        width: 8px !important;
        height: 8px !important;
    }
    
    /* Export/Add Event Buttons */
    #add-event,
    #export-calendar {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }
    
    /* Improve Touch Targets */
    .fc-button,
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Reduce Padding/Margins for Mobile */
    .container,
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    /* Hide Extra Padding on Mobile */
    .pt-4 {
        padding-top: 1rem !important;
    }
    
    .pb-5 {
        padding-bottom: 1.5rem !important;
    }
    
    .pl-5 {
        padding-left: 1rem !important;
    }
    
    /* List View Adjustments (if using list view) */
    .fc-list-event {
        font-size: 0.85rem !important;
    }
    
    .fc-list-event-time {
        font-size: 0.75rem !important;
    }
    
    .fc-list-event-title {
        font-size: 0.8rem !important;
    }
    
    /* Responsive Typography */
    h3 {
        font-size: 1.3rem !important;
    }
    
    h4 {
        font-size: 1.1rem !important;
    }
    
    h6 {
        font-size: 0.9rem !important;
    }
    
    /* Form Controls */
    .form-control {
        font-size: 0.9rem !important;
        padding: 8px 12px !important;
    }
    
    select.form-control {
        height: auto !important;
        min-height: 44px; /* Touch-friendly */
    }
}

/* ========================================================================
   EXTRA SMALL DEVICES - 480px and below (Phones in portrait)
   ======================================================================== */

@media (max-width: 480px) {
    
    /* Further reduce font sizes */
    .fc-toolbar-title {
        font-size: 1rem !important;
    }
    
    .fc-button {
        font-size: 0.65rem !important;
        padding: 5px 6px !important;
    }
    
    .fc-dayGridMonth-button,
    .fc-timeGridWeek-button,
    .fc-timeGridDay-button {
        font-size: 0.6rem !important;
        padding: 5px 4px !important;
        display: inline-block !important;
        visibility: visible !important;
        min-width: 32px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
    }
    
    /* Ensure button groups don't hide */
    .fc-button-group {
        display: flex !important;
        gap: 2px !important;
        flex-wrap: nowrap !important;
    }
    
    /* Prev/Next buttons on small screens */
    .fc-prev-button,
    .fc-next-button {
        min-width: 32px !important;
        padding: 5px 4px !important;
    }
    
    /* Stack filter labels and inputs */
    .filters label {
        display: block;
        width: 100%;
        margin-bottom: 3px;
    }
    
    /* Professor overrides filters - Extra small devices */
    .filters-section {
        padding: 12px 8px !important;
    }
    
    .filters-row {
        gap: 12px !important;
    }
    
    .filter-label {
        font-size: 0.85rem !important;
    }
    
    .filter-select {
        font-size: 0.85rem !important;
        padding: 8px !important;
        display: block !important;
        visibility: visible !important;
        min-height: 44px !important;
    }
    
    select.filter-select,
    select.ef-select {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Legend - Extra small devices */
    .legend-container {
        padding: 12px !important;
        gap: 10px !important;
    }
    
    .legend-item {
        font-size: 0.85rem !important;
    }
    
    /* Reduce calendar event text */
    .fc-event-title {
        font-size: 0.65rem !important;
    }
    
    .fc-event-time {
        font-size: 0.6rem !important;
    }
    
    /* Time column narrower */
    .fc-timegrid-axis-cushion {
        min-width: 35px !important;
        font-size: 0.65rem !important;
    }
    
    /* Day columns very narrow */
    .fc-timegrid-col {
        min-width: 50px !important;
    }
    
    .fc-timeGridWeek-view .fc-timegrid-col {
        min-width: 45px !important;
    }
    
    /* Header logo even smaller */
    .header-logo img {
        max-width: 100px !important;
    }
    
    /* Hide sign-in button text on very small screens */
    .header-button .button-1 {
        font-size: 0.75rem;
        padding: 6px 10px;
    }
}