/* Admin Panel Dark Theme Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1e1e1e;
    --bg-secondary: #2d2d2d;
    --bg-tertiary: #3a3a3a;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-blue: #0a84ff;
    --accent-green: #30d158;
    --accent-red: #ff453a;
    --accent-orange: #d97706;
    --border-color: #444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
}

/* Loading Screen */
#loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--bg-primary);
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--bg-tertiary);
    border-top-color: var(--accent-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Access Denied */
#access-denied {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background-color: var(--bg-primary);
}

.access-denied-card {
    background: var(--bg-secondary);
    padding: 48px;
    border-radius: 16px;
    text-align: center;
    max-width: 400px;
}

.access-denied-card h1 {
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--accent-red);
}

.access-denied-card p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* Admin Container */
#admin-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* Header */
.admin-header {
    background: var(--bg-secondary);
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 50;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 16px;
}

.admin-title {
    font-size: 18px;
    font-weight: 500;
    margin-right: 48px;
}

.admin-logo {
    height: 40px;
    width: auto;
    margin-right: 48px;
    object-fit: contain;
    cursor: pointer;
}

/* Tab Navigation */
.tab-nav {
    display: none;
    gap: 8px;
    margin-left: auto;
    margin-right: auto;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    color: white;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.tab-btn.active {
    background: white;
    border: 1px solid white;
    color: var(--bg-primary);
    font-weight: 600;
}

.tab-btn.active:hover {
    background: rgba(255, 255, 255, 0.95);
}

/* Header Actions - Hidden, only in hamburger menu */
.header-actions {
    display: none !important;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    white-space: nowrap;
}

.admin-home-link {
    color: var(--accent-blue);
    font-size: 13px;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: inherit;
    font-weight: 500;
    min-height: 32px;
}

.admin-home-link:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.admin-home-link.active {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

.admin-home-link.active:hover {
    background: rgba(10, 132, 255, 0.25);
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #0a84ff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border-color: transparent;
}

.btn-primary:hover {
    background: rgba(10, 132, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-primary.ready {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border-color: transparent;
}

.btn-primary.ready:hover {
    background: rgba(10, 132, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* New Event Button - Filter Style */
#new-event-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

#new-event-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

#new-event-btn .btn-icon {
    font-size: 16px;
    line-height: 1;
}

/* Add Time and New Volunteer Buttons - Filter Style */
#send-message-volunteers-btn,
#add-time-volunteers-btn,
#new-volunteer-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    height: 32px;
    box-sizing: border-box;
}

#send-message-volunteers-btn:hover,
#add-time-volunteers-btn:hover,
#new-volunteer-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border-color: transparent;
}

.btn-secondary:hover {
    background: rgba(10, 132, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.btn-icon {
    font-size: 18px;
    font-weight: 600;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

/* Main Content */
.admin-main {
    flex: 1;
    overflow-y: visible;
    padding: 24px;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#tab-reports {
    overflow: visible;
    padding-top: 60px;
}

@media (max-width: 1200px) {
    /* Tablet/iPad specific adjustments - mobile header is smaller */
    #tab-reports {
        padding-top: 80px;
    }
}

#tab-reports .tab-header h2 {
    display: none;
}

#tab-reports .tab-header {
    margin: 0 !important;
    padding-top: 0;
    align-items: flex-start;
    min-height: auto;
}

#tab-reports .tab-header > div:first-child {
    margin-top: 0;
    padding-top: 0;
}

#tab-reports .tab-header .subtitle {
    display: block;
    margin-bottom: 16px;
    margin-top: 0;
    padding-top: 0;
}

/* Tab Header */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    margin-top: 80px !important;
}

/* Add more spacing for report tab headers */
#tab-reports .tab-header {
    margin-bottom: 28px;
}

/* Add spacing between tab-header and filters/columns panels */
#activity-log-filters,
#activity-log-columns-panel {
    margin-top: 20px !important;
}

/* Events sticky header wrapper - removed sticky functionality */
.events-sticky-header {
    background: var(--bg-primary);
    margin-top: 0 !important;
    margin-left: -24px;
    margin-right: -24px;
    padding: 24px 24px 6px 24px;
}

/* Reset tab-header margins inside sticky wrapper */
#tab-events .tab-header {
    margin-top: 0 !important;
    margin-bottom: 5px;
    padding-top: 40px;
}

/* Add padding to volunteers tab header */
#tab-volunteers .tab-header {
    padding-top: 65px;
    margin-top: 0 !important;
    margin-bottom: 0;
}

/* Reset search filters margins inside sticky wrapper */
#tab-events .sticky-search-filters {
    margin-bottom: 0;
}

.tab-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    gap: 8px;
    margin-top: 0;
    margin-bottom: 0;
}

.filter-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-sizing: border-box;
}

.filter-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.filter-btn.active {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

.filter-btn.active:hover {
    background: rgba(10, 132, 255, 0.25);
}

.filter-count {
    font-size: 11px;
    opacity: 0.7;
    margin-left: 4px;
}

/* Filter Select Dropdowns */
.filter-select {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 28px 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230A84FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    min-height: 32px;
}

.filter-select:hover {
    background: var(--bg-secondary);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230A84FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.filter-select:focus {
    outline: none;
    background: var(--bg-secondary);
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230A84FF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    color: var(--accent-blue);
}

/* Search Box */
.search-box {
    margin-bottom: 20px;
}

.search-box input {
    width: 100%;
    max-width: 425px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 15px;
    color: var(--accent-blue);
    font-size: 13px;
    height: 32px;
    box-sizing: border-box;
}

.search-box input::placeholder {
    color: var(--accent-blue);
    opacity: 0.7;
}

.events-search-box {
    flex: 1;
}

.events-search-box input {
    max-width: none;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* Event Summary Selector - Match Reports Menu Style */
.event-summary-selector {
    margin-bottom: 24px;
}

/* Event summary dropdown needs absolute positioning, not fixed */
.event-summary-selector .reports-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
}

.event-summary-selector label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
}

.event-summary-selector .search-box {
    max-width: 500px;
    margin-bottom: 0;
}

.event-summary-selector .search-box input {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
    height: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.event-summary-selector .search-box input::placeholder {
    color: var(--accent-blue);
    opacity: 0.7;
}

.event-summary-selector .search-box input:hover {
    background: var(--bg-secondary);
    border-color: #0a84ff;
}

.event-summary-selector .search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(10, 132, 255, 0.1);
}

/* Sticky Search Filters */
.sticky-search-filters {
    position: sticky;
    top: 50px;
    z-index: 100;
    background: var(--bg-primary);
    padding: 8px 0;
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
}

/* Volunteers Filters */
.volunteers-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    align-items: center;
}

