
        /* CSS Custom Properties for Theme-Aware Colors */
        :root {
            --bg-primary: rgba(255, 255, 255, 0.95);
            --bg-secondary: rgba(248, 249, 255, 0.8);
            --bg-tertiary: rgba(255, 255, 255, 0.8);
            --text-primary: #2d3748;
            --text-secondary: #4a5568;
            --text-muted: #6b7280;
            --border-color: rgba(227, 231, 255, 0.6);
            --shadow-color: rgba(0, 0, 0, 0.1);
            --overlay-bg: rgba(0, 0, 0, 0.7);
        }

        [data-bs-theme="dark"] {
            --bg-primary: rgba(45, 55, 72, 0.95);
            --bg-secondary: rgba(26, 32, 44, 0.8);
            --bg-tertiary: rgba(45, 55, 72, 0.8);
            --text-primary: #e2e8f0;
            --text-secondary: #cbd5e0;
            --text-muted: #a0aec0;
            --border-color: rgba(74, 85, 104, 0.6);
            --shadow-color: rgba(0, 0, 0, 0.3);
            --overlay-bg: rgba(0, 0, 0, 0.8);
        }

        .preview-container {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px 0;
        }
        
        .preview-card {
            background: var(--bg-primary);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 20px 40px var(--shadow-color);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        .event-header {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-radius: 20px 20px 0 0;
            padding: 30px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }
        
        .event-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 500%;
    height: 500%;
    background: linear-gradient(0deg, #eeeeee00 0%, #fafafa3d 50%, #eeeeee00 100%);
    animation: shimmer 10s linear infinite;
}
        
        @keyframes shimmer {
            0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
            100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
        }
        
        .event-title {
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
            position: relative;
            z-index: 2;
        }
        
        .event-subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            position: relative;
            z-index: 2;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .auto-update-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            background: rgba(255, 255, 255, 0.2);
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }
        
        .update-interval-selector {
            background: rgba(255, 255, 255, 0.9);
            border: none;
            border-radius: 15px;
            padding: 4px 8px;
            font-size: 0.8rem;
            color: var(--text-primary);
            font-weight: 600;
        }

        [data-bs-theme="dark"] .update-interval-selector {
            background: rgba(45, 55, 72, 0.9);
            color: var(--text-primary);
        }
        
        .connection-status {
            display: flex;
            align-items: center;
            gap: 5px;
            font-size: 0.85rem;
        }
        
        .status-indicator {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #48bb78;
            animation: pulse-dot 2s ease-in-out infinite;
        }
        
        @keyframes pulse-dot {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
            flex-direction: column;
        }
        
        .spinner-border-custom {
            width: 3rem;
            height: 3rem;
            border: 0.3em solid rgba(102, 126, 234, 0.25);
            border-right-color: #667eea;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            to { transform: rotate(360deg); }
        }
        
        .flow-chain-container {
            padding: 30px;
        }
        
        .chain-card {
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            border-radius: 15px;
            margin-bottom: 25px;
            padding: 20px;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .chain-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea, #764ba2, #f093fb);
            border-radius: 15px 15px 0 0;
        }
        
        .chain-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.2);
        }
        
        .chain-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 20px;
            flex-wrap: wrap;
            gap: 15px;
        }
        
        .chain-title {
            font-size: 1.4rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 5px;
        }
        
        .chain-stats {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }
        
        .stat-badge {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            padding: 4px 10px;
            border-radius: 15px;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
        }
        
        .heat-flow-visual {
            display: flex;
            align-items: flex-start;
            justify-content: flex-start;
            flex-wrap: nowrap;
            gap: 12px;
            margin: 20px 0;
            overflow-x: auto;
            padding: 10px 0;
        }
        
        .heat-node {
            background: var(--bg-tertiary);
            border: 1px solid var(--border-color);
            border-radius: 12px;
            padding: 12px;
            min-width: 200px;
            width: 25%;
            flex-shrink: 0;
            text-align: left;
            position: relative;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px var(--shadow-color);
        }
        
        .heat-node.active {
            border-color: #48bb78;
            background: rgba(72, 187, 120, 0.15);
            transform: translateY(-5px);
        }
        
        .heat-node.has-flow {
            border-color: #ed8936;
        }
        
        .heat-node:hover {
            transform: translateY(-2px) scale(1.01);
            box-shadow: 0 8px 20px var(--shadow-color);
        }
        
        .heat-number {
            font-size: 1.1rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 6px;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .active-run-indicator {
            background: #48bb78;
            color: white;
            font-size: 0.7rem;
            padding: 2px 6px;
            border-radius: 8px;
            font-weight: 600;
        }
        
        .heat-name {
            font-size: 0.9rem;
            color: var(--text-secondary);
            font-weight: 600;
            margin-bottom: 8px;
            word-break: break-word;
        }
        
        .heat-details {
            font-size: 0.75rem;
            color: var(--text-muted);
            line-height: 1.4;
            margin-bottom: 4px;
        }
        
        .heat-details:last-child {
            margin-bottom: 0;
        }
        
        .time-info {
            background: rgba(102, 126, 234, 0.1);
            padding: 6px 8px;
            border-radius: 6px;
            margin: 6px 0;
            font-size: 0.7rem;
        }

        [data-bs-theme="dark"] .time-info {
            background: rgba(102, 126, 234, 0.2);
        }
        
        .time-planned {
            color: var(--text-primary);
            font-weight: 600;
        }
        
        .time-estimated {
            color: #ed8936;
            font-weight: 600;
        }
        
        .categories-inline {
            display: flex;
            flex-wrap: wrap;
            gap: 4px;
            margin-top: 2px;
        }
        
        .category-tag {
            background: rgba(102, 126, 234, 0.15);
            color: var(--text-primary);
            padding: 1px 6px;
            border-radius: 8px;
            font-size: 0.65rem;
            font-weight: 500;
        }

        [data-bs-theme="dark"] .category-tag {
            background: rgba(102, 126, 234, 0.3);
        }
        
        .flow-arrow {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #48bb78;
            font-size: 1.8rem;
            flex-shrink: 0;
            width: 30px;
            text-align: center;
            align-self: center;
        }
        
        .flow-break {
            display: flex;
            align-items: center;
            justify-content: center;
            color: #a0aec0;
            font-size: 1rem;
            flex-shrink: 0;
            width: 30px;
            text-align: center;
        }
        
        .summary-section {
            background: var(--bg-secondary);
            border-radius: 15px;
            padding: 20px;
            margin-top: 20px;
        }
        
        .summary-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 12px;
            margin-top: 15px;
        }
        
        .summary-item {
            background: var(--bg-tertiary);
            padding: 12px;
            border-radius: 10px;
            text-align: center;
            border: 2px solid var(--border-color);
            transition: all 0.3s ease;
        }
        
        .summary-item:hover {
            border-color: #667eea;
            transform: translateY(-2px);
        }
        
        .summary-value {
            font-size: 1.8rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 5px;
        }
        
        .summary-label {
            color: var(--text-muted);
            font-size: 0.85rem;
            font-weight: 600;
        }
        
        .refresh-button {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 50%;
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
            box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
            transition: all 0.3s ease;
            z-index: 1000;
        }
        
        .refresh-button:hover {
            transform: scale(1.1) rotate(180deg);
            box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
        }
        
        .error-state {
            text-align: center;
            padding: 40px;
            color: #e53e3e;
        }
        
        .empty-state {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }
        
        /* Add these new styles to the existing CSS */
        .time-conflict {
            /*background: rgba(245, 101, 101, 0.1);*/
            border: 1px solid #f56565;
        }
        
        .time-delay-warning {
            color: #e53e3e;
            font-weight: 600;
            background: rgba(245, 101, 101, 0.1);
            padding: 3px 6px;
            border-radius: 4px;
            margin-top: 2px;
        }
        
        .time-adjusted {
            color: #ed8936;
            font-weight: 600;
        }
        
        .delay-indicator {
            background: #fed7d7;
            color: #c53030;
            padding: 2px 6px;
            border-radius: 10px;
            font-size: 0.6rem;
            font-weight: 600;
            margin-left: 5px;
        }
        
        @media (max-width: 768px) {
            .heat-flow-visual {
                flex-direction: column;
                align-items: stretch;
            }
            
            .flow-arrow, .flow-break {
                transform: rotate(90deg);
                margin: 8px 0;
                width: auto;
            }
            
            .heat-node {
                min-width: 100%;
                max-width: 100%;
            }
            
            .event-title {
                font-size: 2rem;
            }
            
            .summary-grid {
                grid-template-columns: 1fr 1fr;
            }
            
            .event-subtitle {
                flex-direction: column;
                gap: 10px;
            }
        }
        
        .auto-refresh-indicator {
            position: fixed;
            top: 20px;
            right: 20px;
            background: rgba(72, 187, 120, 0.9);
            color: white;
            padding: 8px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            z-index: 1000;
            display: none;
        }
        
        .countdown-timer {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.8);
            margin-left: 10px;
        }
        .participant-info {
            margin: 8px 0;
            padding: 8px;
            border-radius: 8px;
            font-size: 0.75rem;
            border-left: 3px solid;
            background: var(--bg-tertiary);
        }

        .current-participant {
            border-left-color: #48bb78;
            background: rgba(72, 187, 120, 0.1);
        }

        .latest-participant {
            border-left-color: #ed8936;
            background: rgba(237, 137, 54, 0.1);
        }

        .next-participant {
            border-left-color: #4299e1;
            background: rgba(66, 153, 225, 0.1);
        }

        .participant-header {
            display: flex;
            align-items: center;
            margin-bottom: 2px;
            font-weight: 600;
        }

        .participant-label {
            color: var(--text-secondary);
            font-size: 0.7rem;
        }

        .participant-details {
            color: var(--text-primary);
            line-height: 1.3;
        }

        .participant-details strong {
            color: var(--text-primary);
        }

        .heat-progress {
            margin: 8px 0;
            padding: 6px;
            background: rgba(102, 126, 234, 0.05);
            border-radius: 6px;
            font-size: 0.7rem;
        }

        [data-bs-theme="dark"] .heat-progress {
            background: rgba(102, 126, 234, 0.15);
        }

        .progress-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 4px;
            color: var(--text-secondary);
        }

        .progress-percentage {
            font-weight: 600;
            padding: 1px 4px;
            border-radius: 3px;
            color: white;
        }

        .progress-percentage.progress-start {
            background: #e53e3e;
        }

        .progress-percentage.progress-half {
            background: #ed8936;
        }

        .progress-percentage.progress-complete {
            background: #48bb78;
        }

        .progress-bar-container {
            width: 100%;
            height: 4px;
            background: rgba(226, 232, 240, 0.5);
            border-radius: 2px;
            overflow: hidden;
        }

        [data-bs-theme="dark"] .progress-bar-container {
            background: rgba(74, 85, 104, 0.5);
        }.progress-bar {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-bar.progress-start {
    background: #e53e3e;
}

.progress-bar.progress-half {
    background: #ed8936;
}

.progress-bar.progress-complete {
    background: #48bb78;
}

/* Enhanced heat node styling for participant info */
.heat-node {
    background: white;
    border: 1px solid #e3e7ff;
    border-radius: 12px;
    padding: 12px;
    min-width: 280px;  /* Increased width to accommodate participant info */
    width: 25%;
    flex-shrink: 0;
    text-align: left;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.participant-info{display: none}
.active .participant-info{display: block}
/* Mobile responsiveness for participant info */
@media (max-width: 768px) {
    .heat-node {
        min-width: 100%;
        max-width: 100%;
    }
    
    .participant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .participant-info {
        margin: 6px 0;
        padding: 6px;
    }
}

/* Additional visual indicators for active participants */
.heat-node.active .current-participant {
    border-left-color: #38a169;
    background: rgba(56, 161, 105, 0.2);
    animation: pulse-highlight 2s ease-in-out infinite;
}

@keyframes pulse-highlight {
    0%, 100% { 
        background: rgba(56, 161, 105, 0.2);
    }
    50% { 
        background: rgba(56, 161, 105, 0.3);
    }
}

/* Empty state for participants */
.no-participants {
    font-style: italic;
    color: #a0aec0;
    text-align: center;
    padding: 8px;
    font-size: 0.7rem;
}
        /* Summary Results Modal */
        .summary-modal {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: var(--overlay-bg);
            backdrop-filter: blur(5px);
        }

        .summary-modal-content {
            background-color: var(--bg-primary);
            margin: 2% auto;
            padding: 0;
            border-radius: 20px;
            width: 90%;
            max-width: 1200px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 25px 50px var(--shadow-color);
            animation: modalSlideIn 0.3s ease-out;
        }@keyframes modalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.summary-modal-header {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 20px 20px 0 0;
}

.summary-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.summary-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
}

.summary-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.summary-modal-body {
    padding: 30px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.summary-stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

        .summary-stat-card {
            background: var(--bg-secondary);
            border: 2px solid var(--border-color);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            transition: transform 0.3s ease;
        }

        .summary-stat-card:hover {
            transform: translateY(-2px);
        }

        .summary-stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 5px;
        }

        .summary-stat-label {
            color: var(--text-muted);
            font-size: 0.9rem;
            font-weight: 600;
        }

        .rankings-table {
            background: var(--bg-tertiary);
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 4px 12px var(--shadow-color);
        }.rankings-table table {
    width: 100%;
    margin: 0;
}

.rankings-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px 12px;
    font-weight: 600;
    text-align: left;
    border: none;
}

        .rankings-table td {
            padding: 12px;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .rankings-table tbody tr:hover {
            background-color: rgba(102, 126, 234, 0.05);
        }

        [data-bs-theme="dark"] .rankings-table tbody tr:hover {
            background-color: rgba(102, 126, 234, 0.15);
        }.rankings-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 0.9rem;
}

