/* ========================================= */
/* CALENDAR - iPhone-Style Modernization    */
/* ========================================= */

#calendar-title {
    display: grid;
    grid-template-rows: 1fr 1fr;
}

#event-line {
    grid-row: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    align-items: center;
}

.last-date-button {
    grid-column: 1;
}

.current-date-button {
    grid-column: 2;
}

#calendar-page {
    font-size: var(--font-size-l);
}

#calendar {
    width: 100%;
    height: 100%;
    padding: 8px;
}

#calendar-content {
    padding-top: var(--page-header-height);
    bottom: 0;
    width: 100%;
    max-width: var(--app-max-width);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    padding-right: 10px;
    padding-left: 10px;
    background: var(--theme-header-bg);
}

#datePickerModal {
    border-radius: var(--border-radius);
    width: 300px;
    text-align: center;
    background-color: #fff;
}

#datePickerModal button {
    background-color: var(--user-button-color);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: var(--border-radius);
    cursor: pointer;
}

/* Calendar Entry - iPhone Style */
.calendar-entry {
    display: grid;
    grid-template-rows: 25px auto auto auto;
    grid-template-columns: 1fr 0.15fr;
    align-items: center;
}

.calendar-entry-title {
    grid-row: 1;
    grid-column: 1;
    align-self: start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-weight: 500;
}

.calendar-entry-location {
    grid-row: 2;
    grid-column: 1;
    color: var(--theme-header-text);
}

.calendar-entry-description {
    grid-row: 4;
    grid-column: 1/-1;
    overflow: hidden;
    white-space: nowrap;
    min-width: 0;
    color: var(--theme-header-text);
}

.calendar-entry-description .error {
    background-color: #fee;
    color: #c33;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--font-size-s);
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.calendar-entry-details {
    grid-row: 3;
    grid-column: 1;
    font-size: var(--font-size-s);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    color: var(--theme-header-text);
}

/* Actions wrapper - contains modify/delete buttons and checkbox */
.calendar-entry-actions {
    grid-row: 1;
    /* Span all rows */
    grid-column: 2;
    /* Column 2 */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Right-align content */
    gap: 8px;
    /* Space between items */
    padding: 0 8px;
}

.calendar-entry-modify-button,
.event-modify-button,
.bulk-event-toggle-button {
    font-size: var(--font-size-admin-button);
    color: var(--admin-button-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
}

/* Delete button - appears in month view */
.calendar-entry-delete-button {
    font-size: 18px;
    color: var(--admin-button-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    min-width: 32px;
    min-height: 32px;
}

/* Checkbox inside actions wrapper */
.bulk-event-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Archived events styling - muted appearance */
.fc-event[style*="background-color: rgb(153, 153, 153)"] .calendar-entry-title,
.fc-event[style*="background-color: rgb(153, 153, 153)"] .calendar-entry-location,
.fc-event[style*="background-color: rgb(153, 153, 153)"] .calendar-entry-description,
.fc-event[style*="background-color: rgb(153, 153, 153)"] .calendar-entry-details {
    opacity: 0.7;
    font-style: italic;
}

/* Archived label styling */
.archived-label {
    font-weight: bold;
    color: #d32f2f;
    margin-left: 8px;
}

/* Ensure toolbar doesn't break layout */
#calendar {
    max-width: var(--app-max-width);
    min-height: 80vh;
    padding-top: calc(var(--title-bar-height) + var(--cal-header-height));
}

/* Add extra padding when filter panel is visible */
#calendar.filter-visible {
    padding-top: calc(var(--title-bar-height) + var(--cal-header-height) + 125px);
}

/* Constrain calendar view content to max-width */
.fc .fc-view-harness {
    max-width: var(--app-max-width);
}

.event-header {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.event-row {
    display: flex;
    justify-content: space-between;
    padding: 0.1rem;
    border-bottom: 1px solid var(--theme-row-border);
}

.event-title {
    font-weight: bold;
}

.event-date {
    color: var(--theme-header-text);
}

.event-row:nth-child(odd) {
    background-color: var(--theme-card-bg);
}

.event-row:nth-child(even) {
    background-color: var(--theme-header-bg);
}

.events-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.event-movement {
    font-size: var(--font-size-s);
}

#previous-events,
#current-events,
#future-events {
    display: flex;
    flex-direction: column;
}

#previous-events h2,
#current-events h2,
#future-events h2 {
    text-align: center;
    font-size: var(--font-size-s);
    color: #333;
}