.volunteers-filters .search-box {
    flex: 1;
    margin-bottom: 0;
}

.volunteers-filters .search-box input {
    max-width: none;
    min-width: 30ch;
    width: 100%;
}

.sticky-search-filters .search-box input {
    max-width: none !important;
    min-width: 30ch;
    width: 100%;
}

.type-filter select,
.team-filter select,
.year-filter {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 6px 12px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: auto;
    height: 32px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.type-filter select:hover,
.team-filter select:hover,
.year-filter:hover {
    background: var(--bg-secondary);
    border-color: #0a84ff;
}

.type-filter select:focus,
.team-filter select:focus,
.year-filter:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 0 0 3px rgba(10, 132, 255, 0.1);
}

/* Table */
.table-container {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow-x: auto;
    overflow-y: visible;
    border: 1px solid var(--border-color);
    max-width: none;
    padding-bottom: 80px;
}

/* Add spacing above tables in reports */
#tab-reports .table-container,
#tab-reports .teams-report-table,
#tab-reports #volunteer-directory-grid {
    margin-top: 8px !important;
}

/* Special handling for events table to allow sticky header */
#tab-events .table-container {
    overflow-y: auto;
    max-height: calc(100vh - 180px);
}

/* Special handling for volunteers table to allow sticky header */
#tab-volunteers .table-container {
    overflow-y: auto;
    max-height: calc(100vh - 220px);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; /* Allow cells to expand based on content */
    min-width: 900px; /* Ensure table triggers horizontal scroll on smaller screens */
}

.admin-table thead {
    background: var(--bg-tertiary);
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    outline: none;
    background: var(--bg-tertiary);
}

/* Make table header cells sticky for events tab */
#tab-events .admin-table th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Make table header cells sticky for volunteers tab */
#tab-volunteers .admin-table th {
    position: sticky;
    top: 0;
    z-index: 5;
}

/* Round the corners of the table header to match container */
.admin-table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.admin-table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.admin-table tbody tr {
    border-top: 1px solid var(--border-color);
    transition: background 0.2s;
}

.admin-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.admin-table td {
    padding: 16px;
    font-size: 14px;
}

/* Prevent wrapping in badge columns (shifts, RSVPs, wait, parking, tickets) */
.admin-table td .status-badge {
    white-space: nowrap;
}

/* Prevent date column from wrapping */
.admin-table td:nth-child(4) {
    white-space: nowrap;
}

.admin-table th.center-col,
.admin-table td.center-col {
    text-align: center;
    vertical-align: middle;
}

.admin-table td.center-col {
    padding: 8px;
    white-space: nowrap;
}

.admin-table td.center-col .icon-btn {
    margin: 0 2px;
    vertical-align: middle;
    display: inline-block;
}

/* Status Badges */
/* Unified Badge System - Option 1 Style (Semi-transparent backgrounds with colored text) */
.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

/* Badge Color Variations - Option 1 Style */
.status-active,
.badge-rsvp.status-active,
.status-badge.status-active,
.status-badge.badge-rsvp.status-active {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158 !important;
}

.status-inactive,
.badge-shift,
.badge-rsvp.status-inactive,
.status-badge.status-inactive,
.status-badge.badge-shift,
.status-badge.badge-rsvp.status-inactive {
    background: rgba(149, 153, 158, 0.15);
    color: #95999e !important;
}

.status-preparing,
.badge-rsvp.status-preparing,
.status-badge.status-preparing,
.status-badge.badge-rsvp.status-preparing {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a !important;
}

.status-rsvp,
.status-badge.status-rsvp {
    background: rgba(10, 132, 255, 0.15);
    color: #0a84ff !important;
}

.status-red,
.status-badge.status-red {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a !important;
}

/* Shift Badge - removed colored text, use badge classes instead */
.shift-badge {
    font-size: 13px;
}

.shift-time {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

/* RSVP Count - removed colored text overrides */
.rsvp-count {
    font-weight: 500;
}

/* Shift Status Badges */
.shift-status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.shift-status-open {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
}

.shift-status-filled {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
}

.shift-status-extras {
    background: rgba(10, 132, 255, 0.15);
    color: #0a84ff;
}

.shift-status-locked {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

/* Waitlist Count */
.waitlist-count {
    color: #ff9800;
    font-size: 13px;
}

/* Waitlist Promote/Decline Buttons */
.btn-promote {
    background: var(--bg-tertiary);
    border: none;
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-promote:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.btn-decline {
    background: var(--bg-tertiary);
    border: none;
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-decline:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

/* Icon Button */
.icon-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--accent-blue);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: var(--bg-tertiary);
}

.icon-btn-disabled {
    opacity: 0.5;
}

.icon-btn-disabled svg {
    stroke: #999 !important;
}

.icon-btn-disabled:hover {
    background: var(--bg-tertiary);
    cursor: not-allowed;
}

.action-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

/* Manage Tab */
.manage-controls {
    padding: 12px 24px 12px 24px;
}

.manage-content-wrapper {
    background: var(--bg-primary);
    padding: 16px 24px 24px 24px;
    border-radius: 8px;
    margin: 8px 24px 16px 24px;
    border: 1px solid var(--border-color);
}

.event-selector-dropdown {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

#manage-event-select {
    flex: 1;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

#manage-event-select:hover {
    border-color: var(--accent-blue);
}

#manage-event-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.1);
}

#manage-event-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 12px 8px;
    font-size: 13px;
    line-height: 1.5;
}

.info-icon-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.info-icon-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-blue);
}

.info-icon-btn svg {
    color: var(--text-secondary);
}

.info-icon-btn:hover svg {
    color: var(--accent-blue);
}

.manage-subtabs {
    display: flex;
    gap: 8px;
    padding: 0 0 16px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.manage-subtab-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 15px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-family: inherit;
    white-space: nowrap;
    min-height: 32px;
}

.manage-subtab-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.manage-subtab-btn.active {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

.manage-subtab-btn.active:hover {
    background: rgba(10, 132, 255, 0.25);
}

.manage-subtab-content {
    display: none;
}

.manage-subtab-content.active {
    display: block;
}

#manage-no-event {
    padding: 48px;
    text-align: center;
}

