/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header */
.app-header {
    background: linear-gradient(135deg, #c41e3a 0%, #a01729 100%);
    color: white;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-indicator {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.status-indicator.online {
    color: #4caf50;
}

.status-indicator.offline {
    color: #ff9800;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }
}

/* Screen Management */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Main Screen with RedCaucus Background */
#main-screen {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(
            135deg,
            rgba(10, 10, 10, 0.85) 0%,
            rgba(30, 10, 15, 0.8) 50%,
            rgba(10, 10, 10, 0.85) 100%
        ),
        url('media/RedCaucus20.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#main-screen .container {
    position: relative;
    z-index: 1;
}

/* Adjust card styling for dark background */
#main-screen .card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

#main-screen .stats-card {
    background: rgba(255, 255, 255, 0.92);
}

/* Cards */
.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.card h3 {
    margin-bottom: 1rem;
    color: #c41e3a;
    font-size: 1.2rem;
}

/* Reduce spacing on mobile */
@media (max-width: 768px) {
    .card {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        border-radius: 6px;
    }
    
    .card h3 {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }
    
    #results-section {
        margin-top: 0.5rem;
    }
    
    #results-section .card {
        padding: 0.5rem;
    }
}

/* Form Elements */
.input-field {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    transition: border-color 0.3s;
}

.input-field:focus {
    outline: none;
    border-color: #c41e3a;
}

