/* Reduced Motion Support Added - 2025-07-23 */
/* Vendor Prefixes Added - 2025-07-23 */
/*
 * HVAC Trainer Dashboard Styles - Enhanced Version
 *
 * Styles specific to the trainer dashboard page.
 */

/* CSS Custom Properties / Variables */
:root {
    /* Spacing */
    --hvac-spacing-1: 0.25rem;
    --hvac-spacing-2: 0.5rem;
    --hvac-spacing-3: 0.75rem;
    --hvac-spacing-4: 1rem;
    --hvac-spacing-5: 1.5rem;
    --hvac-spacing-6: 2rem;
    --hvac-spacing-8: 3rem;
    --hvac-spacing-sm: 0.5rem;
    --hvac-spacing-md: 1rem;
    --hvac-spacing-lg: 1.5rem;
    --hvac-spacing-xl: 2rem;
    /* Border Radius */
    --hvac-radius-sm: 4px;
    --hvac-radius-md: 8px;
    --hvac-radius-lg: 12px;
    --hvac-radius-full: 9999px;
    --hvac-border-radius: 8px;
    /* Colors */
    --hvac-theme-primary: #0073aa;
    --hvac-theme-primary-dark: #005a87;
    --hvac-theme-text: #333333;
    --hvac-primary: #0073aa;
    --hvac-secondary: #666666;
    --hvac-text: #333333;
    --hvac-border: #dddddd;
    --hvac-border-light: #eeeeee;
    /* Shadows */
    --hvac-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --hvac-shadow-lg: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Dashboard Container */
.hvac-dashboard {
    padding: 1.5rem; /* IE fallback */
    padding: var(--hvac-spacing-lg);
    background-color: #f9f9f9;
    -webkit-border-radius: 4px;
    border-radius: 4px;
    border-radius: 4px; /* IE fallback */
    -webkit-border-radius: var(--hvac-border-radius);
}

/* Dashboard Mobile Padding Fixes */
@media screen and (max-width: 768px) {
    .hvac-dashboard {
        padding: 20px !important; /* Generous mobile padding */
        margin: 0 !important;
        border-radius: 0 !important; /* Remove border radius on mobile for full-width look */
        background-color: #f9f9f9;
    }
    
    /* Ensure dashboard content has proper spacing */
    .hvac-dashboard-content,
    .hvac-dashboard-stats,
    .hvac-dashboard-events {
        padding: 0 !important; /* Remove extra padding since container already has it */
        margin-bottom: 20px !important;
    }
}

@media screen and (max-width: 480px) {
    .hvac-dashboard {
        padding: 15px !important; /* Slightly less but still comfortable */
    }
}

@media screen and (max-width: 375px) {
    .hvac-dashboard {
        padding: 12px !important; /* Minimum comfortable padding */
    }
}

/* Header */
.hvac-dashboard-header {
    margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e0e0e0; /* IE fallback */
    border-bottom: 1px solid var(--hvac-border);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.hvac-dashboard-header h1 {
    margin: 0 0 0.5rem 0; /* IE fallback */
    margin: 0 0 var(--hvac-spacing-sm) 0;
    color: #333333; /* IE fallback */
    color: var(--hvac-text);
    font-size: 1.8rem;
    font-weight: 600;
}

.hvac-dashboard-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem; /* IE fallback */
    gap: var(--hvac-spacing-sm);
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}

.hvac-dashboard-nav a {
    margin: 0;
    min-width: 120px;
    text-align: center;
}

/* Stats Section */
.hvac-dashboard-stats {
    margin-bottom: 2rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-xl);
}

.hvac-dashboard-stats h2 {
    margin-top: 0;
    margin-bottom: 1rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-md);
    font-size: 1.4rem;
    color: #333333; /* IE fallback */
    color: var(--hvac-text);
    padding-bottom: 0.5rem; /* IE fallback */
    padding-bottom: var(--hvac-spacing-sm);
    border-bottom: 1px solid #f0f0f0; /* IE fallback */
    border-bottom: 1px solid var(--hvac-border-light);
}

/* Row layout for stats */
.hvac-stats-row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: -10px;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
}

.hvac-stat-col {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 160px;
    padding: 10px;
    margin-bottom: 0.5rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-sm);
}