.no-data-message {
    color: var(--text-secondary);
}

.manage-table td {
    vertical-align: middle;
}

.parking-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: middle;
}

/* Checkin Status Badges - Option 1 Style */
.status-badge.not-checked-in {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
}

.status-badge.checked-in {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
}

.status-badge.checked-out {
    background: rgba(255, 69, 58, 0.15);
    color: #ff453a;
}

.manage-action-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.btn-checkin,
.btn-checkout,
.btn-add-note {
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-checkin {
    background: rgba(48, 209, 88, 0.2);
    color: var(--accent-green);
    border: 1px solid var(--accent-green);
}

.btn-checkin:hover {
    background: var(--accent-green);
    color: #000;
}

.btn-checkout {
    background: rgba(255, 69, 58, 0.2);
    color: var(--accent-red);
    border: 1px solid var(--accent-red);
}

.btn-checkout:hover {
    background: var(--accent-red);
    color: #fff;
}

.btn-add-note {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-add-note svg {
    flex-shrink: 0;
}

.btn-add-note:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-blue);
}

.status-badge.checked-out[onclick] {
    cursor: pointer;
}

.status-badge.checked-out[onclick]:hover {
    opacity: 0.8;
}

/* Icon badge for notification counts */
.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--accent-red);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.icon-btn {
    position: relative;
}

/* Comms Log Entry Styles */
.comms-log-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 500px;
    overflow-y: auto;
}

.comms-log-entry {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
}

.comms-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.comms-log-type {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 13px;
}

.comms-log-time {
    color: var(--text-secondary);
    font-size: 12px;
}

.comms-log-admin {
    color: var(--text-secondary);
    font-size: 12px;
    margin-bottom: 6px;
}

.comms-log-subject {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.comms-log-message {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Reports Layout */
.reports-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    padding-top: 0;
    position: relative;
    height: calc(100vh - 120px);
    overflow: hidden;
}

.reports-menu-header {
    position: relative;
    z-index: 100;
    margin-bottom: 0;
    padding-bottom: 10px;
    background: var(--bg-primary);
    padding-top: 20px;
}

.team-description-box {
    margin-top: 24px;
    margin-bottom: 16px;
    margin-left: 20px;
    margin-right: 20px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    display: none;
}

.team-description-box:not(:empty) {
    display: block;
}

#report-volunteer-directory .tab-header {
    margin-bottom: 15px;
}

#report-volunteer-directory .team-description-box {
    margin-top: 15px !important;
    margin-bottom: 15px !important;
}

#report-volunteer-directory #volunteer-directory-grid {
    margin-top: 0;
}

/* Make volunteer directory header wrap on mobile */
@media (max-width: 768px) {
    #report-volunteer-directory .tab-header {
        flex-direction: column;
        gap: 16px;
    }

    #report-volunteer-directory .tab-header > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }

    #report-volunteer-directory .tab-header select {
        flex: 1;
        min-width: 0;
    }
}

.reports-menu-button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 400px;
    padding: 5px 15px;
    height: 32px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    box-sizing: border-box;
}

.reports-menu-button:hover {
    background: rgba(10, 132, 255, 0.15);
    border-color: var(--accent-blue);
}

.reports-menu-button svg:first-child {
    flex-shrink: 0;
}

.reports-dropdown {
    position: fixed;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    max-width: 400px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    z-index: 99999;
    overflow: hidden;
}

.reports-search-box {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.reports-search-box input {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 14px;
}

.reports-search-box input::placeholder {
    color: var(--text-secondary);
}

.reports-search-box input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.reports-menu {
    display: flex;
    flex-direction: column;
    padding: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.reports-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    margin-bottom: 2px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    color: var(--text-primary);
}

.reports-menu-item:hover {
    background: var(--bg-tertiary);
}

.reports-menu-item.active {
    background: rgba(10, 132, 255, 0.15);
    color: var(--accent-blue);
    font-weight: 500;
}

.reports-content {
    flex: 1;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    min-height: 0;
}

.report-view {
    display: none;
}

.report-view.active {
    display: block;
    padding-bottom: 80px;
    padding-top: 0 !important;
    margin-top: 0 !important;
    height: 100%;
}

.report-view.active > * {
    margin-top: 0 !important;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.settings-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.settings-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.settings-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

/* Settings tab - enable scrolling */
#tab-settings {
    height: calc(100vh - 66px);
    max-height: calc(100vh - 66px);
    overflow-y: auto;
}

/* Settings tab content display rules */
#tab-settings .volunteer-tab-content {
    display: none !important;
}

#tab-settings .volunteer-tab-content.active {
    display: block !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .reports-menu-button {
        max-width: 100%;
    }

    .reports-dropdown {
        max-width: 100%;
    }

    .reports-content {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Removed flex-wrap from header - tabs stay inline */

/* Modal Overlays */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 1000;
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
}

.modal-sheet {
    background: var(--bg-secondary);
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.modal-sheet-wide {
    max-width: min(95vw, 1400px);
    width: 95%;
}

.modal-sheet-narrow {
    max-width: 400px;
}

/* Actions Event Header */
.actions-event-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.actions-event-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.actions-event-header .subtitle {
    margin: 4px 0;
}

/* Actions Menu */
.actions-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.action-menu-item {
    padding: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.action-menu-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.action-menu-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.5;
    margin-bottom: 0;
}

.action-button {
    margin-top: 0 !important;
    width: 100% !important;
    padding: 10px 16px;
    font-size: 15px;
    background: transparent !important;
    color: #0a84ff !important;
    border-color: #0a84ff !important;
}

.action-button:hover {
    background: transparent !important;
    color: #0a84ff !important;
    border-color: #0a84ff !important;
    opacity: 0.8;
}

.modal-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 20px 20px 0 0;
}

.modal-sheet-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.modal-btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: 70px;
    min-height: 32px;
    justify-content: center;
}

.modal-btn-secondary:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.modal-btn-primary {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-height: 32px;
}

.modal-btn-primary:hover {
    background: rgba(10, 132, 255, 0.25);
    color: var(--accent-blue);
}

.modal-btn-danger {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-red);
    padding: 5px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    min-width: 70px;
    min-height: 32px;
    justify-content: center;
}

.modal-btn-danger:hover {
    background: rgba(255, 69, 58, 0.15);
    border-color: var(--accent-red);
    color: var(--accent-red);
}