@media (max-width: 768px) {
    .input-field {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

@media (max-width: 768px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
    }
}

.btn-primary {
    background: #c41e3a;
    color: white;
}

.btn-primary:hover {
    background: #a01729;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.3);
}

.btn-secondary {
    background: #666;
    color: white;
    margin-bottom: 0.5rem;
}

.btn-secondary:hover {
    background: #555;
}

.btn-success {
    background: #4caf50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
}

.btn-danger {
    background: #f44336;
    color: white;
}

.btn-danger:hover {
    background: #da190b;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.checkbox-group label:hover {
    border-color: #c41e3a;
    background: #fff5f7;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

/* Progress Bar */
.progress-bar {
    margin-top: 1rem;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    height: 40px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c41e3a, #a01729);
    transition: width 0.3s;
    width: 0%;
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 600;
    color: #333;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #c41e3a;
    color: white;
    border-color: #c41e3a;
}

@media (max-width: 768px) {
    .search-tabs {
        gap: 0.25rem;
        margin-bottom: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 0.25rem;
        font-size: 0.85rem;
    }
}

.search-panel {
    display: none;
}

.search-panel.active {
    display: block;
}

/* Results */
.voter-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.voter-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* Card colors based on party and location - WITH GRADIENTS & SUBTLE BORDERS */
.voter-card.credentialed {
    border-color: rgba(33, 150, 243, 0.6); /* Subtle blue */
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

.voter-card.correct-location {
    border-color: rgba(76, 175, 80, 0.6); /* Subtle green */
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.15);
}

.voter-card.wrong-location {
    border-color: rgba(255, 152, 0, 0.6); /* Subtle orange */
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.voter-card.unaffiliated {
    border-color: rgba(255, 152, 0, 0.6); /* Subtle orange */
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.15);
}

.voter-card.other-party {
    border-color: rgba(244, 67, 54, 0.6); /* Subtle red */
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-width: 1px;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

/* Legacy classes for backwards compatibility */
.voter-card.correct-precinct {
    border-color: rgba(76, 175, 80, 0.6);
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-width: 1px;
}

.voter-card.wrong-precinct {
    border-color: rgba(255, 152, 0, 0.6);
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-width: 1px;
}

.voter-card.unaffiliated:hover {
    border-color: #ff9800;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
}

/* Voter card header - name on left, party badge on right */
.voter-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

/* Voter name - EXTRA BOLD */
.voter-name-bold {
    font-size: 1.2rem;
    font-weight: 800; /* Extra bold */
    text-transform: uppercase;
    flex: 1;
}

/* Party badge - Oval shape on right */
.party-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px; /* Oval */
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.party-badge.republican {
    background: #4caf50; /* Green */
    color: white;
}

.party-badge.unaffiliated {
    background: #ff9800; /* Orange */
    color: white;
}

.party-badge.other {
    background: #f44336; /* Red */
    color: white;
}

.party-badge.credentialed {
    background: #2196f3; /* Blue */
    color: white;
}

/* Age row with location badge on right */
.voter-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

/* Location status badge */
.location-status-badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.location-status-badge.correct {
    background: #4caf50; /* Green */
    color: white;
}

.location-status-badge.wrong {
    background: #ff9800; /* Orange */
    color: white;
}

.location-status-badge.credentialed-time {
    background: #2196f3; /* Blue */
    color: white;
}

/* Each info line (Address, Precinct, Location) */
.voter-info-line {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.25rem;
}

/* All cards show full info - no collapsing */

/* Unaffiliated voter warning modal */
.unaffiliated-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

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

.unaffiliated-modal-content {
    background: #fffde7;
    border: 4px solid #ffc107;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.unaffiliated-modal-content h2 {
    color: #f57c00;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.unaffiliated-modal-content p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.unaffiliated-modal-content .btn-close-unaffiliated {
    background: #ffc107;
    color: #333;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.unaffiliated-modal-content .btn-close-unaffiliated:hover {
    background: #ffb300;
}

/* Other party voter warning modal (red) */
.other-party-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.other-party-modal.active {
    display: flex;
}

.other-party-modal-content {
    background: #ffebee;
    border: 4px solid #f44336;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.other-party-modal-content h2 {
    color: #c62828;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 700;
}

.other-party-modal-content p {
    font-size: 1.25rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.other-party-modal-content .btn-close-other-party {
    background: #f44336;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.other-party-modal-content .btn-close-other-party:hover {
    background: #d32f2f;
}

.badge-unaffiliated {
    background: #ffc107;
    color: #333;
}

/* Party badges */
.badge-party-republican {
    background: #4caf50;
    color: white;
}

.badge-party-unaffiliated {
    background: #ffc107;
    color: #333;
}

.badge-party-other {
    background: #f44336;
    color: white;
}

.voter-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.voter-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
}

.voter-location {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
}

.location-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-correct {
    background: #4caf50;
    color: white;
}

.badge-wrong {
    background: #ff9800;
    color: white;
}

.badge-credentialed {
    background: #2196f3;
    color: white;
}

/* Stats Card - Ultra Compact styling for mobile */
.stats-card {
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.4rem;
}

.stats-card h3 {
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 600px; /* Prevent elongation */
    margin: 0 auto; /* Center the grid */
}

.stat-card {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 8px;
    transition: all 0.2s;
    position: relative;
    min-width: 0; /* Prevent overflow */
    aspect-ratio: 1 / 1; /* Make cards square, not elongated */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.stat-card.clickable {
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.2);
    /* Remove any pointer-events blocking */
    pointer-events: auto;
    /* Improve touch response */
    user-select: none;
    -webkit-user-select: none;
}

.stat-card.clickable:hover,
.stat-card.clickable:active {
    background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card.clickable::after {
    content: '👆';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 0.6rem;
    opacity: 0.5;
    /* Ensure icon doesn't block clicks */
    pointer-events: none;
}

.stat-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: #c41e3a;
    margin-bottom: 0.05rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.6rem;
    color: #666;
    font-weight: 500;
    line-height: 1.1;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    animation: fadeIn 0.3s;
    /* Ensure modal is above everything on mobile */
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
}

.modal.active {
    display: block !important; /* Force display on mobile */
}

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

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 1.25rem;
    border-radius: 8px;
    width: 90%;
    max-width: 900px; /* Increased from 400px for wider tables */
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    /* Improve mobile scrolling */
    -webkit-overflow-scrolling: touch;
    /* Ensure content is visible on mobile */
    position: relative;
}

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

.close {
    color: #aaa;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    /* Improve mobile tap target - Apple guidelines: 44x44px minimum */
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Remove button default styles */
    background: transparent;
    border: none;
    /* Touch optimization */
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(196, 30, 58, 0.3);
    user-select: none;
    -webkit-user-select: none;
    /* Visual feedback on tap */
    transition: all 0.2s;
    border-radius: 4px;
    margin: -0.5rem -0.5rem 0 0;
}

.close:hover,
.close:active {
    color: #c41e3a;
    background: rgba(196, 30, 58, 0.1);
    transform: scale(1.1);
}

/* Mobile-specific modal adjustments */
@media (max-width: 768px) {
    .modal {
        /* Ensure modal is scrollable on mobile */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto 2% auto;
        max-height: 85vh;
        padding: 0.75rem;
        /* Ensure visible on mobile */
        display: block;
        position: relative;
    }
    
    .close {
        font-size: 2.5rem;
        padding: 0.5rem;
        min-width: 50px;
        min-height: 50px;
        /* Ensure close button is always on top */
        position: relative;
        z-index: 100;
    }
    
    /* Make modal title smaller on mobile */
    .modal-content h2 {
        font-size: 1.2rem;
        margin-right: 3rem;
        padding-right: 0.5rem;
    }
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Queue Items */
.queue-item {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.queue-item.pending {
    border-left: 4px solid #ff9800;
}

.queue-item.uploaded {
    border-left: 4px solid #4caf50;
    opacity: 0.6;
}

/* Responsive */
@media (max-width: 768px) {
    .app-header h1 {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .action-buttons {
        grid-template-columns: 1fr;
    }
}

/* Utility Classes */
.text-success {
    color: #4caf50;
}

.text-danger {
    color: #f44336;
}

.text-warning {
    color: #ff9800;
}

.text-info {
    color: #2196f3;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1rem;
}

/* Hamburger Menu - RedCaucus Style */
.hamburger-menu {
    position: relative;
    margin-left: 1rem;
}

.hamburger-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 22px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn:hover .hamburger-line {
    background: #ff6b6b;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 240px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2a1a1f 100%);
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 68, 68, 0.2);
    overflow: hidden;
    z-index: 1000;
}

.menu-dropdown.active {
    display: block;
    animation: menuSlideDown 0.25s ease;
}

@keyframes menuSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Menu Section Headers */
.menu-section-header {
    padding: 0.6rem 1rem 0.4rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 68, 68, 0.7);
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

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

.menu-item:hover {
    background: rgba(255, 68, 68, 0.15);
    color: #fff;
    padding-left: 1.2rem;
}

.menu-item:active {
    background: rgba(255, 68, 68, 0.25);
}

.menu-item .menu-icon {
    margin-right: 0.75rem;
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
}

/* Highlighted menu item (Record Results) */
.menu-item.menu-item-highlight {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.2) 0%, rgba(196, 30, 58, 0.2) 100%);
    color: #ff6b6b;
    font-weight: 600;
    border-left: 3px solid #ff4444;
}

.menu-item.menu-item-highlight:hover {
    background: linear-gradient(135deg, rgba(255, 68, 68, 0.3) 0%, rgba(196, 30, 58, 0.3) 100%);
    color: #fff;
}

/* Danger menu item (Logout) */
.menu-item.menu-item-danger {
    color: rgba(255, 100, 100, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.25rem;
}

.menu-item.menu-item-danger:hover {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
}

.menu-item.loading {
    opacity: 0.5;
    pointer-events: none;
}

.menu-item.loading .menu-icon {
    animation: spin 1s linear infinite;
}

/* Disabled/Coming Soon items */
.menu-item.menu-item-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.menu-item.menu-item-disabled::after {
    content: 'Soon';
    margin-left: auto;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Toast notification animations */
@keyframes slideUpToast {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

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

/* Republican Credentials Popup Styles */
.voter-detail-header {
    text-align: center;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e8e8e8;
}

.voter-detail-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.15rem;
    line-height: 1.2;
}

.voter-detail-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    color: #666;
    font-size: 0.85rem;
}

.voter-detail-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.5rem;
}

.voter-detail-section-title {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #888;
    margin-bottom: 0.3rem;
}

.voter-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem 1rem;
}

.voter-detail-item {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.voter-detail-label {
    font-size: 0.7rem;
    color: #888;
    font-weight: 500;
}

.voter-detail-value {
    font-size: 0.9rem;
    color: #333;
    font-weight: 600;
}

.voter-detail-full {
    grid-column: 1 / -1;
}

.credential-action-area {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
    margin-bottom: 0.75rem;
}

.btn-credential {
    width: 100%;
    padding: 1.25rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-credential:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn-credential:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.btn-update-address {
    width: 100%;
    padding: 0.5rem 0.75rem;
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-update-address:hover {
    background: #eee;
    border-color: #ccc;
}

.status-badge-large {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.status-badge-credentialed {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1565c0;
    border: 1px solid #90caf9;
}

.status-badge-wrong-location {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #e65100;
    border: 1px solid #ffb74d;
}

.wrong-location-redirect {
    background: #fff8e1;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.wrong-location-redirect strong {
    display: inline;
    color: #f57c00;
    font-size: 0.8rem;
    margin-right: 0.3rem;
}

.wrong-location-redirect .redirect-location {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.credentialed-timestamp {
    text-align: center;
    color: #666;
    font-size: 0.75rem;
    margin-top: -0.3rem;
    margin-bottom: 0.5rem;
}

.alert-cannot-credential {
    background: #ffebee;
    border: 1px solid #ef9a9a;
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    color: #c62828;
    font-weight: 600;
    font-size: 0.85rem;
}

@media (max-width: 480px) {
    .voter-detail-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* QR Scanner Modal */
.qr-scanner-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.qr-scanner-modal.active {
    display: flex;
}

.qr-scanner-modal-content {
    background: #1a1a1a;
    border-radius: 16px;
    padding: 1.5rem;
    width: 95%;
    max-width: 500px;
    text-align: center;
}

.qr-scanner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.qr-scanner-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.qr-close-btn {
    background: #666;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-close-btn:hover {
    background: #888;
}

.qr-reader {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.qr-instructions {
    color: #aaa;
    margin-top: 1rem;
    font-size: 1rem;
}

/* FastPass Success Modal */
.fastpass-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    z-index: 4000;
    align-items: center;
    justify-content: center;
    animation: fastpassFadeIn 0.3s ease;
}

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

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

.fastpass-modal-content {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

.fastpass-checkmark {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    color: #2e7d32;
    font-size: 80px;
    line-height: 120px;
    margin: 0 auto 2rem;
    animation: checkmarkPop 0.5s ease;
}

@keyframes checkmarkPop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.fastpass-modal-content h1 {
    color: white;
    font-size: 2rem;
    margin: 0 0 0.5rem;
    font-weight: 400;
}

.fastpass-modal-content h2 {
    color: white;
    font-size: 2.5rem;
    margin: 0 0 2rem;
    font-weight: 700;
}

.fastpass-room-container {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.fastpass-room-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
}

.fastpass-room {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}

.fastpass-ok-btn {
    background: white;
    color: #2e7d32;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 250px;
}

.fastpass-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fastpass-ok-btn:active {
    transform: translateY(0);
}

/* FastPass Error Modal */
.fastpass-error-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}

.fastpass-error-modal.active {
    display: flex;
}

.fastpass-error-modal-content {
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

.fastpass-error-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: white;
    color: #d32f2f;
    font-size: 80px;
    line-height: 120px;
    margin: 0 auto 2rem;
    font-weight: 700;
}

.fastpass-error-modal-content h2 {
    color: white;
    font-size: 2rem;
    margin: 0 0 1rem;
    font-weight: 700;
}

.fastpass-error-modal-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.3rem;
    margin: 0 0 2rem;
    line-height: 1.5;
}

.fastpass-error-ok-btn {
    background: white;
    color: #d32f2f;
    border: none;
    padding: 1.5rem 3rem;
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 250px;
}

.fastpass-error-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.fastpass-error-ok-btn:active {
    transform: translateY(0);
}

/* ==========================================
   VENUE SETUP STYLES (Credential Role)
   ========================================== */

#venue-setup-card {
    background: #f8f9fa;
    border: 2px solid #c41e3a;
}

.setup-step {
    padding: 1rem 0;
}

.step-header {
    margin-bottom: 1.5rem;
}

.step-number {
    display: inline-block;
    background: #c41e3a;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header h4 {
    color: #333;
    font-size: 1.3rem;
    margin: 0.5rem 0 0.25rem 0;
}

.step-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
}

.step-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.step-actions button {
    flex: 1;
}

/* Venue Cards */
.venue-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.venue-card {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.venue-card:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.2);
    transform: translateY(-2px);
}

.venue-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.venue-address {
    color: #666;
    font-size: 0.9rem;
}

.venue-city {
    color: #999;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.no-venues {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 1rem;
    color: #856404;
    text-align: center;
}

/* Scope Selection */
.scope-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.scope-option {
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.scope-option:hover {
    border-color: #c41e3a;
    box-shadow: 0 4px 8px rgba(196, 30, 58, 0.2);
    transform: translateY(-2px);
}

.scope-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #c41e3a;
}

.scope-title {
    font-weight: 600;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.scope-description {
    color: #666;
    font-size: 0.9rem;
}

/* Precinct Selection */
.precinct-selection {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.select-all-container {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 2px solid #dee2e6;
}

.select-all-container label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin: 0;
}

.select-all-container input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #c41e3a;
}

.precinct-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.5rem;
}

.precinct-checkbox-label {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0;
}

.precinct-checkbox-label:hover {
    background: #f8f9fa;
}

.precinct-checkbox-label:last-child {
    border-bottom: none;
}

.venue-precinct-checkbox {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #c41e3a;
}

.precinct-code {
    font-weight: 600;
    color: #333;
    margin-right: 0.5rem;
}

.precinct-room {
    color: #666;
    font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .venue-list {
        grid-template-columns: 1fr;
    }
    
    .scope-options {
        grid-template-columns: 1fr;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .step-actions button {
        width: 100%;
    }
}

/* ==========================================
   ABOUT SCREEN WITH VIDEO BACKGROUND
   ========================================== */

.about-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-screen.active {
    display: flex;
    animation: aboutFadeIn 0.4s ease;
}

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

/* Video Background */
.about-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
    opacity: 0.3;
}

/* Dark overlay on video */
.about-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(30, 15, 20, 0.6) 50%,
        rgba(10, 10, 10, 0.8) 100%
    );
    z-index: 2;
}