#timeInput {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    margin-top: 10px;
    color: black;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Placeholder styling for all browsers */
#dateInput::placeholder {
    color: black;
    /* Ensures placeholder text is black */
    opacity: 1;
    /* Makes the placeholder fully opaque */
}

/* Safari-specific placeholder fix */
#dateInput::-webkit-input-placeholder {
    color: black;
    opacity: 1;
}

/* Text color on focus */
#dateInput:focus {
    color: black;
}

/* Ensures consistency for older iOS devices */
#dateInput::-webkit-datetime-edit {
    color: black;
}

.profile-line {
    display: flex;
    gap: 6px;
    align-items: center;
    width: 100%;
    background-color: var(--theme-card-bg);
    border-radius: 12px;
    box-shadow: 0 1px 3px var(--theme-card-shadow);
    margin-bottom: 8px;
    border: 1px solid var(--theme-card-border);
}

/* ========================================= */
/* FullCalendar Toolbar - iPhone Style      */
/* ========================================= */

.fc .fc-button {
    /* Responsive padding: smaller on narrow screens, larger on wide screens */
    padding-inline: clamp(0.1em, 0.5vw + 0.1em, 0.3em);
    min-width: clamp(22px, 5vw, 32px);
}

/* Fixed FC header under your title bar */
.fc .fc-toolbar.fc-header-toolbar,
.fc-header-toolbar {
    position: fixed !important;
    top: var(--title-bar-height);
    background: var(--theme-header-bg);
    border-bottom: 1px solid var(--theme-row-border);
    width: 100%;
    z-index: 50;
    /* Below overlays and modals, allows scrolling content to pass under */
    max-width: var(--app-max-width);
    min-width: 300px;
    /* Allow shrinking down to 300px */
    height: var(--cal-header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    left: 0;
}

/* Add spacing below fixed toolbar so content isn't hidden */
.fc .fc-view-harness {
    transition: margin-top 0.2s ease;
}



/* Chunks: side groups can shrink; center (title) gets room */
.fc .fc-toolbar-chunk {
    display: flex;
    align-items: center;
    min-width: 0;
}

.fc .fc-toolbar-chunk:nth-child(1) {
    flex: 0 0 auto;
    justify-content: flex-start;
}

.fc .fc-toolbar-chunk:nth-child(2) {
    flex: 1 1 auto;
    min-width: clamp(8ch, 12ch, 16ch);
    /* Reduced from 10ch/16ch/20ch to allow more shrinking */
    justify-content: center;
    text-align: center;
}

.fc .fc-toolbar-chunk:nth-child(3) {
    flex: 0 0 auto;
    justify-content: flex-end;
}

.fc .fc-toolbar-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: var(--font-size-calendar-header);
    color: var(--theme-header-text);
    font-weight: 600;
}

/* Compact buttons - iPhone style */
.fc .fc-button {
    padding-inline: 0.1em;
    min-width: var(--calendar-button-size);
    min-height: var(--calendar-button-size);
    font-size: calc(var(--font-size-m) * 1.5);
    /* Scale font with button size */
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
    pointer-events: auto !important;
    /* Ensure buttons are always clickable */
    cursor: pointer;
    /* Show it's clickable */
    background-color: transparent;
    border: none;
    color: var(--theme-button-primary);
    border-radius: 8px;
    position: relative;
    /* Ensure proper stacking */
    z-index: 1;
    /* Above other toolbar content */
}

/* Remove all hover/active/focus effects */
.fc .fc-button:hover,
.fc .fc-button:active,
.fc .fc-button:focus {
    background-color: transparent !important;
    border: none !important;
    color: var(--theme-button-primary) !important;
    transform: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove primary button default styling */
.fc .fc-button-primary {
    background-color: transparent !important;
    border: none !important;
    color: var(--theme-button-primary) !important;
    box-shadow: none !important;
}

/* Remove primary button states */
.fc .fc-button-primary:hover,
.fc .fc-button-primary:active,
.fc .fc-button-primary:focus {
    background-color: transparent !important;
    border: none !important;
    color: var(--theme-button-primary) !important;
    box-shadow: none !important;
}

/* Ensure prev/next icons are same width */
.fc .fc-icon {
    display: inline-block;
    min-width: 1em;
    text-align: center;
}

/* Remove active button state styling */
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: transparent !important;
    border: none !important;
    color: var(--theme-button-primary) !important;
    box-shadow: none !important;
}

/* ========================================= */
/* FullCalendar List View - iPhone Style    */
/* ========================================= */