.modal-btn-primary.ready {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border: none;
}

.modal-btn-primary.ready:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.modal-btn-primary.checkout {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

.modal-btn-primary.checkout:hover {
    background: #1e3a8a;
    color: white;
}

.modal-btn-primary.quick-note-save {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

.modal-btn-primary.quick-note-save:hover {
    background: #1e3a8a;
    color: white;
}

.modal-btn-primary.partial-checkin {
    background: white;
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
}

.modal-btn-primary.partial-checkin:hover {
    background: #1e3a8a;
    color: white;
}

.icon-button {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.icon-button:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.icon-button svg {
    display: block;
    stroke: currentColor;
}

.icon-button:hover svg {
    stroke: var(--accent-blue);
}

.modal-sheet-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: 0 0 20px 20px;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 32px;
}

.detail-section h3 {
    font-size: 14px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.detail-card {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.detail-card label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.detail-card p {
    font-size: 14px;
    color: var(--text-primary);
    margin: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-row span:first-child {
    color: var(--text-primary);
}

.detail-row span:last-child {
    color: var(--text-secondary);
}

/* RSVP color overrides for detail-row spans */
.detail-row .rsvp-count.rsvp-fulfilled {
    color: #4caf50 !important;
}

.detail-row .rsvp-count.rsvp-unfulfilled {
    color: #ff9800 !important;
}

.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* Map Thumbnail */
.map-thumbnail-link {
    display: inline-block;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-thumbnail-link:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.map-thumbnail {
    display: block;
    width: 120px;
    height: 80px;
    object-fit: cover;
}

/* Action Buttons */
.btn-action-blue {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    color: var(--accent-blue);
    padding: 16px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-action-blue:hover {
    background: rgba(10, 132, 255, 0.2);
}

.btn-danger {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--accent-red);
    padding: 16px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-danger:hover {
    background: rgba(255, 69, 58, 0.1);
}

.btn-icon-round {
    background: var(--accent-blue);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-icon-round:hover {
    opacity: 0.9;
}

/* Volunteer List Items */
.volunteer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.volunteer-item-name {
    font-size: 14px;
    color: var(--text-primary);
}

.btn-remove {
    background: var(--accent-red);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.btn-remove:hover {
    opacity: 0.8;
}

/* Sortable Table Headers */
.admin-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

.admin-table th.sortable:hover {
    color: var(--text-primary);
}

.admin-table th.sortable:focus {
    outline: none;
}

.admin-table th.sortable::after {
    content: '';
    margin-left: 6px;
}

.admin-table th.sort-asc::after {
    content: ' ▲';
    color: var(--accent-blue);
}

.admin-table th.sort-desc::after {
    content: ' ▼';
    color: var(--accent-blue);
}

/* Clickable Rows */
.admin-table tbody tr {
    cursor: pointer;
}

.clickable-cell {
    cursor: pointer;
    transition: opacity 0.2s;
}

.clickable-cell > span:first-child {
    color: var(--accent-blue);
}

.clickable-cell:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Copy Link Logs */
.copy-link-log {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.copy-link-log-entry {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-family: 'Courier New', monospace;
}

/* Active Teams Report */
.teams-report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.teams-report-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
}

.teams-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.download-csv-btn {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border: 1px solid rgba(10, 132, 255, 0.3);
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
}

.download-csv-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
    border-color: var(--accent-blue);
}

.download-csv-btn svg {
    display: block;
    stroke: currentColor;
}

.download-csv-btn:hover svg {
    stroke: var(--accent-blue);
}

.training-reset-btn {
    background: var(--bg-tertiary);
    color: #ff453a;
    border: 1px solid rgba(255, 69, 58, 0.3);
    padding: 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    box-sizing: border-box;
}

.training-reset-btn:hover {
    background: rgba(255, 69, 58, 0.1);
    border-color: #ff453a;
}

.training-reset-btn svg {
    display: block;
    stroke: currentColor;
}

.status-filter-btn {
    padding: 5px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    font-weight: 500;
    min-height: 32px;
}

.status-filter-btn:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.status-filter-btn.active {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

.status-filter-btn.active:hover {
    background: rgba(10, 132, 255, 0.25);
}

.teams-report-table {
    background: #2c2c2c;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 8px !important;
}

@media (max-width: 768px) {
    #report-active-teams .teams-report-table {
        margin-left: -24px;
        margin-right: -24px;
        border-radius: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .teams-table-header {
        grid-template-columns: 44px 150px 60px 200px 130px !important;
        min-width: 584px;
    }

    .team-member {
        grid-template-columns: 44px 150px 60px 200px 130px !important;
        min-width: 584px;
    }
}

.teams-table-header {
    display: grid;
    grid-template-columns: 2fr 0.75fr 2fr 1.5fr;
    gap: 16px;
    padding: 16px 20px;
    background: #2c2c2c;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    border-bottom: 1px solid #3a3a3a;
}

.teams-list {
    background: #2c2c2c;
}

.team-group {
    border-bottom: 1px solid #3a3a3a;
}

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

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.team-header:hover {
    background: #333;
}

.team-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    color: var(--text-secondary);
}

.team-group.expanded .team-chevron {
    transform: rotate(90deg);
}

.team-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
}

.team-count {
    font-size: 14px;
    color: var(--text-secondary);
}

.team-members {
    display: none;
    background: #2c2c2c;
}

.team-group.expanded .team-members {
    display: block;
}

.team-member {
    display: grid;
    grid-template-columns: 2fr 0.75fr 2fr 1.5fr;
    gap: 16px;
    padding: 12px 20px 12px 48px;
    font-size: 14px;
    color: var(--text-primary);
    border-top: 1px solid #333;
}

.team-member:last-child {
    padding-bottom: 16px;
}

.team-member-name {
    color: var(--text-primary);
}

.team-member-email {
    color: var(--text-secondary);
}

.team-member-mobile {
    color: var(--text-secondary);
}

/* Volunteer Plans Table */
.volunteer-plans-table {
    font-size: 13px;
    min-width: 1400px !important; /* Ensure table is wide enough for all columns */
    width: 100% !important;
    table-layout: auto !important; /* Use auto layout */
}

.volunteer-plans-table th {
    font-size: 11px;
    padding: 12px 8px;
    line-height: 1.2;
    white-space: nowrap;
}

.volunteer-plans-table th.col-date,
.volunteer-plans-table td:nth-child(1) {
    min-width: 90px !important;
    text-align: left;
}

.volunteer-plans-table th.col-name,
.volunteer-plans-table td:nth-child(2) {
    min-width: 180px !important;
    text-align: left;
}

.volunteer-plans-table th.col-check {
    min-width: 70px !important;
    text-align: left;
}

.volunteer-plans-table td {
    display: table-cell !important; /* Ensure all td elements use table-cell */
    padding: 10px 8px;
    color: var(--text-primary) !important;
    text-align: left;
    white-space: nowrap;
}

/* Force table-cell display on check-icon cells */
.volunteer-plans-table td.check-icon {
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: left !important;
    min-width: 85px !important;
    padding: 10px !important;
}

.volunteer-plans-table .check-icon {
    display: table-cell !important;
    vertical-align: middle !important;
    text-align: left !important;
    min-width: 85px !important;
    padding: 10px !important;
}

.volunteer-plans-table .check-icon svg {
    width: 20px;
    height: 20px;
    display: inline-block; /* Ensure SVG can be centered */
    vertical-align: middle;
}

.volunteer-plans-table .icon-complete {
    color: var(--accent-green);
}

.volunteer-plans-table .icon-incomplete {
    color: #4a4a4a;
    opacity: 0.5;
}

/* Volunteer Time Table */
.volunteer-time-table {
    font-size: 13px;
}

.volunteer-time-table th {
    font-size: 12px;
    padding: 12px 8px;
    line-height: 1.3;
}

.volunteer-time-table th.col-status {
    min-width: 80px;
    text-align: center;
}

.volunteer-time-table th.col-name {
    min-width: 180px;
    text-align: left;
}

.volunteer-time-table th.col-years {
    min-width: 70px;
    text-align: center;
}

.volunteer-time-table th.col-year {
    min-width: 100px;
    text-align: center;
}

.volunteer-time-table th small {
    color: var(--text-secondary);
    font-weight: normal;
    font-size: 10px;
}

.volunteer-time-table td {
    padding: 10px 8px;
    text-align: center;
}

.volunteer-time-table td:nth-child(3) {
    text-align: left;
}

.volunteer-time-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

.volunteer-time-table th.sortable:hover {
    background: var(--bg-tertiary);
}

.volunteer-time-table th.sortable::after {
    content: '';
    margin-left: 6px;
}

.volunteer-time-table th.sort-asc::after {
    content: ' ▲';
    color: var(--accent-blue);
}

.volunteer-time-table th.sort-desc::after {
    content: ' ▼';
    color: var(--accent-blue);
}

/* Emergency Contacts Table */
.emergency-contacts-table th.col-name {
    min-width: 180px;
    text-align: left;
}

.emergency-contacts-table th.col-email {
    min-width: 200px;
}

.emergency-contacts-table th.col-emergency-contact {
    min-width: 150px;
}

.emergency-contacts-table th.col-emergency-phone {
    min-width: 130px;
}

.emergency-contacts-table th.col-last-updated {
    min-width: 110px;
}

.emergency-contacts-table td:first-child {
    text-align: left;
}

.emergency-contacts-table th.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
    white-space: nowrap;
}

.emergency-contacts-table th.sortable:hover {
    background: var(--bg-tertiary);
}

.emergency-contacts-table th.sortable::after {
    content: '';
    margin-left: 6px;
}

.emergency-contacts-table th.sort-asc::after {
    content: ' ▲';
    color: var(--accent-blue);
}

.emergency-contacts-table th.sort-desc::after {
    content: ' ▼';
    color: var(--accent-blue);
}

/* Admin RSVP Modal Styles */
.checkbox-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 10px;
    margin: 4px 0;
    background: var(--bg-secondary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-tertiary);
}

.checkbox-label input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    color: var(--text-primary);
    font-size: 14px;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-container input {
    width: 100%;
    padding: 5px 15px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 13px;
    height: 32px;
    box-sizing: border-box;
}

.search-container input::placeholder {
    color: var(--accent-blue);
    opacity: 0.7;
}

.search-container input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.confirmation-summary {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.confirmation-summary p {
    margin: 8px 0;
    color: var(--text-primary);
    font-size: 14px;
}

.confirmation-summary strong {
    color: var(--text-secondary);
    min-width: 100px;
    display: inline-block;
}

.parking-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.success-message {
    text-align: center;
    padding: 40px 20px;
}

.success-message svg {
    margin-bottom: 20px;
}

.success-message h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-message p {
    color: var(--text-secondary);
}

.rsvp-selection-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
    gap: 16px;
}

.rsvp-selection-card:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
    transform: translateX(4px);
}

.rsvp-card-main {
    flex: 1;
}

.rsvp-card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.rsvp-card-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.rsvp-card-info {
    font-size: 13px;
    color: var(--text-tertiary);
}

.rsvp-card-count {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rsvp-card-count .rsvp-count {
    font-size: 16px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
}

.rsvp-card-arrow {
    font-size: 24px;
    color: var(--accent-color);
    transition: transform 0.2s;
}

.rsvp-selection-card:hover .rsvp-card-arrow {
    transform: translateX(4px);
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.step-badge {
    background: var(--accent-color);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.step-title {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.step-event-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

.step-event-info h4 {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.step-event-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.back-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.back-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent-color);
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e5e7eb;
    font-weight: 600;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="date"],
.form-group input[type="time"],
.form-group input[type="email"],
.form-group input[type="url"],
.form-group input[type="datetime-local"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    height: 42px;
    box-sizing: border-box;
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-group input::placeholder {
    color: var(--text-secondary);
}

/* Style date/time picker icons to be white/light */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Dark theme for datetime picker popup */
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
}

.form-group input[type="datetime-local"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

.form-group input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
}

.form-group input[type="datetime-local"]::-webkit-datetime-edit-text {
    color: var(--text-secondary);
}

.form-group input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.form-group input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.form-group input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.form-group input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.form-group input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.form-group input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
    color: var(--text-primary);
}

/* Firefox datetime styling */
.form-group input[type="datetime-local"],
.form-group input[type="date"] {
    color-scheme: dark;
    accent-color: #0a84ff !important;
}

/* Force blue accent color for all date/time inputs */
input[type="datetime-local"],
input[type="date"],
input[type="time"] {
    accent-color: #0a84ff !important;
}

/* Make calendar/time icon blue */
.form-group input[type="date"]::-webkit-calendar-picker-indicator,
.form-group input[type="time"]::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    filter: brightness(0) saturate(100%) invert(50%) sepia(100%) saturate(3000%) hue-rotate(190deg) brightness(100%);
    opacity: 0.9;
    cursor: pointer;
}

.form-group input[type="date"]:hover::-webkit-calendar-picker-indicator,
.form-group input[type="time"]:hover::-webkit-calendar-picker-indicator,
.form-group input[type="datetime-local"]:hover::-webkit-calendar-picker-indicator {
    opacity: 1;
}

/* Time input specific styling */
.form-group input[type="time"] {
    color-scheme: dark;
    accent-color: #0a84ff !important;
}

.form-group input[type="time"]::-webkit-datetime-edit {
    color: var(--text-primary);
}

.form-group input[type="time"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-primary);
}

.form-group input[type="time"]::-webkit-datetime-edit-hour-field,
.form-group input[type="time"]::-webkit-datetime-edit-minute-field,
.form-group input[type="time"]::-webkit-datetime-edit-ampm-field {
    color: var(--text-primary);
}

/* Event Summary Report Styles */
.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

.event-dropdown-item:hover {
    background: var(--bg-tertiary);
}

.summary-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}

.summary-section h3 {
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
}

/* Print Styles for Event Summary PDF */
@media print {
    /* Hide everything by default */
    body * {
        visibility: hidden;
    }

    /* Show only the event summary report when printing */
    #report-event-summary.printing,
    #report-event-summary.printing * {
        visibility: visible;
    }

    #report-event-summary.printing {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        background: white;
        color: black;
    }

    /* Hide the download button in print */
    #download-event-summary-pdf {
        display: none !important;
    }

    /* Hide the event selector in print */
    #report-event-summary.printing .event-summary-selector {
        display: none !important;
    }

    /* Adjust colors for print */
    #report-event-summary.printing .stat-card,
    #report-event-summary.printing .summary-section {
        background: white;
        border: 1px solid #ddd;
        color: black;
    }

    #report-event-summary.printing .stat-label {
        color: #666;
    }

    #report-event-summary.printing .stat-value,
    #report-event-summary.printing h2,
    #report-event-summary.printing h3 {
        color: black;
    }

    #report-event-summary.printing .subtitle {
        color: #666;
    }

    /* Table styles for print */
    #report-event-summary.printing .admin-table {
        border: 1px solid #ddd;
    }

    #report-event-summary.printing .admin-table th {
        background: #f5f5f5;
        color: black;
        border: 1px solid #ddd;
    }

    #report-event-summary.printing .admin-table td {
        color: black;
        border: 1px solid #ddd;
    }

    /* Ensure page breaks work well */
    #report-event-summary.printing .summary-section {
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
}