.about-content {
    text-align: center;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    z-index: 3;
}

/* Close button */
.about-close-btn {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-close-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    color: white;
    transform: scale(1.1);
}

/* Logo */
.about-logo {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: aboutLogoGlow 3s ease-in-out infinite alternate;
}

.about-logo-red {
    color: #ff4444;
    text-shadow: 
        0 0 30px rgba(255, 68, 68, 0.5),
        0 4px 30px rgba(0, 0, 0, 0.5);
}

.about-logo-white {
    color: #ffffff;
}

@keyframes aboutLogoGlow {
    from { filter: drop-shadow(0 0 20px rgba(255, 68, 68, 0.3)); }
    to { filter: drop-shadow(0 0 40px rgba(255, 68, 68, 0.5)); }
}

.about-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.about-version {
    color: rgba(255, 68, 68, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.about-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.5), transparent);
    margin: 1.5rem auto;
}

/* Developer section */
.about-developer {
    margin: 1.5rem 0;
}

.about-developed-by {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
}

.about-developer-name {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

/* Features */
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-feature-icon {
    font-size: 1.1rem;
}

/* Copyright */
.about-copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    margin-top: 2rem;
    letter-spacing: 0.05em;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .about-logo {
        font-size: 2.8rem;
    }
    
    .about-tagline {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
    }
    
    .about-developer-name {
        font-size: 1.5rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .about-close-btn {
        top: 0;
        right: 0;
    }
}

/* ==========================================
   LOADING SCREEN OVERLAY WITH VIDEO
   ========================================== */

#loading-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
    overflow: hidden;
}