.fc .fc-list-empty {
    background-color: var(--theme-header-bg);
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fc .fc-list-empty-cushion {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    color: var(--theme-header-text);
}

/* List event styling - iPhone cards */
.fc-list-event {
    border: none !important;
    border-radius: 12px;
    background: var(--theme-card-bg) !important;
    padding: 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px var(--theme-card-shadow);
    border-left: 4px solid transparent;
}

.fc .fc-list-table {
    width: 100%;
    border-style: hidden;
}

/* Prevent buttons and other toolbar chunks from wrapping */
.fc-toolbar-chunk {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 1px;
    flex-shrink: 1;
    min-width: 0;
}

/* Prevent custom buttons from wrapping */
.fc-button-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-shrink: 1;
}

/* Ensure FullCalendar header stays on one row */
.fc-header-toolbar {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: space-between;
    width: 100%;
}

/* Reduce button padding if space is tight */
.fc-button {
    padding: 2px 3px !important;
    font-size: calc(var(--font-size-m) * 1.5);
    min-width: var(--calendar-button-size);
}

/* Today's date header - iPhone style */
.fc-list-day.fc-day-today {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%) !important;
    border-top: 2px solid var(--theme-button-primary);
    border-radius: 8px;
    margin: 8px 0;
}

.fc-list-day.fc-day-today .fc-list-day-cushion a {
    color: var(--theme-button-primary) !important;
    font-weight: 600;
}

/* Light background for all of today's events */
.fc-list-event.event-on-today {
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%) !important;
    border-left-color: var(--theme-button-primary);
}

/* Archived event styles - muted iPhone style */
.fc-event.archived-event {
    font-style: italic !important;
}

.fc-list-event.archived-event {
    background-color: var(--theme-header-bg) !important;
    opacity: 0.85;
}

.fc-list-event.archived-event .fc-list-event-title {
    color: var(--primary-color) !important;
    font-style: italic !important;
}

.fc-list-event.archived-event .fc-list-event-time {
    color: var(--secondary-color) !important;
    font-style: italic !important;
}

/* Custom buttons - iPhone style */
.fc-customNewEvent-button,
#add-player-button {
    padding: 5px !important;
    border: none !important;
    background: transparent !important;
    font-size: var(--font-size-admin-button) !important;
    cursor: pointer;
    color: var(--admin-button-color) !important;
}

/* Reduce the padding on the left of the calendar entry */
/* Fluidly scale padding based on viewport width */
.fc .fc-list-day-cushion,
.fc .fc-list-table td {
    padding: clamp(6px, 1vw, 10px) clamp(6px, 1vw, 10px);
}


/* Day headers - iPhone style */
.fc .fc-list-day-cushion {
    background: var(--theme-date-header);
    color: var(--ca);
    font-weight: 600;
    border-radius: 8px;
    margin: 4px 0;
}

.nav-button {
    flex: 1;
    text-align: center;
    border: 1px solid var(--primary-bg-color);
    color: var(--primary-bg-color);
    background-color: black;
    font-size: var(--font-size-nav);
    box-sizing: border-box;
    height: var(--nav-height);
    padding: 0 0.4rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.nav-button:not(:last-child) {
    border-right: 0;
}

.nav-button.active {
    font-weight: bold;
    color: var(--accent-color);
}

.nav-button.gray-out {
    font-weight: bold;
    color: gray;
}

/* Hide icons and allow text wrapping at narrow widths */
@media (max-width: 360px) {
    .nav-button {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        padding: 0.25rem 0.2rem;
    }

    .nav-button i {
        display: none;
    }
}

/* Events filter help */
.filter-help-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 5px;
    background-color: var(--primary-bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: var(--spacing-small);
    box-shadow: var(--box-shadow);
    font-size: var(--font-size-small);
    text-align: left;
    z-index: 1000;
}

.filter-help-content code {
    background-color: var(--secondary-bg-color);
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 11px;
}

.filter-help-content strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 5px;
}

.archived-event-header {
    background-color: lightgray;
    margin: 5px 0;
}

/* Removed duplicate - see comprehensive definition below around line 773 */