/* Volunteer Detail Modal Tabs */
.volunteer-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    overflow-y: visible;
    flex-shrink: 0;
}

.volunteer-tab {
    padding: 5px 15px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volunteer-tab:hover {
    background: rgba(10, 132, 255, 0.2);
    color: var(--accent-blue);
}

.volunteer-tab.active {
    background: rgba(10, 132, 255, 0.15);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    font-weight: 600;
}

/* Volunteer modal tab content display rules */
#volunteer-detail-modal .volunteer-tab-content {
    display: none !important;
}

#volunteer-detail-modal .volunteer-tab-content.active {
    display: block !important;
}

/* Volunteer List Item Hover */
.volunteer-list-item:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    border-radius: 24px;
}

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

input:checked + .toggle-slider {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}

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

.toggle-slider:hover {
    opacity: 0.9;
}

/* ========================================
   CARD-BASED CHECKIN UI STYLES
   ======================================== */

.checkin-header {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
    z-index: 50;
}

.checkin-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.checkin-summary {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.checkin-summary .checked {
    color: var(--accent-green);
}

.checkin-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.checkin-search-box {
    width: 100%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 8px;
}

.checkin-search-box:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.checkin-search-box::placeholder {
    color: var(--text-secondary);
}

.checkin-filter-bar {
    display: flex;
    gap: 8px;
}

.checkin-filter-select {
    flex: 1;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
}

.checkin-filter-select:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.checkin-list {
    padding: 12px 0;
    padding-bottom: 80px;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
}

.checkin-section-header {
    padding: 16px 16px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkin-person-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    margin: 0 12px 8px;
    overflow: hidden;
    display: flex;
    border: 1px solid var(--border-color);
}

.checkin-status-zone {
    flex: 0 0 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: white;
    user-select: none;
    transition: all 0.2s;
    text-align: center;
}

.checkin-status-zone:active {
    opacity: 0.8;
}

.checkin-status-complete {
    background: var(--accent-green);
}

.checkin-status-partial {
    background: var(--accent-orange);
}

.checkin-status-none {
    background: var(--accent-red);
}

.checkin-info-zone {
    flex: 1;
    padding: 12px;
    min-width: 0;
}

.checkin-person-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.checkin-person-details {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkin-note-text {
    font-size: 13px;
    color: var(--accent-blue);
    margin-top: 4px;
}

.checkin-guest-label {
    color: var(--accent-blue);
    font-weight: 500;
}

.checkin-note-zone {
    flex: 0 0 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    border-left: 1px solid var(--border-color);
    user-select: none;
    transition: all 0.2s;
}

.checkin-note-zone:active {
    background: var(--bg-tertiary);
}

.checkin-no-data {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

/* Checkin Modal Styles */
.checkin-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkin-modal.active {
    display: flex;
}

.checkin-modal-content {
    background: var(--bg-tertiary);
    border-radius: 16px;
    padding: 24px;
    max-width: 400px;
    width: 100%;
    animation: modalSlideUp 0.2s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.checkin-modal-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.checkin-modal-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 8px;
}

.checkin-modal-time {
    color: #6ba368;
    font-size: 14px;
    margin-bottom: 20px;
}

.checkin-note-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px;
    color: var(--text-primary);
    font-size: 15px;
    margin-bottom: 20px;
    resize: vertical;
    font-family: inherit;
}

.checkin-note-input::placeholder {
    color: var(--text-secondary);
}

.checkin-ticket-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.checkin-ticket-btn {
    aspect-ratio: 1;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.checkin-ticket-btn.checked {
    background: #6ba368;
    border-color: #6ba368;
    color: white;
}

.checkin-ticket-btn:active {
    transform: scale(0.95);
}

.checkin-modal-buttons {
    display: flex;
    gap: 12px;
}

.checkin-modal-btn {
    flex: 1;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.checkin-modal-btn:active {
    transform: scale(0.98);
}

.checkin-modal-btn.cancel {
    background: var(--border-color);
    color: var(--text-primary);
}

.checkin-modal-btn.confirm {
    background: var(--accent-blue);
    color: white;
}

/* Desktop Navigation - Show on larger screens */
@media (min-width: 901px) {
    .tab-nav {
        display: flex !important;
    }

    /* On desktop, hide Events/Volunteers/Reports from mobile menu */
    .mobile-menu-nav .mobile-tab-btn[data-tab="events"],
    .mobile-menu-nav .mobile-tab-btn[data-tab="volunteers"],
    .mobile-menu-nav .mobile-tab-btn[data-tab="reports"] {
        display: none !important;
    }
}

/* Mobile Menu Button - Always visible, pinned to right */
.mobile-menu-btn {
    display: flex;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: var(--bg-secondary);
    z-index: 1000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    pointer-events: none;
}

.mobile-menu-drawer.active {
    right: 0;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-header span {
    font-weight: 600;
    color: var(--text-primary);
}

.mobile-menu-close {
    background: none !important;
    border: none !important;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
}

#mobile-menu-drawer .mobile-menu-nav,
.mobile-menu-drawer .mobile-menu-nav,
.mobile-menu-drawer nav,
nav.mobile-menu-nav {
    flex: 1 !important;
    padding: 20px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    pointer-events: auto !important;
}

#mobile-menu-drawer .mobile-tab-btn,
.mobile-menu-drawer .mobile-tab-btn,
button.mobile-tab-btn,
a.mobile-tab-btn {
    width: 100% !important;
    padding: 16px 20px !important;
    background: transparent !important;
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
    border-right: none !important;
    border-radius: 0 !important;
    color: white !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    text-align: left !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
    border-left: 3px solid transparent !important;
    display: block !important;
    margin: 0 !important;
    box-shadow: none !important;
    flex: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1 !important;
    text-decoration: none !important;
}

#mobile-menu-drawer .mobile-tab-btn:hover,
.mobile-menu-drawer .mobile-tab-btn:hover,
button.mobile-tab-btn:hover,
a.mobile-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
}

#mobile-menu-drawer .mobile-tab-btn.active,
.mobile-menu-drawer .mobile-tab-btn.active,
button.mobile-tab-btn.active,
a.mobile-tab-btn.active {
    color: var(--bg-primary) !important;
    background: white !important;
    border-left-color: white !important;
    font-weight: 600 !important;
}

.mobile-menu-drawer .mobile-menu-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.mobile-menu-drawer .mobile-menu-footer .btn-secondary,
.mobile-menu-drawer .mobile-menu-footer #mobile-sign-out-btn {
    width: 100% !important;
    display: block !important;
    margin: 0 !important;
}

/* Mobile optimizations */
@media (max-width: 900px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .admin-container,
    #admin-container {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .admin-main {
        padding: 12px !important;
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    /* Hide desktop nav and actions on mobile */
    .admin-header .tab-nav,
    .tab-nav,
    nav.tab-nav {
        display: none !important;
        visibility: hidden !important;
    }

    .admin-header .header-actions,
    .header-actions,
    div.header-actions {
        display: none !important;
        visibility: hidden !important;
    }

    /* Adjust header for mobile */
    .admin-header {
        padding: 12px 16px !important;
        padding-top: max(12px, env(safe-area-inset-top)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 52px;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .admin-logo {
        max-height: 32px;
        flex-shrink: 0;
    }

    /* Fix manage tab and controls */
    #tab-manage {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        overflow-y: visible;
        box-sizing: border-box;
    }

    .tab-content {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .manage-controls {
        width: 100% !important;
        max-width: 100vw !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 100 !important;
    }

    .event-selector-dropdown {
        width: 100% !important;
        max-width: calc(100vw - 24px) !important;
        box-sizing: border-box !important;
        position: relative !important;
        z-index: 1000 !important;
        overflow: visible !important;
    }

    #manage-event-content,
    .checkin-header,
    .checkin-list {
        position: relative !important;
        z-index: 1 !important;
    }

    .search-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .events-search-box {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .events-search-box input {
        max-width: 100% !important;
        min-width: 0 !important;
    }

    /* Make search filters container wrap properly on mobile */
    .sticky-search-filters {
        flex-wrap: nowrap !important;
    }

    #manage-event-search {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }

    .event-dropdown,
    #manage-event-dropdown {
        left: 0 !important;
        right: 0 !important;
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        z-index: 1001 !important;
        pointer-events: auto !important;
        position: absolute !important;
    }

    .event-dropdown-item {
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    .no-data-message,
    #manage-no-event {
        position: relative !important;
        z-index: 1 !important;
    }

    /* Remove max-height constraint on mobile */
    .checkin-list {
        max-height: none;
        padding-bottom: 60px;
    }

    /* Adjust checkin header for mobile */
    .checkin-header {
        top: 0;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* Fix Events tab mobile issues */
    #tab-events .tab-header {
        margin-top: 0 !important;
        padding-top: 40px !important;
    }

    #tab-volunteers .tab-header {
        padding-top: 65px !important;
    }

    /* Reduce space below volunteer filters on mobile */
    #tab-volunteers .sticky-search-filters {
        margin-bottom: 8px;
        flex-wrap: wrap !important;
    }

    #tab-events .filter-buttons {
        flex-wrap: wrap;
    }

    #tab-volunteers .filter-buttons {
        flex-wrap: wrap;
    }

    #tab-events .events-search-box input {
        font-size: 16px !important;
        -webkit-appearance: none;
        appearance: none;
    }

    #tab-events .table-container {
        position: relative;
        z-index: 1;
        overflow-x: auto;
    }
}