/* Video Background */
.loading-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
    opacity: 0.4;
}

/* Dark overlay on video for better text readability */
.loading-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.7) 0%,
        rgba(45, 16, 21, 0.6) 50%,
        rgba(10, 10, 10, 0.7) 100%
    );
    z-index: 2;
}

.loading-screen-content {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 90%;
    position: relative;
    z-index: 3;
}

/* RedCaucus Logo in Loading Screen */
.loading-logo {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo-red {
    color: #ff4444;
    text-shadow: 
        0 0 20px rgba(255, 68, 68, 0.5),
        0 4px 20px rgba(0, 0, 0, 0.5);
}

.loading-logo-white {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Spinner - removed, using logo instead */
.loading-spinner {
    display: none;
}

/* Messages */
.loading-message {
    color: white;
    font-size: 1.6rem;
    font-weight: 500;
    margin: 0 0 2rem 0;
    transition: opacity 0.3s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.loading-current-message {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 1rem 0 0 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Progress Bar */
.loading-progress-container {
    margin: 2rem 0;
}

.loading-progress-bar-bg {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #c41e3a 0%, #ff4444 50%, #c41e3a 100%);
    background-size: 200% 100%;
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: 
        0 0 20px rgba(196, 30, 58, 0.6),
        0 0 40px rgba(196, 30, 58, 0.3);
    animation: progressGlow 2s ease-in-out infinite;
}

@keyframes progressGlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.loading-progress-percent {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .loading-logo {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .loading-message {
        font-size: 1.2rem;
    }
    
    .loading-progress-bar-bg {
        height: 10px;
    }
    
    .loading-progress-percent {
        font-size: 1.8rem;
    }
    
    .loading-current-message {
        font-size: 0.85rem;
    }
}

/* User Info Modal */
.user-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-info-photo {
    text-align: center;
    margin-bottom: 1rem;
}

.user-info-photo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #c41e3a;
    object-fit: cover;
}

.user-info-section {
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #c41e3a;
}

.user-info-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.user-info-value {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
    word-break: break-word;
}

@media (max-width: 768px) {
    .user-info-photo img {
        width: 80px;
        height: 80px;
    }
    
    #user-info-modal .modal-content {
        max-width: 95%;
        padding: 1rem;
    }
}