.hvac-stat-card {
    border: 1px solid #e0e0e0; /* IE fallback */
    border: 1px solid var(--hvac-border);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-border-radius);
    padding: 1.5rem; /* IE fallback */
    padding: var(--hvac-spacing-lg);
    background: white;
    text-align: center;
    width: 100%;
    flex-grow: 1;
    height: 100%;
    -webkit-box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* IE fallback */
    -webkit-box-shadow: var(--hvac-shadow);
    box-shadow: var(--hvac-shadow);
    -webkit-transition: transform 0.2s, box-shadow 0.2s;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hvac-stat-card:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* IE fallback */
    -webkit-box-shadow: var(--hvac-shadow-lg);
    box-shadow: var(--hvac-shadow-lg);
}

.hvac-stat-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-sm);
    font-size: 1.1em;
    color: #54595f; /* IE fallback */
    color: var(--hvac-secondary);
    font-weight: 600;
}

.hvac-stat-card p {
    font-size: 2.2em;
    margin: 0.2em 0;
    font-weight: 700;
    line-height: 1.2;
    color: #0274be; /* IE fallback */
    color: var(--hvac-primary);
}

.hvac-stat-card small {
    display: block;
    margin-top: 0.5rem; /* IE fallback */
    margin-top: var(--hvac-spacing-sm);
    font-size: 0.85em;
    color: #757575; /* IE fallback */
    color: var(--hvac-text-light);
}

/* Events Section */
.hvac-dashboard-events {
    background: white;
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-border-radius);
    padding: 1.5rem; /* IE fallback */
    padding: var(--hvac-spacing-lg);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* IE fallback */
    box-shadow: var(--hvac-shadow);
    margin-bottom: 2rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-xl);
}

.hvac-dashboard-events h2 {
    margin-top: 0;
    margin-bottom: 1rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-md);
    font-size: 1.4rem;
    color: #333333; /* IE fallback */
    color: var(--hvac-text);
    padding-bottom: 0.5rem; /* IE fallback */
    padding-bottom: var(--hvac-spacing-sm);
    border-bottom: 1px solid #f0f0f0; /* IE fallback */
    border-bottom: 1px solid var(--hvac-border-light);
}

/* Event Filters */
.hvac-event-filters {
    margin-bottom: 1.5rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-lg);
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-md);
    background-color: #f0f0f1; /* IE fallback */
    background-color: var(--hvac-secondary-light);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-border-radius);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.5rem; /* IE fallback */
    gap: var(--hvac-spacing-sm);
}

.hvac-event-filters span {
    margin-right: 1rem; /* IE fallback */
    margin-right: var(--hvac-spacing-md);
    font-weight: 600;
    color: #3a3f44; /* IE fallback */
    color: var(--hvac-secondary-dark);
}

.hvac-filter {
    padding: 0.5rem 1rem !important;
    margin: 0 !important;
}

.hvac-filter-active {
    background-color: #0274be; /* IE fallback */
    background-color: var(--hvac-primary) !important;
    color: white !important;
}

/* Events Table */
.hvac-events-table-wrapper {
    overflow-x: auto;
    position: relative;
    min-height: 100px;
    border: 1px solid #e0e0e0; /* IE fallback */
    border: 1px solid var(--hvac-border);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-border-radius);
}

.events-table {
    width: 100%;
    border-collapse: collapse;
}

.events-table th {
    background-color: #f8f9fa;
    color: #3a3f44; /* IE fallback */
    color: var(--hvac-secondary-dark);
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-md);
    font-weight: 600;
    text-align: left;
    border-bottom: 2px solid #e0e0e0; /* IE fallback */
    border-bottom: 2px solid var(--hvac-border);
}

.events-table td {
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-md);
    border-bottom: 1px solid #f0f0f0; /* IE fallback */
    border-bottom: 1px solid var(--hvac-border-light);
    vertical-align: middle;
}

.events-table tbody tr:hover {
    background-color: #e6f3fb; /* IE fallback */
    background-color: var(--hvac-primary-light);
}

.events-table .column-actions {
    white-space: nowrap;
}

.events-table .column-actions a {
    margin-right: 0.5rem; /* IE fallback */
    margin-right: var(--hvac-spacing-sm);
    color: #0274be; /* IE fallback */
    color: var(--hvac-primary);
    text-decoration: none;
    font-weight: 500;
}