/* Event Actions Dropdown */
.admin-table td.center-col {
    position: relative;
    overflow: visible;
}

.event-actions-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.event-actions-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 15px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    width: auto;
    min-width: 90px;
    white-space: nowrap;
    height: 32px;
}

.event-actions-btn:hover {
    background: var(--bg-secondary);
}

.event-actions-btn svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
}

.event-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 240px;
    z-index: 10000;
    display: none !important;
    max-height: 400px;
    overflow-y: auto;
    white-space: normal;
}

.event-actions-dropdown.active .event-actions-menu {
    display: block !important;
}

.event-actions-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
    text-align: left;
}

.event-actions-menu-item:last-child {
    border-bottom: none;
}

.event-actions-menu-item:hover:not(.disabled) {
    background: var(--bg-tertiary);
}

.event-actions-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.event-actions-menu-item.disabled:hover {
    background: transparent;
}

.event-actions-menu-item svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

.event-actions-menu-item span {
    flex: 1;
    white-space: nowrap;
}

/* Volunteer Actions Dropdown */
.volunteer-actions-dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.volunteer-actions-btn {
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 15px;
    color: var(--accent-blue);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    width: auto;
    min-width: 90px;
    white-space: nowrap;
    height: 32px;
}

.volunteer-actions-btn:hover {
    background: var(--bg-secondary);
}