.rank-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #744210; }
.rank-2 { background: linear-gradient(135deg, #c0c0c0, #e2e8f0); color: #4a5568; }
.rank-3 { background: linear-gradient(135deg, #cd7f32, #dd6b20); color: white; }
.rank-other { background: #e2e8f0; color: #4a5568; }

        .participant-name {
            font-weight: 600;
            color: var(--text-primary);
        }

        .participant-details {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-top: 2px;
        }.score-badge {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

        .no-results-message {
            text-align: center;
            padding: 40px;
            color: var(--text-muted);
        }

        .no-results-message i {
            font-size: 3rem;
            margin-bottom: 15px;
            opacity: 0.5;
        }.summary-button {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 8px;
    width: 100%;
    justify-content: center;
}

.summary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.summary-button:disabled {
    background: #cbd5e0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.heat-summary-section {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid #e2e8f0;
}


        /* Category Results Styling */
        .category-results {
            margin: 10px 0;
            padding: 15px;
            background: var(--bg-secondary);
            border-radius: 8px;
            border-left: 4px solid #007bff;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 10px;
        }

        .category-tag.large {
            font-size: 1.1em;
            padding: 8px 16px;
            background: rgba(102, 126, 234, 0.15);
            color: var(--text-primary);
        }

        [data-bs-theme="dark"] .category-tag.large {
            background: rgba(102, 126, 234, 0.3);
        }

        .category-leader {
            font-size: 0.9em;
            color: var(--text-secondary);
            font-weight: 500;
        }

        .top-3-display {
            display: flex;
            gap: 10px;
            margin: 10px 0;
            flex-wrap: wrap;
        }

        .podium-position {
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--bg-tertiary);
            padding: 8px 12px;
            border-radius: 6px;
            min-width: 150px;
            flex: 1;
            border: 1px solid var(--border-color);
        }.medal {
    font-size: 1.2em;
}

.participant-info {
    text-align: left;
    line-height: 1.2;
}

.participant-info strong {
    color: #495057;
}

.participant-info small {
    display: block;
    color: #6c757d;
    font-size: 0.8em;
}

.category-summary-button {
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

.category-summary-button:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.overall-summary-controls {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-button.primary {
    background: linear-gradient(135deg, #28a745, #20c997);
    font-weight: 600;
}

.summary-button.primary:hover {
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

/* Enhanced Modal Styles for Category Results */
.category-results-container {
    max-height: 600px;
    overflow-y: auto;
}

.category-section {
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
}

.category-section-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.category-section-header h5 {
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.participant-count {
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
}

.category-top-3 {
    padding: 20px;
    background: linear-gradient(135deg, #fff, #f8f9fa);
}

.podium-row {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

        .podium-card {
            background: var(--bg-tertiary);
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            box-shadow: 0 4px 12px var(--shadow-color);
            min-width: 160px;
            border: 2px solid transparent;
            transition: all 0.3s ease;
        }

        .podium-card.first {
            border-color: #ffd700;
            background: rgba(255, 215, 0, 0.1);
        }

        .podium-card.second {
            border-color: #c0c0c0;
            background: rgba(192, 192, 192, 0.1);
        }

        .podium-card.third {
            border-color: #cd7f32;
            background: rgba(205, 127, 50, 0.1);
        }.medal-large {
    font-size: 2.5em;
    margin-bottom: 10px;
}

        .bib-number {
            font-size: 1.2em;
            font-weight: bold;
            color: var(--text-primary);
            margin-bottom: 5px;
        }

        .participant-name {
            font-size: 0.95em;
            color: var(--text-secondary);
            margin-bottom: 8px;
            line-height: 1.2;
        }

        .score-large {
            font-size: 1.4em;
            font-weight: bold;
            color: #28a745;
        }

        .participant-club {
            font-size: 0.8em;
            color: var(--text-muted);
            margin-top: 5px;
        }.category-rankings-table {
    padding: 0 20px 20px;
}

.table-sm {
    font-size: 0.9em;
}

.table-sm th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    border-top: none;
    padding: 12px 8px;
}

.table-sm td {
    padding: 10px 8px;
    vertical-align: middle;
}

.full-rankings-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.full-rankings-table th,
.full-rankings-table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.full-rankings-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
    position: sticky;
    top: 0;
    z-index: 10;
}

.full-rankings-table tbody tr:hover {
    background: #f8f9fa;
}

/* Rank badges */
.rank-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 0.85em;
    min-width: 28px;
    text-align: center;
}

.rank-badge.rank-1 {
    background: linear-gradient(135deg, #ffd700, #ffed4a);
    color: #8b6914;
}

.rank-badge.rank-2 {
    background: linear-gradient(135deg, #c0c0c0, #e2e8f0);
    color: #4a5568;
}

.rank-badge.rank-3 {
    background: linear-gradient(135deg, #cd7f32, #d69e2e);
    color: #744210;
}

.rank-badge.rank-other {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
    color: #495057;
}

.score-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Full Summary Table Styles */
.full-summary-table {
    max-height: 70vh;
    overflow: auto;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #dee2e6;
}

.table-stats {
    display: flex;
    gap: 10px;
}

.table-responsive {
    max-height: 60vh;
    overflow: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

/* Scoring Progress Indicator */
.scoring-progress {
    margin-top: 5px;
    font-size: 0.9em;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 5px;
}

.scoring-progress .progress-percentage {
    color: #28a745;
    font-weight: 600;
}

/* Enhanced Loading States */
.loading-state {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.error-state {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.no-results-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.no-results-message i {
    font-size: 3em;
    margin-bottom: 15px;
    color: #adb5bd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .top-3-display,
    .podium-row {
        flex-direction: column;
        align-items: center;
    }
    
    .podium-position,
    .podium-card {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .overall-summary-controls {
        flex-direction: column;
    }
    
    .summary-button {
        width: 100%;
        justify-content: center;
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .summary-modal-content {
        width: 95%;
        margin: 5% auto;
        max-height: 85vh;
    }
    
    .summary-modal-header {
        padding: 20px;
    }
    
    .summary-modal-body {
        padding: 20px;
    }
    
    .summary-stats-row {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    
    .rankings-table th,
    .rankings-table td {
        padding: 8px 6px;
        font-size: 0.85rem;
    }
}