.calendar-filter-panel input:focus {
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.calendar-filter-panel .clear-filter-btn.visible {
    display: flex !important;
}



/* ========================================= */
/* FullCalendar Month View - iPhone Style   */
/* ========================================= */

/* Month view grid - cleaner borders */
.fc .fc-daygrid-day {
    border-color: var(--theme-row-border);
}

.fc .fc-col-header-cell {
    background: var(--theme-header-bg);
    color: var(--theme-header-text);
    font-weight: 600;
    border-color: var(--theme-card-border);
    padding: 8px 4px;
}

/* Day numbers - iPhone style */
.fc .fc-daygrid-day-number {
    color: var(--theme-header-text);
    padding: 4px 8px;
    font-weight: 500;
}

.fc .fc-daygrid-day.fc-day-today {
    background: linear-gradient(135deg, #f0f8ff 0%, #e3f2fd 100%) !important;
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    background: var(--theme-button-primary);
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Event dots/cards in month view */
.fc .fc-daygrid-event {
    border-radius: 4px;
    padding: 2px 4px;
    margin: 1px 2px;
    border-left: 3px solid;
    background: var(--theme-card-bg);
    box-shadow: 0 1px 2px var(--theme-card-shadow);
}

.fc .fc-daygrid-event:active {
    transform: scale(0.98);
}

/* More link in month view */
.fc .fc-daygrid-more-link {
    color: var(--theme-button-primary);
    font-weight: 500;
    padding: 2px 4px;
    border-radius: 4px;
}

/* ========================================= */
/* Calendar Filter & Controls               */
/* ========================================= */

.fc .calendar-filter-panel {
    margin: 0;
    border-radius: 0;
}

/* Filter toggle button styles - iPhone style */
.fc-filterToggle-button {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
    min-height: 44px;
    min-width: 44px;
    background-color: var(--theme-card-bg);
    border: 1px solid var(--theme-card-border);
    border-radius: 8px;
    color: var(--theme-header-text);
}

/* Remove active state styling for filter toggle button */
.fc-filterToggle-button.fc-button-active {
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    color: var(--theme-button-primary) !important;
    box-shadow: none !important;
}

/* Custom filter button in toolbar */
.fc-customFilter-button {
    /* Match other toolbar buttons - light background with blue icon */
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    color: var(--admin-button-color, #2563eb) !important;
    /* Inherit size from .fc-button */
    padding: 2px 3px !important;
    font-size: calc(var(--font-size-m) * 1.5) !important;
    min-width: var(--calendar-button-size) !important;
}

/* Remove active state styling for custom filter button */
.fc-customFilter-button.active {
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    color: var(--admin-button-color, #2563eb) !important;
}

/* Remove active/hover/focus effects for custom filter button */
.fc-customFilter-button:active,
.fc-customFilter-button:hover,
.fc-customFilter-button:focus {
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    color: var(--admin-button-color, #2563eb) !important;
    transform: none !important;
    outline: none !important;
}

/* iOS-specific touch feedback */
.fc-filterToggle-button:active {
    background-color: var(--theme-header-bg) !important;
    transform: scale(0.98);
}

/* Integrated filter - responsive without media queries */
.calendar-filter-panel {
    padding: clamp(10px, 2vw, 15px) clamp(12px, 2vw, 15px);
}

.calendar-filter-panel input {
    font-size: 16px;
    /* Prevents iOS zoom */
    min-width: auto;
    padding: clamp(10px, 2vw, 12px) clamp(15px, 3vw, 18px);
}

.calendar-filter-panel>div>div:first-child {
    /* Input row - responsive width */
    width: clamp(280px, 90vw, 100%);
}

.calendar-filter-panel>div>div:last-child {
    /* Checkbox row - responsive spacing */
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
}

.calendar-filter-panel label {
    font-size: clamp(14px, 2.5vw, 16px);
    padding: 5px;
}

/* Header filter icon - uses .header-icon and .header-filter-icon classes from index.css */
#header-filter-icon.active {
    color: var(--admin-button-color) !important;
}

/* Event Count Button in Footer - iPhone style */
.fc-eventCount-button {
    background-color: var(--theme-card-bg) !important;
    border: 1px solid var(--theme-card-border) !important;
    color: var(--theme-header-text) !important;
    font-size: clamp(11px, 2vw, 12px) !important;
    padding: clamp(3px, 1vw, 6px) clamp(6px, 2vw, 12px) !important;
    cursor: pointer !important;
    border-radius: 8px !important;
    box-shadow: 0 1px 2px var(--theme-card-shadow) !important;
}

.fc-eventCount-button:active {
    background-color: var(--theme-header-bg) !important;
    transform: scale(0.98);
}

/* Calendar Filter Panel */
.calendar-filter-panel {
    display: none;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    top: calc(var(--title-bar-height) + var(--cal-header-height));
    z-index: calc(var(--z-index-title-bar) + 1);
    /* Above title-bar and fc-header */
    width: 100%;
    max-width: var(--app-max-width);
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

#calendar-events-filter {
    font-size: 21px;
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--theme-card-border);
    padding: 10px 40px 10px 16px;
    font-size: 21px;
    outline: none;
    box-sizing: border-box;
    background: var(--theme-card-bg);
}

#calendar-events-filter:focus {
    border-color: var(--theme-button-primary);
}

.clear-filter-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: none;
    color: var(--theme-header-text);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    width: 24px;
    height: 24px;
    line-height: 1;
    border-radius: 50%;
}

.clear-filter-btn:active {
    background: var(--theme-header-bg);
    transform: translateY(-50%) scale(0.95);
}

/* Filter checkboxes row */
.filter-checkboxes-row {
    display: grid;
    grid-template-columns: auto auto 1fr auto auto auto auto;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-right: 8px;
}

.filter-checkbox-label {
    font-weight: 500;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    font-size: 18px;
    white-space: nowrap;
}

.filter-checkbox-label input[type="checkbox"] {
    margin: 0;
    width: 24px;
    height: 24px;
}

.event-count-display {
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    background-color: #e9ecef;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    min-width: 40px;
    text-align: center;
}

/* Spacer to push right-aligned items to the right */
.filter-checkboxes-row .spacer {
    grid-column: 3;
}

/* Bulk action buttons - fit content */
.filter-checkboxes-row .bulk-event-action-button {
    min-width: 32px;
    min-height: 32px;
    padding: 8px;
}

/* Select dropdown - fit content */
.filter-checkboxes-row .bulk-select-dropdown {
    width: auto;
}

/* ========================================= */
/* SWITCH USER MODE INDICATOR                */
/* ========================================= */

#profile-icon {
    position: relative;
    grid-column: 4;
}

#profile-icon[data-switch-mode="true"]::after {
    content: "\f074";
    /* Font Awesome shuffle icon unicode */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #ff6b6b;
}

