/**
 * WP Future Calendar Styles - Material Design Version
 * Consolidated and cleaned up version with duplicate styles removed
 */

:root {
    /* Material Design Color Palette */
    --md-primary: #032e7d;
    --md-primary-dark: #3700b3;
    --md-primary-light: #bb86fc;
    --md-secondary: #03dac6;
    --md-secondary-dark: #018786;
    --md-error: #b00020;
    --md-background: #ffffff;
    --md-surface: #ffffff;
    --md-on-primary: #ffffff;
    --md-on-secondary: #000000;
    --md-on-background: #000000;
    --md-on-surface: #000000;
    --md-on-error: #ffffff;

    /* Elevation shadows - Material Design */
    --md-elevation-1: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    --md-elevation-2: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
    --md-elevation-3: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
    --md-elevation-4: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
    --md-elevation-6: 0 3px 5px -1px rgba(0,0,0,0.2), 0 6px 10px 0 rgba(0,0,0,0.14), 0 1px 18px 0 rgba(0,0,0,0.12);
    --md-elevation-8: 0 5px 5px -3px rgba(0,0,0,0.2), 0 8px 10px 1px rgba(0,0,0,0.14), 0 3px 14px 2px rgba(0,0,0,0.12);
    --md-elevation-12: 0 7px 8px -4px rgba(0,0,0,0.2), 0 12px 17px 2px rgba(0,0,0,0.14), 0 5px 22px 4px rgba(0,0,0,0.12);
    
    /* Typography */
    --md-font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    
    /* Spacing */
    --md-spacing-unit: 8px;
}

/* Google Fonts - Roboto for Material Design */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

/* Calendar Wrapper */
.wp-future-calendar-wrapper {
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Calendar Controls */
.calendar-controls {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start; /* Align to the left */
    align-items: center;
}

.calendar-filters {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--md-spacing-unit) * 2);
    width: 100%;
}

.calendar-filter {
    flex: 1;
    min-width: 160px;
}

/* Material Design Select Component */
.md-select-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: calc(var(--md-spacing-unit) * 2);
    font-family: var(--md-font-family);
}

.md-select-wrapper select {
    width: 100%;
    padding: calc(var(--md-spacing-unit) * 1.5) calc(var(--md-spacing-unit) * 2);
    padding-top: 20px;
    padding-bottom: 8px;
    background-color: var(--md-surface);
    border: 1px solid rgba(0, 0, 0, 0.23);
    border-radius: 4px;
    appearance: none;
    font-size: 16px;
    line-height: 1.4;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: var(--md-on-surface);
}

.md-select-wrapper select:focus {
    outline: none;
    border-color: var(--md-primary);
    box-shadow: 0 0 0 1px var(--md-primary);
}

.md-select-label {
    position: absolute;
    top: 20px;
    left: calc(var(--md-spacing-unit) * 2);
    transform: translateY(-50%);
    font-size: 12px;
    color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-select-wrapper.md-select-focused .md-select-label {
    color: var(--md-primary);
}

.md-select-arrow {
    position: absolute;
    right: calc(var(--md-spacing-unit) * 2);
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-select-wrapper.md-select-focused .md-select-arrow {
    border-top-color: var(--md-primary);
}

/* Search Input */
.calendar-search {
    position: relative;
    min-width: 200px;
    max-width: 300px;
    width: 100%;
    flex: 2;
}

.calendar-search-input {
    width: calc(100% - 40px);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.23);
    font-size: 16px;
    line-height: 1.4;
    transition: border-color 0.2s ease;
    background-color: var(--md-surface);
    padding-top: 20px;
    padding-bottom: 8px;
    box-shadow: none;
}

.calendar-search-input:focus {
    border-color: var(--md-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 105, 189, 0.2);
}

.calendar-search-button {
    position: absolute;
    right: 0;
    top: 51px;
    width: 40px;
    background: var(--md-primary);
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-search-button:hover {
    background: #3a5cbd;
    color: white !important;
}

/* Calendar Container */
.wp-future-calendar {
    background-color: var(--md-surface);
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar:hover {
    box-shadow: none;
}

/* FullCalendar Overrides */
.wp-future-calendar .fc-theme-standard .fc-list,
.wp-future-calendar .fc-theme-standard td,
.wp-future-calendar .fc-theme-standard th {
    border-color: rgba(0, 0, 0, 0.12);
}

.wp-future-calendar .fc-theme-standard .fc-list-day-cushion {
    background-color: #f5f5f5;
}

.wp-future-calendar .fc .fc-button-primary {
    background-color: var(--md-primary);
    border: none;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 16px;
    letter-spacing: 0.5px;
    box-shadow: var(--md-elevation-2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--md-font-family);
}

.wp-future-calendar .fc .fc-button-primary:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: currentColor;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar .fc .fc-button-primary:hover {
    background-color: var(--md-primary-dark);
    box-shadow: var(--md-elevation-4);
}

.wp-future-calendar .fc .fc-button-primary:hover:before {
    opacity: 0.08;
}

.wp-future-calendar .fc .fc-button-primary:active:before {
    opacity: 0.12;
}

.wp-future-calendar .fc .fc-button-primary:disabled {
    background-color: rgba(0, 0, 0, 0.12);
    color: rgba(0, 0, 0, 0.38);
    box-shadow: none;
}

.wp-future-calendar .fc .fc-button-primary:not(:disabled).fc-button-active,
.wp-future-calendar .fc .fc-button-primary:not(:disabled):active {
    background-color: var(--md-primary-dark);
    box-shadow: var(--md-elevation-6);
}

.wp-future-calendar .fc .fc-toolbar-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--md-on-surface);
    letter-spacing: 0.15px;
}

.wp-future-calendar .fc .fc-daygrid-day.fc-day-today {
    background-color: rgba(98, 0, 238, 0.06);
}

.wp-future-calendar .fc .fc-col-header-cell-cushion {
    color: rgba(0, 0, 0, 0.87);
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.wp-future-calendar .fc .fc-daygrid-day-number {
    color: rgba(0, 0, 0, 0.87);
    padding: 8px;
    font-size: 14px;
}

.wp-future-calendar .fc-listWeek-view .fc-list-event-title a,
.wp-future-calendar .fc-list-day-text,
.wp-future-calendar .fc-list-day-side-text {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

/* Loading state */
.wp-future-calendar.loading:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 5;
    border-radius: 8px;
}

.wp-future-calendar.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -20px 0 0 -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid rgba(98, 0, 238, 0.1);
    border-top-color: var(--md-primary);
    animation: spin 1s linear infinite;
    z-index: 6;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Event styling */
.wp-future-calendar .fc-event {
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: none;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar .fc-event:hover {
    box-shadow: none;
    background-color: rgba(98, 0, 238, 0.04);
}

.wp-future-calendar .fc-event .fc-event-title {
    font-size: 14px;
    font-weight: 500;
}

.wp-future-calendar .fc-event .fc-event-time {
    font-size: 12px;
    opacity: 0.7;
}

/* Tooltip Styling */
.fc-event-tooltip {
    display: flex;
    max-width: 350px;
    gap: 16px;
    padding: 16px;
    background-color: white;
    border-radius: 8px;
    box-shadow: var(--md-elevation-4);
}

.fc-event-tooltip-image {
    width: 80px;
    height: 80px;
    overflow: hidden;
    flex-shrink: 0;
    border-radius: 4px;
    box-shadow: var(--md-elevation-1);
}

.fc-event-tooltip-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-event-tooltip-content {
    flex-grow: 1;
}

.fc-event-tooltip-content h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.87);
    line-height: 1.3;
    font-weight: 500;
}

.fc-event-tooltip-content p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
}