.volunteer-actions-btn svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0;
}

.volunteer-actions-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    z-index: 10000;
    display: none !important;
    max-height: 400px;
    overflow-y: auto;
    white-space: normal;
}

.volunteer-actions-dropdown.active .volunteer-actions-menu {
    display: block !important;
}

.volunteer-actions-menu-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    white-space: nowrap;
    text-align: left;
}

.volunteer-actions-menu-item:last-child {
    border-bottom: none;
}

.volunteer-actions-menu-item:hover:not(.disabled) {
    background: var(--bg-tertiary);
}

.volunteer-actions-menu-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.volunteer-actions-menu-item.disabled:hover {
    background: transparent;
}

.volunteer-actions-menu-item svg {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    flex-shrink: 0;
}

.volunteer-actions-menu-item span {
    flex: 1;
    white-space: nowrap;
}

/* Team Leads Select Dropdown */
#team-leads {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    font-weight: 400 !important;
}

#team-leads option {
    color: #ffffff !important;
    background-color: #2d2d2d !important;
    padding: 8px !important;
    font-weight: 400 !important;
    min-height: 24px !important;
    line-height: 1.5 !important;
}

#team-leads option:hover {
    background-color: #3d3d3d !important;
}

#team-leads option:checked,
#team-leads option:checked:hover {
    background: #0a84ff !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}