/* ========================================= */
/* BULK EVENT DELETE/ARCHIVE FEATURE        */
/* ========================================= */

/* Checkbox in list day headers */
.bulk-event-checkbox {
    width: 28px;
    height: 28px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--accent-color);
}

/* Bulk action button in filter panel */
.bulk-event-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--admin-button-color);
    cursor: pointer;
    font-size: 20px;
    padding: 8px;
    transition: color 0.2s ease;
    flex-shrink: 0;
    margin-left: auto;
}

.bulk-event-action-button:hover:not(:disabled) {
    color: var(--accent-color);
}

.bulk-event-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.bulk-event-action-button i {
    font-size: 20px;
}

/* Bulk select all dropdown */
.bulk-select-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.bulk-select-all {
    width: 20px;
    height: 20px;
    cursor: pointer;
    margin: 0;
    accent-color: var(--accent-color);
}

.bulk-select-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    min-width: 140px;
    display: none;
    z-index: 1000;
    margin-top: 4px;
}

.bulk-select-dropdown-menu.open {
    display: block;
}

.bulk-select-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: background-color 0.2s;
}

.bulk-select-option:hover {
    background-color: #f5f5f5;
}

.bulk-select-option:first-child {
    border-radius: 4px 4px 0 0;
}

.bulk-select-option:last-child {
    border-radius: 0 0 4px 4px;
}

/* ========================================= */
/* SWITCH USER DIALOG                        */
/* ========================================= */

.switch-user-header {
    text-align: left;
    line-height: 1.5;
}

.switch-user-restore-container {
    text-align: center;
    margin-top: 12px;
    padding: 12px;
    background: #f0f4ff;
    border-radius: 6px;
}

.restore-original-user-link {
    color: #667eea;
    text-decoration: none;
    font-size: var(--font-size-l);
    font-weight: 500;
}

.login-footer-link-container {
    margin-top: 10px;
    font-size: var(--font-size-s);
    text-align: center;
}

.login-footer-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

/* ========================================= */
/* PERFORMANCE PAGE - NO DATA MESSAGE        */
/* ========================================= */

.performance-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--theme-text-secondary, #666);
    min-height: 400px;
}

.performance-no-data h2 {
    font-size: var(--font-size-xl);
    margin: 10px 0 20px 0;
    color: var(--theme-text-primary, #333);
}

.performance-no-data p {
    font-size: var(--font-size-m);
    margin: 8px 0;
    max-width: 500px;
    line-height: 1.5;
}

.performance-error {
    padding: 20px;
    text-align: center;
    color: #d32f2f;
    font-size: var(--font-size-m);
}