.events-table .column-actions a:hover {
    text-decoration: underline;
}

/* Status indicators */
.status-indicator {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    -webkit-border-radius: 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
    text-align: center;
}

.status-published {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-draft {
    background-color: #eceff1;
    color: #546e7a;
}

.status-pending {
    background-color: #fff3e0;
    color: #ef6c00;
}

/* Loading indicator */
.hvac-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    font-weight: bold;
    padding: 20px;
    z-index: 10;
    -webkit-animation: fadeIn 0.3s ease-in-out;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Error message */
.hvac-error {
    color: #d63638; /* IE fallback */
    color: var(--hvac-error);
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-md);
    border: 1px solid #ffb8bb;
    background-color: #ffebe9; /* IE fallback */
    background-color: var(--hvac-error-light);
    margin: 1rem; /* IE fallback */
    margin: var(--hvac-spacing-md) 0;
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-border-radius);
}

/* Responsive adjustments */

/* Reduced Motion Support Added - WCAG 2.1 Accessibility */
/* Respects user preference for reduced motion to prevent vestibular disorders */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions globally */
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }
    
    /* Remove specific transform animations */
    .hvac-animate-fade-in,
    .hvac-animate-scale-up,
    .hvac-animate-pulse,
    .hvac-animate-slide-in-right,
    .hvac-animate-slide-in-left,
    .hvac-animate-slide-in-bottom {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    /* Disable hover transformations */
    .hvac-card:hover,
    .hvac-stat-card:hover,
    .hvac-event-stat-card:hover,
    .hvac-button:hover,
    .hvac-email-submit:hover {
        transform: none !important;
        animation: none !important;
    }
    
    /* Keep essential visual feedback but remove motion */
    .hvac-card:hover,
    .hvac-stat-card:hover,
    .hvac-event-stat-card:hover {
        border-color: var(--hvac-primary, #0274be) !important;
        box-shadow: 0 0 0 2px rgba(2, 116, 190, 0.2) !important;
    }
    
    /* Disable loading spinner animation but keep visibility */
    .hvac-loading::after {
        animation: none !important;
        border-radius: 50% !important;
        border: 2px solid rgba(0, 0, 0, 0.2) !important;
        border-top-color: #333 !important;
    }
    
    /* Disable focus pulse animation */
    .hvac-button:focus,
    .hvac-email-submit:focus,
    .hvac-content button[type="submit"]:focus {
        animation: none !important;
    }
    
    /* Ensure smooth scrolling is disabled */
    html {
        scroll-behavior: auto !important;
    }
    
    /* Disable CSS Grid/Flexbox animations if any */
    .hvac-dashboard-stats .hvac-stat-card:nth-child(n),
    .hvac-event-summary-stats .hvac-event-stat-card:nth-child(n) {
        animation: none !important;
        opacity: 1 !important;
    }
}

/* Provide alternative visual feedback for reduced motion users */
@media (prefers-reduced-motion: reduce) {
    /* Enhanced border feedback instead of transform */
    .hvac-content button:hover,
    .hvac-content input[type="submit"]:hover,
    .hvac-content a:hover {
        outline: 2px solid var(--hvac-primary, #0274be) !important;
        outline-offset: 2px !important;
    }
    
    /* Enhanced color changes for interactive elements */
    .hvac-attendee-item:hover {
        background-color: var(--hvac-primary-light, #e6f3fb) !important;
        border-left: 4px solid var(--hvac-primary, #0274be) !important;
    }
    
    /* Static loading indicator */
    .hvac-loading {
        opacity: 0.7 !important;
    }
    
    .hvac-loading::after {
        content: "Loading..." !important;
        display: inline-block !important;
        font-size: 12px !important;
        color: #666 !important;
        border: none !important;
        background: none !important;
        border-radius: 0 !important;
        width: auto !important;
        height: auto !important;
        position: static !important;
        margin-left: 8px !important;
    }
}

@media (max-width: 768px) {
    .hvac-dashboard-header {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    
    .hvac-dashboard-nav {
        margin-top: 1rem; /* IE fallback */
        margin-top: var(--hvac-spacing-md);
        width: 100%;
    }
    
    .hvac-dashboard-nav a {
        -webkit-box-flex: 1;
        -ms-flex: 1;
        flex: 1;
        min-width: unset;
    }
    
    .hvac-stat-col {
        min-width: 140px;
        flex-basis: calc(50% - 20px);
    }
    
    .hvac-event-filters {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        -webkit-box-align: start;
        -ms-flex-align: start;
        align-items: flex-start;
    }
    
    .hvac-event-filters span {
        margin-bottom: 0.5rem; /* IE fallback */
        margin-bottom: var(--hvac-spacing-sm);
    }
    
    .hvac-filter {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hvac-stat-col {
        flex-basis: 100%;
    }
}

/* ===================================
   Master Dashboard Specific Styles
   =================================== */

/* Dashboard Sections */
.dashboard-section {
    background: #fff;
    border-radius: 8px; /* IE fallback */
    -webkit-border-radius: var(--hvac-radius-md);
    border-radius: var(--hvac-radius-md);
    padding: 2rem; /* IE fallback */
    padding: var(--hvac-spacing-6);
    margin-bottom: 2rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-6);
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333333; /* IE fallback */
    color: var(--hvac-theme-text);
    margin-bottom: 1rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-4);
    padding-bottom: 0.75rem; /* IE fallback */
    padding-bottom: var(--hvac-spacing-3);
    border-bottom: 2px solid #e5e7eb;
}

/* Events Filters */
.events-filters {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 0.75rem; /* IE fallback */
    gap: var(--hvac-spacing-3);
    -webkit-box-align: end;
    -ms-flex-align: end;
    align-items: flex-end;
    margin-bottom: 1rem; /* IE fallback */
    margin-bottom: var(--hvac-spacing-4);
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-4);
    background: #f9fafb;
    border-radius: 8px; /* IE fallback */
    border-radius: var(--hvac-radius-md);
}

.filter-group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 0.25rem; /* IE fallback */
    gap: var(--hvac-spacing-1);
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #333333; /* IE fallback */
    color: var(--hvac-theme-text);
}

.filter-group input,
.filter-group select {
    padding: 0.5rem; /* IE fallback */
    padding: var(--hvac-spacing-2) var(--hvac-spacing-3);
    border: 1px solid #d1d5db;
    border-radius: 4px; /* IE fallback */
    -webkit-border-radius: var(--hvac-radius-sm);
    border-radius: var(--hvac-radius-sm);
    font-size: 0.875rem;
    min-width: 150px;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #0073aa; /* IE fallback */
    border-color: var(--hvac-theme-primary);
    -webkit-box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* Trainers Table */
.trainers-table-container {
    overflow-x: auto;
    margin-top: 1rem; /* IE fallback */
    margin-top: var(--hvac-spacing-4);
}

.trainers-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
}

.trainers-table thead {
    background: #f9fafb;
}

.trainers-table th {
    padding: 0.75rem; /* IE fallback */
    padding: var(--hvac-spacing-3) var(--hvac-spacing-4);
    text-align: left;
    font-weight: 600;
    color: #333333; /* IE fallback */
    color: var(--hvac-theme-text);
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.trainers-table td {
    padding: 0.75rem; /* IE fallback */
    padding: var(--hvac-spacing-3) var(--hvac-spacing-4);
    border-bottom: 1px solid #f3f4f6;
}

.trainers-table tbody tr:hover {
    background: #f9fafb;
}

.trainers-table .trainer-name {
    font-weight: 500;
}

.trainers-table .number {
    text-align: center;
}

.trainers-table .revenue {
    text-align: right;
    font-weight: 500;
    color: #059669;
}

/* Events Table Container */
.events-table-container {
    margin-top: 1rem; /* IE fallback */
    margin-top: var(--hvac-spacing-4);
}

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.25rem; /* IE fallback */
    padding: var(--hvac-spacing-1) var(--hvac-spacing-2);
    -webkit-border-radius: var(--hvac-radius-full);
    border-radius: var(--hvac-radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.status-publish {
    background: #dcfce7;
    color: #166534;
}

.status-badge.status-future {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.status-draft {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.status-private {
    background: #fce7f3;
    color: #9f1239;
}

/* Pagination */
.pagination-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-top: 2rem; /* IE fallback */
    margin-top: var(--hvac-spacing-6);
    padding-top: 1rem; /* IE fallback */
    padding-top: var(--hvac-spacing-4);
    border-top: 1px solid #e5e7eb;
}

.pagination-info {
    color: #333333; /* IE fallback */
    color: var(--hvac-theme-text);
    font-size: 0.875rem;
}

.pagination-controls {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 0.5rem; /* IE fallback */
    gap: var(--hvac-spacing-2);
}

.pagination-btn {
    padding: 0.5rem; /* IE fallback */
    padding: var(--hvac-spacing-2) var(--hvac-spacing-3);
    border: 1px solid #d1d5db;
    background: #fff;
    color: #333333; /* IE fallback */
    color: var(--hvac-theme-text);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-radius-sm);
    font-size: 0.875rem;
    cursor: pointer;
    -webkit-transition: all 0.2s;
    transition: all 0.2s;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #0073aa; /* IE fallback */
    border-color: var(--hvac-theme-primary);
}

.pagination-btn.active {
    background: #0073aa; /* IE fallback */
    background: var(--hvac-theme-primary);
    color: #fff;
    border-color: #0073aa; /* IE fallback */
    border-color: var(--hvac-theme-primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading States */
.loading-placeholder {
    text-align: center;
    padding: 3rem; /* IE fallback */
    padding: var(--hvac-spacing-8);
    color: #6b7280;
    font-size: 1rem;
}

.loading-placeholder::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 0.5rem; /* IE fallback */
    margin-right: var(--hvac-spacing-2);
    border: 2px solid #e5e7eb;
    border-top-color: #0073aa; /* IE fallback */
    border-top-color: var(--hvac-theme-primary);
    -webkit-border-radius: 50%;
    border-radius: 50%;
    -webkit-animation: hvac-spin 1s linear infinite;
    animation: hvac-spin 1s linear infinite;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem; /* IE fallback */
    padding: var(--hvac-spacing-2) var(--hvac-spacing-4);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #0073aa; /* IE fallback */
    background: var(--hvac-theme-primary);
    color: #fff;
}

.btn-primary:hover {
    background: #005a87; /* IE fallback */
    background: var(--hvac-theme-primary-dark);
}

.btn-secondary {
    background: #6b7280;
    color: #fff;
}

.btn-secondary:hover {
    background: #4b5563;
}

.btn-small {
    padding: 0.25rem; /* IE fallback */
    padding: var(--hvac-spacing-1) var(--hvac-spacing-2);
    font-size: 0.75rem;
}

/* No Data Message */
.no-data-message {
    text-align: center;
    padding: 3rem; /* IE fallback */
    padding: var(--hvac-spacing-8);
    color: #6b7280;
}

.no-data-message p {
    margin: 0;
    font-size: 1rem;
}

/* Error Message */
.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
    padding: 1rem; /* IE fallback */
    padding: var(--hvac-spacing-4);
    border-radius: 4px; /* IE fallback */
    border-radius: var(--hvac-radius-sm);
    text-align: center;
}

/* Responsive Design for Master Dashboard */
@media (max-width: 768px) {
    .events-filters {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }
    
    .pagination-container {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        gap: 0.75rem; /* IE fallback */
        gap: var(--hvac-spacing-3);
        text-align: center;
    }
    
    .trainers-table {
        font-size: 0.875rem;
    }
    
    .trainers-table th,
    .trainers-table td {
        padding: 0.5rem; /* IE fallback */
        padding: var(--hvac-spacing-2);
    }
}

/* Focus Management Styles - WCAG 2.1 Compliance */
/* Added for keyboard accessibility and screen reader support */

/* Button Focus Styles */
.hvac-button:focus,
.hvac-content .button:focus,
.hvac-content button:focus,
.hvac-content input[type="submit"]:focus,
.hvac-email-submit:focus,
.hvac-filter-submit:focus,
.hvac-certificate-actions button:focus,
.hvac-certificate-actions a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    -webkit-box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
    border-radius: 4px;
}

/* Input Focus Styles */
.hvac-form-input:focus,
.hvac-content input[type="text"]:focus,
.hvac-content input[type="email"]:focus,
.hvac-content input[type="password"]:focus,
.hvac-content input[type="url"]:focus,
.hvac-content textarea:focus,
.hvac-content select:focus,
.hvac-email-form-row input:focus,
.hvac-email-form-row textarea:focus,
.hvac-filter-group input:focus,
.hvac-filter-group select:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    border-color: #005fcc;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* Link Focus Styles */
.hvac-content a:focus,
.hvac-event-link:focus,
.hvac-certificate-link:focus,
.hvac-attendee-profile-icon:focus,
.hvac-dashboard-nav a:focus,
.hvac-email-navigation a:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    text-decoration: underline;
    background-color: rgba(0, 95, 204, 0.1);
    -webkit-border-radius: 2px;
    border-radius: 2px;
}

/* Interactive Element Focus Styles */
.hvac-attendee-checkbox:focus,
.hvac-select-all-container input[type="checkbox"]:focus,
.hvac-modal-close:focus,
.hvac-certificate-table tr:focus {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.2);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .hvac-content *:focus {
        outline: 3px solid #000000;
        outline-offset: 2px;
        background-color: #ffff00;
        color: #000000;
    }
}

/* Focus-visible polyfill support */
/* Reset focus for mouse users while preserving keyboard accessibility */
.js-focus-visible:focus:not(.focus-visible) {
    outline: none;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/* Ensure focus is visible for keyboard users */
.js-focus-visible .focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: 2px;
}

/* Feature Detection Support */
@supports not (display: flex) {
    .hvac-content [class*="flex"] {
        display: table-cell;
        vertical-align: middle;
    }
}

@supports not (display: grid) {
    .hvac-content [class*="grid"] {
        display: block;
        overflow: hidden;
    }
    
    .hvac-content [class*="grid"] > * {
        float: left;
        width: 50%;
    }
}

/* ==========================================================================
   Access Denied Styles
   ========================================================================== */

/* Access denied message styles */
.hvac-access-denied {
    max-width: 600px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.hvac-access-denied h1 {
    color: #d63638;
    margin-bottom: 20px;
}

.hvac-access-denied p {
    margin-bottom: 15px;
    color: #666;
    line-height: 1.6;
}

.hvac-access-denied .button {
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    margin-top: 20px;
}

.hvac-access-denied .button:hover {
    background: #005a87;
    color: white;
}

/* ==========================================================================
   Table Controls and Filters (moved from inline)
   ========================================================================== */

/* Table controls spacing */
.hvac-table-controls {
    margin: 20px 0 25px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

/* ==========================================================================
   Event Edit Form Fixes
   ========================================================================== */

/* Ensure event form fields have proper styling */
.tribe-community-events-form .hvac-fixed-field {
    border: 2px solid #4CAF50 !important;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3) !important;
}

.tribe-community-events-form .hvac-fixed-field:focus {
    border-color: #45a049 !important;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5) !important;
}

/* Fix notification styling */
.hvac-fix-notification {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hvac-fix-notification .hvac-fix-icon {
    font-weight: bold;
    font-size: 16px;
}

/* Improve event form layout */
.hvac-event-manage-wrapper .tribe-community-events-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.hvac-event-manage-wrapper .tribe-community-events-form .tribe-community-events-form-title input,
.hvac-event-manage-wrapper .tribe-community-events-form input[name="post_title"] {
    font-size: 18px;
    font-weight: 600;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    width: 100%;
    transition: border-color 0.2s ease;
}

.hvac-event-manage-wrapper .tribe-community-events-form .tribe-community-events-form-title input:focus,
.hvac-event-manage-wrapper .tribe-community-events-form input[name="post_title"]:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Style the description field */
.hvac-event-manage-wrapper .tribe-community-events-form .tribe-community-events-form-content textarea,
.hvac-event-manage-wrapper .tribe-community-events-form textarea[name="post_content"],
.hvac-event-manage-wrapper .tribe-community-events-form .wp-editor-area {
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    padding: 12px;
    transition: border-color 0.2s ease;
}

.hvac-event-manage-wrapper .tribe-community-events-form .tribe-community-events-form-content textarea:focus,
.hvac-event-manage-wrapper .tribe-community-events-form textarea[name="post_content"]:focus,
.hvac-event-manage-wrapper .tribe-community-events-form .wp-editor-area:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}