.fc-event-tooltip-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.fc-event-tooltip .event-category {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background: rgba(98, 0, 238, 0.1);
    color: var(--md-primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

/* Enhanced List View Styling */
.fc-list-event-details {
    display: flex;
    gap: 16px;
    padding: 8px 0;
    width: 100%;
}

.fc-list-event-image {
    flex: 0 0 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--md-elevation-1);
}

.fc-list-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fc-list-event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fc-list-event-title-text {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
}

.fc-list-event-title-text a {
    color: var(--md-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-list-event-title-text a:hover {
    color: var(--md-primary-dark);
}

.fc-list-event-title-text a:after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--md-primary);
    transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.fc-list-event-title-text a:hover:after {
    width: 100%;
}

.fc-list-event-excerpt {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.5;
    margin-bottom: 8px;
}

.fc-list-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fc-list-event .event-category {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 16px;
    background: rgba(98, 0, 238, 0.1);
    color: var(--md-primary);
    font-size: 12px;
    line-height: 1;
    font-weight: 500;
}

/* Adjust list view cells to accommodate our custom content */
.wp-future-calendar .fc-list-table td {
    padding: 12px 16px;
    vertical-align: top;
}

.wp-future-calendar .fc-list-table tr {
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar .fc-list-table tr:hover {
    background-color: rgba(98, 0, 238, 0.04);
}

.wp-future-calendar .fc-list-event-time {
    width: 150px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* List view day headers */
.wp-future-calendar .fc-list-day {
    background-color: #f5f5f5;
}

.wp-future-calendar .fc-list-day-text,
.wp-future-calendar .fc-list-day-side-text {
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

/* Modal styling */
.wp-future-calendar-modal {
    background-color: var(--md-surface);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.wp-future-calendar-modal .fc-event-tooltip-standalone {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.wp-future-calendar-modal .fc-event-tooltip-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: var(--md-elevation-1);
}

.wp-future-calendar-modal .fc-event-tooltip-content h3 {
    font-size: 20px;
    margin-bottom: 16px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.87);
}

.wp-future-calendar-modal .fc-event-view-link {
    margin-top: 16px;
    text-align: right;
}

.wp-future-calendar-modal .fc-event-view-link a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--md-primary);
    color: white;
    text-decoration: none;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--md-elevation-2);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar-modal .fc-event-view-link a:hover {
    background: var(--md-primary-dark);
    box-shadow: var(--md-elevation-4);
}

.wp-future-calendar-modal-close {
    width: 36px;
    height: 36px;
    top: 8px !important;
    right: 8px !important;
    border-radius: 50%;
    transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.wp-future-calendar-modal-close:hover {
    background-color: rgba(0, 0, 0, 0.08) !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .wp-future-calendar .fc .fc-toolbar {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .calendar-filters {
        flex-direction: column;
        gap: 0;
    }
    
    .calendar-filter {
        width: 100%;
        margin-bottom: 8px;
    }

    .calendar-search {
        width: 100%;
        margin-bottom: 16px;
        flex: none;
    }
    
    .calendar-controls {
        justify-content: center;
        gap: 0;
    }
    
    .wp-future-calendar .fc .fc-toolbar-chunk:first-child,
    .wp-future-calendar .fc .fc-toolbar-chunk:last-child {
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .calendar-search {
        width: 100%;
        margin-bottom: 16px;
    }
    
    .calendar-controls {
        justify-content: center;
    }
    
    .fc-event-tooltip {
        flex-direction: column;
        gap: 12px;
    }
    
    .fc-event-tooltip-image {
        width: 100%;
        height: 130px;
    }
    
    .fc-list-event-details {
        flex-direction: column;
        gap: 12px;
    }
    
    .fc-list-event-image {
        flex: 0 0 120px;
        height: 120px;
        width: 100%;
    }
    
    .wp-future-calendar .fc-list-event-time {
        width: 100px;
    }
    
    .wp-future-calendar-modal {
        width: 95% !important;
    }

    .calendar-mobile-controls {
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .calendar-view-selector {
        width: 100%;
        max-width: 300px;
    }

    /* Responsive adjustments for card view */
    .fc-listWeek-view .fc-list-event {
        margin-left: 0;
        margin-right: 0;
        border-radius: 6px;
    }
    
    /* Smaller images on mobile */
    .fc-listWeek-view .fc-list-event-image {
        height: 120px;
    }
    
    /* Adjust day headers */
    .fc-listWeek-view .fc-list-day-text {
        font-size: 16px;
    }
    
    /* Adjust event title size */
    .fc-listWeek-view .fc-list-event-title-text {
        font-size: 16px;
    }
    
    /* Adjust spacing */
    .fc-listWeek-view .fc-list-event-time:not(:empty),
    .fc-listWeek-view .fc-list-event-content {
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .wp-future-calendar .fc .fc-button {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .wp-future-calendar .fc .fc-toolbar-title {
        font-size: 18px;
    }
    
    .wp-future-calendar .fc-list-table {
        display: block;
    }
    
    .wp-future-calendar .fc-list-table tbody,
    .wp-future-calendar .fc-list-table tr {
        display: block;
        width: 100%;
    }
    
    .wp-future-calendar .fc-list-table td {
        display: block;
        width: 100%;
        text-align: left;
        padding: 8px 12px;
    }
    
    .wp-future-calendar .fc-list-event-dot {
        display: none;
    }
    
    .wp-future-calendar .fc-list-event-time {
        width: 100%;
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .fc-list-event-details {
        padding-top: 0;
    }
    
    .wp-future-calendar-modal .fc-event-tooltip-image {
        height: 150px;
    }
}

.fc-theme-standard .fc-list{
    border:unset!important;
}
.fc .fc-list-event-dot {
    display: none!important;
}
/* Tooltip Overrides */
.tooltip.show {
    opacity: 1;
}

.tooltip > .tooltip-inner {
    max-width: 350px;
    background-color: white !important;
    color: #333;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 0;
    opacity: 1;
    border-radius: 10px;
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: white;
}

/* Popover styling */
.fc-popover {
    background-color: white;
    box-shadow: var(--md-elevation-4);
    border-radius: 8px;
    border: none;
}

.fc-popover-header {
    background-color: #f5f5f5;
    padding: 12px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-weight: 500;
}

.fc-event-tooltip-standalone {
    padding: 16px;
    background-color: white;
}

/* Additional Material Design styles for enhanced features */

/* Floating label for search input */
.md-input-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.6);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    font-size: 16px;
}

.md-input-label.md-input-focused {
    top: 6px;
    left: 12px;
    font-size: 12px;
    color: var(--md-primary);
}

/* Styling for the search with floating label */

/* Material View transitions */
.md-view-transition {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.md-view-changing {
    opacity: 0.5;
}

/* Material Design table headers */
.md-table-header {
    background-color: #fafafa;
}

.md-list-header {
    background-color: #f5f5f5 !important;
    padding: 12px 16px !important;
    border-radius: 4px;
}

/* Special Icon Button styling */
.md-icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

/* Pulsing effect for the "Today" button */
@keyframes md-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(98, 0, 238, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(98, 0, 238, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(98, 0, 238, 0);
    }
}

.fc-today-button:not(:disabled) {
    animation: md-pulse 2s infinite;
}

/* Enhanced focus states for accessibility */
.fc button:focus,
.calendar-search-input:focus,
.fc-event:focus {
    outline: none;
    box-shadow: unset!important;
}

/* Material Design styled scrollbars (for compatible browsers) */
.wp-future-calendar ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.wp-future-calendar ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.wp-future-calendar ::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.wp-future-calendar ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.3);
}

/* Style for month/week view event images */
.fc-daygrid-event .event-image-wrapper {
    width: 100%;
    height: 20px;
    overflow: hidden;
    margin-bottom: 2px;
    border-radius: 3px 3px 0 0;
}

.fc-daygrid-event .event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* For events with image - adjust padding */
.fc-daygrid-event.has-image .fc-event-title,
.fc-daygrid-event.has-image .fc-event-time {
    padding: 0 2px 2px;
}

/* Keep the image visible in month view when the event is too small */
.fc-daygrid-dot-event.has-image .fc-daygrid-event-dot {
    display: none;
}

.fc-daygrid-dot-event.has-image .event-image-wrapper {
    display: inline-block;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-right: 3px;
    border-radius: 50%;
}

/* Add this new section for week view event styling */

/* Week view event thumbnail */
.fc-timegrid-event .event-thumbnail {
    width: 100%;
    max-height: 30px;
    object-fit: cover;
    border-radius: 3px 3px 0 0;
    margin-bottom: 2px;
}

/* Prevent text overflow in week view */
.fc-timegrid-event .fc-event-title {
    font-size: 12px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.fc-timegrid-event .event-short-details {
    font-size: 10px;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* Make week view events more compact */
.fc-timegrid-event {
    padding: 1px !important;
}

.fc-timegrid-event .fc-event-main {
    padding: 1px 2px !important;
}

/* Improve week view event container */
.fc-timegrid-event-harness {
    margin-right: 1px; /* Prevent events from touching column edges */
}

/* Fix overflow issues with the title and excerpts */
.fc-event-custom-content {
    width: 100%;
    overflow: hidden;
}

/* Better spacing in timegrid events */
.fc-direction-ltr .fc-timegrid-col-events {
    margin: 0 2px 0 2px;
}

/* Improve multi-day events in week view */
.fc-v-event.multi-day .fc-event-main {
    padding-top: 1px !important;
}

/* Fix time display in week view */
.fc-timegrid-event .fc-event-time {
    font-size: 10px;
    font-weight: 600;
    opacity: 0.8;
    margin-right: 0;
    padding-right: 2px;
    white-space: nowrap;
}

/* Add these styles to enhance week view without relying on js measurements */

/* Better safe default styling for week view events */
.fc-timegrid-event {
    min-height: 25px;
    overflow: hidden !important;
}

/* Extra small events */
.fc-timegrid-event[data-event-height="0"],
.fc-timegrid-event[data-event-height="1"],
.fc-timegrid-event[data-event-height="2"],
.fc-timegrid-event[data-event-height="3"],
.fc-timegrid-event[data-event-height="4"],
.fc-timegrid-event[data-event-height="5"],
.fc-timegrid-event.fc-event-mirror {
    padding: 0 !important;
}

.fc-timegrid-event[data-event-height="0"] .event-thumbnail,
.fc-timegrid-event[data-event-height="1"] .event-thumbnail,
.fc-timegrid-event[data-event-height="2"] .event-thumbnail,
.fc-timegrid-event[data-event-height="3"] .event-thumbnail,
.fc-timegrid-event[data-event-height="4"] .event-thumbnail,
.fc-timegrid-event[data-event-height="5"] .event-thumbnail,
.fc-timegrid-event.fc-event-mirror .event-thumbnail,
.fc-timegrid-event.event-tiny .event-thumbnail {
    display: none !important;
}

.fc-timegrid-event[data-event-height="0"] .event-short-details,
.fc-timegrid-event[data-event-height="1"] .event-short-details,
.fc-timegrid-event[data-event-height="2"] .event-short-details,
.fc-timegrid-event[data-event-height="3"] .event-short-details,
.fc-timegrid-event[data-event-height="4"] .event-short-details,
.fc-timegrid-event[data-event-height="5"] .event-short-details,
.fc-timegrid-event.fc-event-mirror .event-short-details,
.fc-timegrid-event.event-tiny .event-short-details {
    display: none !important;
}

.fc-timegrid-event[data-event-height="0"] .fc-event-title,
.fc-timegrid-event[data-event-height="1"] .fc-event-title,
.fc-timegrid-event[data-event-height="2"] .fc-event-title,
.fc-timegrid-event[data-event-height="3"] .fc-event-title,
.fc-timegrid-event[data-event-height="4"] .fc-event-title,
.fc-timegrid-event[data-event-height="5"] .fc-event-title,
.fc-timegrid-event.fc-event-mirror .fc-event-title,
.fc-timegrid-event.event-tiny .fc-event-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* For all timegrid events, ensure content doesn't overflow */
.fc-event-custom-content {
    overflow: hidden !important;
}

/* Add safe fallback spacing - sometimes FullCalendar creates events without proper height */
.fc-timegrid-event-harness {
    min-height: 25px;
}

/* Style adjustments for week view based on container width */
@media (max-width: 1024px) {
    .fc-timegrid-event .event-thumbnail {
        max-height: 20px !important;
    }
    
    .fc-timegrid-event .fc-event-title {
        font-size: 11px !important;
    }
    
    .fc-timegrid-event .event-short-details {
        font-size: 9px !important;
    }
}

@media (max-width: 768px) {
    .fc-timegrid-slots table {
        min-width: 500px !important;  /* Ensure minimum width for time columns */
    }
}

/* Add specific styles for day and week view thumbnails */

/* Common styles for event thumbnails */
.event-thumbnail {
    width: 100%;
    object-fit: cover;
    margin-bottom: 2px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    display: block;
}

/* Month view thumbnails */
.month-view-thumbnail {
    max-height: 30px;
}

/* Week view thumbnails - adjust based on container */
.week-view-thumbnail {
    max-height: 30px;
}

/* Day view thumbnails - can be larger */
.day-view-thumbnail {
    max-height: 60px;
}

/* Specific sizes for different event heights */
.event-tiny .event-thumbnail {
    display: none !important;
}

.event-small .event-thumbnail {
    max-height: 20px !important;
    margin-bottom: 1px;
}

.event-normal .event-thumbnail {
    max-height: 40px;
}

/* Day view specific styles - events are usually taller */
.fc-timeGridDay-view .event-thumbnail {
    max-height: 60px;
}

.fc-timeGridDay-view .event-small .event-thumbnail {
    max-height: 30px !important;
}

/* For all timegrid events, ensure content layout is proper with image */
.fc-timegrid-event .fc-event-custom-content {
    display: flex;
    flex-direction: column;
}

/* Add space after image */
.fc-timegrid-event .event-thumbnail + .fc-event-title,
.fc-timegrid-event .event-thumbnail + .fc-event-time {
    margin-top: 2px;
}

/* Improve image container sizing */
.fc-timegrid-event.fc-event-mirror .event-thumbnail {
    display: none !important;
}

/* Add image styles for multi-day events */
.fc-v-event.multi-day .event-thumbnail {
    max-height: 0;
    transition: max-height 0.2s;
}

.fc-v-event.multi-day:hover .event-thumbnail {
    max-height: 30px;
}

/* Make sure event content doesn't overflow with image */
.fc-timegrid-event {
    overflow: hidden !important;
}

/* Responsiveness for event images */
@media (max-width: 768px) {
    .event-thumbnail {
        max-height: 25px !important; /* Smaller on mobile */
    }
    
    .day-view-thumbnail {
        max-height: 40px !important; /* Still relatively large for day view */
    }
}

/* Add these styles to handle the toolbar title visibility */
.fc-hidden {
    display: none !important;
}

/* Adjust the header toolbar to properly handle the hidden title */
.fc-header-toolbar.fc-toolbar {
    transition: padding 0.3s ease;
}

.fc-header-toolbar.fc-toolbar .fc-toolbar-chunk:empty {
    display: none;
}

/* Make sure the toolbar still looks good when the title is hidden */
.fc-listWeek-view .fc-header-toolbar.fc-toolbar {
    justify-content: space-between !important;
}

/* Hide toolbar title in list view only */
.fc .fc-listWeek-view .fc-toolbar-title {
    display: none !important;
}

/* Explicitly ensure title is visible in other views */
.fc .fc-dayGridMonth-view .fc-toolbar-title,
.fc .fc-dayGridWeek-view .fc-toolbar-title,
.fc .fc-dayGridDay-view .fc-toolbar-title {
    display: block !important;
}

/* Hide default title styling when title is hidden */
.fc-hidden:after {
    display: none !important;
}

/* New Card-Style List View */

/* 1. Remove default table styling for list view */
.fc-listWeek-view .fc-list-table {
    border: none;
    background: transparent;
    display: block; /* Make the table behave more like a div container */
    width: 100%;
}

.fc-listWeek-view .fc-list-table tbody {
    display: block;
    width: 100%;
}

.fc-listWeek-view .fc-list-table tr {
    display: block; 
    margin-bottom: 16px;
    background-color: transparent !important;
}

.fc-listWeek-view .fc-list-table td {
    display: block;
    border: none;
}

/* 2. Style each event as a card */
.fc-listWeek-view .fc-list-event {
    margin-bottom: 16px;
    border-radius: 8px;
    background-color: white;
    box-shadow: var(--md-elevation-2);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid #032e7d; /* Default accent color */
    display: block;
    position: relative;
}

/* 4. Adjust cell padding and layout */
.fc-listWeek-view .fc-list-event-time {
    display: inline-block;
    color: #555;
    font-weight: 500;
    font-size: 13px;
    padding: 6px 12px !important;
    margin: 12px 16px 0 16px;
    border-radius: 16px;
    background-color: rgba(3, 46, 125, 0.08);
    color: var(--md-primary);
}

.fc-listWeek-view .fc-list-event-title {
    padding: 4px 16px 16px 16px !important;
}

/* 5. Improve image layout within cards */
.fc-listWeek-view .fc-list-event-image {
    height: 160px;
    border-radius: 0;
    margin: 0;
    width: 100%;
    flex: none;
    box-shadow: none;
    overflow: hidden;
}

.fc-listWeek-view .fc-list-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius:10px;
}


.fc-listWeek-view .fc-list-event-details {
    flex-direction: column;
    gap: 0;
    padding: 0;
    width: 100%;
}

/* 6. Improve content spacing */
.fc-listWeek-view .fc-list-event-content {
    padding: 12px 16px 16px 16px;
}

/* 8. Style the event day headers */
.fc-listWeek-view .fc-list-day {
    margin: 24px 0 16px 0;
    background: transparent;
    border: none;
}

.fc-listWeek-view .fc-list-day > td {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.fc-listWeek-view .fc-list-day-cushion {
    background-color: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.fc-listWeek-view .fc-list-day-text {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    position: relative;
    display: inline-block;
    padding-bottom: 8px;
}

.fc-listWeek-view .fc-list-day-text:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--md-primary);
    border-radius: 1.5px;
}

.fc-listWeek-view .fc-list-day-side-text {
    display: none; /* Hide redundant text */
}

/* 10. Style event title text */
.fc-listWeek-view .fc-list-event-title-text {
    font-size: 18px;
    margin: 8px 0;
}

.fc-listWeek-view .fc-list-event-title-text a {
    color: #333;
    font-weight: 600;
    text-decoration: none;
}

/* 11. Style event excerpt */
.fc-listWeek-view .fc-list-event-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 14px;
}

/* Add venue and shift styling */
.fc-listWeek-view .fc-list-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.fc-listWeek-view .fc-list-event-venue,
.fc-listWeek-view .fc-list-event-shift {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.fc-listWeek-view .fc-list-event-venue::before {
    content: "📍";
    font-size: 12px;
}

.fc-listWeek-view .fc-list-event-shift::before {
    content: "🕒";
    font-size: 12px;
}

/* 7. Style category and tag chips */
.fc-listWeek-view .fc-list-event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.fc-listWeek-view .event-category {
    background-color: rgba(98, 0, 238, 0.08);
    color: var(--md-primary);
    border-radius: 16px;
    padding: 4px 12px;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

/* 12. Remove dot marker */
.fc-listWeek-view .fc-list-event-dot {
    display: none;
}

/* 13. Handle empty list view gracefully */
.fc-listWeek-view .fc-list-empty {
    background-color: white;
    padding: 40px 20px;
    text-align: center;
    border-radius: 8px;
    box-shadow: var(--md-elevation-1);
    margin: 20px auto;
    max-width: 500px;
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.fc-listWeek-view .fc-list-empty::before {
    content: "📅";
    display: block;
    font-size: 40px;
    margin-bottom: 16px;
}

/* No events message */
.fc-list-empty-text {
    margin: 0;
}

/* Make sure event rows don't have overflow issues */
.fc-list-event-harness {
    margin: 0 !important;
}

.fc-list-day th {
    border: unset!important;
}

td.fc-list-event-time {
    width: 90px !important;
    padding-left: 10px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fc-listWeek-view .fc-list-event-image {
        height: 130px;
    }
    
    .fc-listWeek-view .fc-list-day-text {
        font-size: 18px;
    }
    
    .fc-listWeek-view .fc-list-event-title-text {
        font-size: 16px;
    }
    
    .fc-listWeek-view .fc-list-event-time {
        font-size: 12px;
        margin: 10px 14px 0 14px;
    }
    
    .fc-listWeek-view .fc-list-event-content {
        padding: 8px 14px 14px 14px;
    }
    
    .fc-listWeek-view .fc-list-event-excerpt {
        font-size: 13px;
    }
}
 /* Estilos mejorados para los eventos del calendario */
 .fc-daygrid-event, .fc-timegrid-event {
    border-radius: 4px;
    padding: 2px 4px !important;
    margin: 1px 0 !important;
}

.fc-daygrid-event .fc-event-main, .fc-timegrid-event .fc-event-main {
    padding: 2px 4px;
}

.fc-daygrid-event .fc-event-title, .fc-timegrid-event .fc-event-title {
    font-weight: bold;
    white-space: normal;
    overflow: hidden;
    line-height: 1.3;
}

.fc-daygrid-event .fc-event-time, .fc-timegrid-event .fc-event-time {
    font-weight: bold;
    margin-right: 3px;
}

.fc-daygrid-event .event-short-details, .fc-timegrid-event .event-short-details {
    margin-top: 2px;
    font-size: 0.85em;
    opacity: 0.9;
}

/* Add colored dot for event categories */
.event-category-indicator {
    display: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
    vertical-align: middle;
}

/* Improved week and day view events */
.fc-timegrid-event {
    min-height: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Hover effects */
.fc-daygrid-event:hover, .fc-timegrid-event:hover {
    filter: brightness(1.1);
    z-index: 10 !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* More link styling */
.fc-daygrid-more-link {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 1px 6px;
    font-size: 0.85em;
}

/* Tooltip enhancement */
.fc-event-tooltip-standalone {
    padding: 15px;
}

/* Event thumbnail in grid views */
.event-thumbnail {
    width: 100%;
    max-height: 100px;
    object-fit: cover;
    border-radius: 3px;
    margin-bottom: 2px;
}

/* Multi-day event styling */
.fc-event.multi-day {
    border-radius: 3px;
}

/* Enhanced Calendar Title Styling */
.fc .fc-toolbar-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
    position: relative;
    padding: 5px 15px;
    margin: 0;
}

/* Add subtle border highlight under title */
.fc .fc-toolbar-title:after {
    content: '';
    display: block;
    width: 40%;
    height: 3px;
    background: linear-gradient(90deg, #4a69bd, rgba(74, 105, 189, 0.2));
    border-radius: 2px;
    margin: 5px auto 0;
}

/* Calendar search bar positioning */
.calendar-controls {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-start; /* Align to the left */
    align-items: center;
}

.calendar-search {
    position: relative;
    max-width: 300px;
    width: 100%;
}

.calendar-search-input {
    width: calc(100% - 40px);
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.calendar-search-input:focus {
    border-color: #4a69bd;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 105, 189, 0.2);
}

.calendar-search-button {
    position: absolute;
    right: 0;
    top: 51px;
    width: 40px;
    background: #032e7d;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.calendar-search-button:hover {
    background: #032e7d;
    color:white!important;
}

/* Improved header toolbar styling */
.fc .fc-toolbar.fc-header-toolbar {
    margin-bottom: 1.5em;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Enhance button styles */
.fc .fc-button-primary {
    background-color: #032e7d!important;
    border-color: #032e7d!important;
}

.fc .fc-button-primary:not(:disabled):hover {
    background-color: #3a5cbd!important;
    border-color: #032e7d!important;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #304da3!important;
    border-color: #263c89!important;
}

/* Custom styling for mobile view selector */
.calendar-view-selector {
    appearance: none;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6"><path d="M0 0l6 6 6-6z" fill="%23333"/></svg>') no-repeat right 10px center;
    background-size: 10px;
    padding-right: 30px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.2s ease;
}

.calendar-view-selector:focus {
    border-color: #4a69bd;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 105, 189, 0.2);
}

/* Responsive calendar header styles */
@media screen and (max-width: 768px) {
    .fc .fc-toolbar {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .fc .fc-toolbar.fc-header-toolbar {
        margin-bottom: 8px;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.2em;
    }
    
    .fc .fc-toolbar-title:after {
        width: 50%;
    }
    
    .fc .fc-button {
        padding: 0.3em 0.4em;
        font-size: 0.85em;
    }
    
    .calendar-mobile-controls {
        margin: 10px 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .calendar-view-selector {
        width: 100%;
        max-width: 200px;
        padding: 8px;
    }

    /* Make buttons more touch-friendly */
    .fc .fc-button {
        min-height: 36px;
        min-width: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Special layout for month view on mobile */
    .fc .fc-daygrid-day-top {
        justify-content: center;
    }
    
    .fc .fc-daygrid-day-number {
        padding: 2px;
    }
    
    /* Calendar search moves to top in mobile */
    .calendar-controls {
        justify-content: center;
    }
    
    .calendar-search {
        max-width: none;
        width: 100%;
    }
}

@media screen and (max-width: 480px) {
    .fc .fc-toolbar-title {
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
    }
    
    /* Compact day header in month view */
    .fc .fc-col-header-cell-cushion {
        padding: 4px 2px;
        font-size: 0.9em;
    }
    
    /* Ensure event content is readable on tiny screens */
    .fc-event-custom-content {
        font-size: 0.9em;
    }
}

/* Additional responsive styling for the search area */
@media screen and (max-width: 768px) {
    .calendar-controls {
        padding: 8px 0;
    }
    
    .calendar-search {
        width: 100%;
        max-width: none;
    }
    
    .calendar-search-input {
        width: calc(100% - 40px);
    }
}

/* Hide toolbar title in list view */
.fc-listWeek-view .fc-toolbar-title {
    display: none !important;
}

/* Update list view card layout to place image on the left for desktop */
.fc-listWeek-view .fc-list-event-details {
    flex-direction: row; /* Change to row for side-by-side layout on desktop */
    gap: 16px;
    padding: 0;
    width: 100%;
    align-items: flex-start;
}

/* Adjust image container size for desktop */
.fc-listWeek-view .fc-list-event-image {
    height: 160px;
    width: 220px; /* Fixed width to prevent stretching */
    flex: 0 0 auto; /* Don't allow image to grow or shrink */
    border-radius: 8px;
    margin: 16px 0 16px 16px; /* Add margins to position nicely */
    box-shadow: var(--md-elevation-1);
    overflow: hidden;
}

/* Content container should take up remaining space */
.fc-listWeek-view .fc-list-event-content {
    flex: 1;
    padding: 16px 16px 16px 0; /* Adjust padding for side-by-side layout */
}

/* Fix for duplicate title on mobile - hide the original title that FullCalendar creates */
.fc-listWeek-view .fc-list-event-title > a {
    display: none;
}

/* Make sure responsive styling still works */
@media (max-width: 768px) {
    .fc-listWeek-view .fc-list-event-details {
        flex-direction: column; /* Revert to column on mobile */
        gap: 0;
    }
    
    .fc-listWeek-view .fc-list-event-image {
        width: 100%; /* Full width on mobile */
        height: 130px;
        margin: 0; /* Reset margins for mobile */
        border-radius: 0;
    }
    
    .fc-listWeek-view .fc-list-event-content {
        padding: 12px 16px 16px 16px; /* Restore original padding */
    }
    
    /* Time tag adjustments for mobile */
    .fc-listWeek-view .fc-list-event-time {
        margin: 12px 16px 0 16px;
    }
}

/* For very small screens, reduce image height further */
@media (max-width: 480px) {
    .fc-listWeek-view .fc-list-event-image {
        height: 120px;
    }
}

/**
 * Exams Widget Styles - Clean & Modern Version
 */
.wp-future-calendar-exams-wrapper {
    font-family: var(--md-font-family);
    margin-bottom: calc(var(--md-spacing-unit) * 3);
}

.wp-future-calendar-exams-wrapper.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Exams List */
.exams-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--md-spacing-unit) * 2);
}

.exam-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    padding: 0 10px 10px 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.exam-item:hover {
    transform: none;
    box-shadow: none;
    border-bottom-color: #bdbdbd;
}

.exam-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--md-spacing-unit) * 2);
}

.exam-left {
    width: 100%;
    min-width: 0;
}

.exam-title {
    font-size: 15px; /* Exact 15px as requested */
    font-weight: 400; /* Normal weight, no bold */
    color: var(--md-on-surface);
    line-height: 1.3;
    word-wrap: break-word;
    width: 100%;
}

.exam-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: calc(var(--md-spacing-unit) * 3);
}

.exam-date {
    display: flex;
    align-items: center;
    gap: calc(var(--md-spacing-unit) * 1);
    color: rgba(0, 0, 0, 0.65);
    font-size: 13px; /* Exact 13px as requested */
    font-weight: 500;
    letter-spacing: 0.1px;
    margin: 0;
}

.exam-date i {
    color: var(--md-primary);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

/* Countdown Timer - Minimal style */
.exam-countdown { 
    flex-shrink: 0;
}

.countdown-timer {
    display: flex;
    gap: 16px; /* Reduced from 22px */
    align-items: flex-end;
    background: transparent;
    padding: 2px 0;
}

.countdown-item {
    position: relative;
    text-align: center;
    min-width: 45px; /* Reduced from 60px */
}

.countdown-number {
    display: block;
    font-size: 1.8rem; /* Reduced from 2.55rem */
    font-weight: 600;
    line-height: 1;
    color: var(--md-primary);
    letter-spacing: -0.5px;
}

.countdown-label {
    display: block;
    margin-top: 4px;
    font-size: 0.65rem; /* Reduced from 0.80rem */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(0,0,0,0.55);
}

/* Vertical separator using pseudo-element */
.countdown-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 8%;
    right: -8px; /* Adjusted for smaller gaps */
    width: 1px;
    height: 84%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05), rgba(0,0,0,0.25), rgba(0,0,0,0.05));
    border-radius: 1px;
}

/* Subtle hover pulse */
.countdown-item:hover .countdown-number { color: var(--md-primary-dark); }

/* Expired state */
.exam-countdown.expired .countdown-number { color: var(--md-error); }

/* Color states based on days remaining */
.exam-countdown.urgent .countdown-number { 
    color: #d32f2f; /* Red for less than 3 days */
}

.exam-countdown.warning .countdown-number { 
    color: #f57c00; /* Orange/Yellow for less than 7 days */
}

/* Default state (7+ days) - keep original blue color */
.exam-countdown .countdown-number { 
    color: var(--md-primary);
}

.exam-countdown.expired .countdown-label { color: rgba(176,0,32,0.75); }
.expired-message { color: var(--md-error); font-weight: 600; font-size: 0.95rem; }

/* Exams Pagination Styles - Exact match to user's image */
.exams-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    gap: calc(var(--md-spacing-unit) * 1);
}

.pagination-numbers {
    display: flex;
    align-items: center;
    gap: 6px; /* Smaller gap between numbers like in the image */
}

.exam-pagination-btn {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    border-radius: 9999px;
    background-color: #f1f1f1;
    color: #032e7d;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    font-size: 15px;
}

.exam-pagination-btn:hover {
    background-color: #e1e1e1; /* Slightly darker gray on hover for non-active */
    color: #032e7d;
    transform: none;
    box-shadow: none;
}

.exam-pagination-btn.active {
    background-color: #032e7d; /* Blue background for active */
    color: #fff; /* White text for active */
    box-shadow: 0 2px 4px rgba(3, 46, 125, 0.3);
}

.exam-pagination-btn.active:hover {
    background-color: rgba(3, 46, 125, 0.9); /* Slightly transparent blue on hover */
    color: #fff;
}

.exam-pagination-btn:active {
    transform: scale(0.95);
    box-shadow: none;
}

.exam-pagination-btn:disabled {
    background-color: #f1f1f1;
    color: rgba(3, 46, 125, 0.4); /* Faded blue text */
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.pagination-prev,
.pagination-next {
    background-color: #f1f1f1; /* Same as non-active pages */
    color: #032e7d;
    border: none;
}

.pagination-prev:hover,
.pagination-next:hover {
    background-color: #e1e1e1; /* Same hover as non-active pages */
    color: #032e7d;
}

.pagination-dots {
    color: #032e7d;
    font-weight: bold;
    padding: 0 8px;
    font-size: 14px;
}

.pagination-info {
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 500;
}

/* Loading state for pagination */
.wp-future-calendar-exams-wrapper.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wp-future-calendar-exams-wrapper.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--md-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

/* No Exams Message */
.no-exams-message {
    text-align: center;
    padding: calc(var(--md-spacing-unit) * 6) calc(var(--md-spacing-unit) * 3);
    color: rgba(0, 0, 0, 0.5);
    background: var(--md-surface);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.no-exams-message i {
    font-size: 2.5rem;
    color: var(--md-primary);
    margin-bottom: calc(var(--md-spacing-unit) * 2);
    display: block;
    opacity: 0.6;
}

.no-exams-message p {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}