/* Compact Header Design (Option 1) */
.compact-header {
    background: var(--bg-secondary);
    padding: 16px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compact-header-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.compact-event-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.compact-event-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.compact-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.compact-header-actions .download-csv-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .compact-header {
        padding: 14px 16px;
    }

    .compact-event-title {
        font-size: 16px;
    }

    .compact-event-date {
        font-size: 13px;
    }

    /* Reduce padding on mobile */
    .modal-sheet-content {
        padding: 12px;
    }

    .modal-sheet-wide {
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
    }

    /* Allow filter buttons to wrap on mobile */
    .filter-buttons {
        flex-wrap: wrap;
    }
}

/* Send Status Labels */
.status-sent {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-not-sent {
    background: rgba(149, 153, 158, 0.15);
    color: #95999e;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-sent:hover,
.status-not-sent:hover {
    opacity: 0.8;
}

/* Training Tab Styles */
#training-create-folder-btn:hover,
#training-create-page-btn:hover {
    background: rgba(10, 132, 255, 0.15) !important;
    border-color: var(--accent-blue) !important;
}

.training-sidebar .tree-folder,
.training-sidebar .tree-page {
    color: var(--text-primary);
}

.training-sidebar .tree-folder:hover {
    background: var(--bg-tertiary) !important;
}

.training-sidebar .tree-page:hover {
    background: var(--bg-tertiary) !important;
}

.training-sidebar .tree-page.active {
    background: rgba(10, 132, 255, 0.15) !important;
    color: var(--accent-blue) !important;
}

/* Media Gallery Selector Button */
.media-selector-button:hover {
    background: rgba(10, 132, 255, 0.15) !important;
    border-color: var(--accent-blue) !important;
}

.media-selector-button svg:first-child {
    flex-shrink: 0;
}

/* Training Editor Quill Styling */
#training-editor-view .ql-editor {
    color: var(--text-primary) !important;
    background: var(--bg-secondary);
    font-size: 15px;
    line-height: 1.6;
}

#training-editor-view .ql-editor p,
#training-editor-view .ql-editor h1,
#training-editor-view .ql-editor h2,
#training-editor-view .ql-editor h3,
#training-editor-view .ql-editor li {
    color: var(--text-primary) !important;
}

#training-editor-view .ql-snow .ql-stroke {
    stroke: var(--text-secondary) !important;
}

#training-editor-view .ql-snow .ql-fill {
    fill: var(--text-secondary) !important;
}

#training-editor-view .ql-toolbar {
    border-color: var(--border-color) !important;
    background: var(--bg-tertiary);
}

#training-editor-view .ql-toolbar .ql-picker-label {
    color: var(--text-primary) !important;
}

#training-editor-view .ql-toolbar .ql-picker-options {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

#training-editor-view .ql-toolbar .ql-picker-item {
    color: var(--text-primary) !important;
}

#training-editor-view .ql-container {
    border-color: var(--border-color) !important;
    background: var(--bg-secondary);
}

/* Training Preview Button */
#training-preview-btn {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#training-preview-btn:hover {
    background: rgba(10, 132, 255, 0.15);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Training Published Toggle Button */
#training-published-toggle {
    background: rgba(255, 159, 10, 0.15);
    color: #ff9f0a;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#training-published-toggle.published {
    background: rgba(48, 209, 88, 0.15);
    color: #30d158;
    border: 1px solid transparent;
}

#training-published-toggle:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

/* Training Checkbox Options - Button Style */
.training-checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--bg-tertiary);
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 32px;
    box-sizing: border-box;
}

.training-checkbox-option:hover {
    background: rgba(10, 132, 255, 0.08);
    border-color: rgba(10, 132, 255, 0.3);
}

.training-checkbox-option input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-blue);
    margin: 0;
    flex-shrink: 0;
}

.training-checkbox-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Training Tree Action Buttons */
.tree-folder-actions {
    display: none;
    gap: 4px;
}

.tree-folder:hover .tree-folder-actions {
    display: flex !important;
}

.tree-page-actions {
    display: none;
    gap: 4px;
}

.tree-page:hover .tree-page-actions {
    display: flex !important;
}

.tree-action-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.tree-action-btn:hover {
    background: var(--bg-tertiary);
    color: var(--accent-blue);
}
