            /* Reset stylów dla modalu */
            #participant-details-modal *,
            #participant-details-modal *::before,
            #participant-details-modal *::after {
                box-sizing: border-box;
                font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            }
            
            /* Podstawowe style modalu */
            #participant-details-modal {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 9999;
                display: flex;
                justify-content: center;
                align-items: center;
                animation: participant-fadeIn 0.3s ease-out;
            }
            
            #participant-details-modal.closing {
                animation: participant-fadeOut 0.3s ease-in forwards;
            }
            
            .participant-modal-overlay {
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background-color: rgba(10, 10, 10, 0.86);
                cursor: pointer;
            }
            
            .participant-modal-container {
                position: relative;
                width: 95%;
                max-width: 1200px;
                max-height: 90vh;
                background-color: #fff;
                border-radius: 8px;
                box-shadow: 0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12);
                display: flex;
                flex-direction: column;
                animation: participant-slideIn 0.3s ease-out;
                z-index: 10000;
                overflow: hidden;
            }
            
            .participant-modal-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 16px 24px;
                border-bottom: 1px solid rgba(0,0,0,0.1);
                background-color: #f5f5f5;
            }
            
            .participant-modal-header h3 {
                font-size: 1.25rem;
                font-weight: 600;
                margin: 0;
                color: #333;
            }
            
            .participant-modal-close {
                background: none;
                border: none;
                cursor: pointer;
                font-size: 1.5rem;
                padding: 4px;
                color: #666;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                transition: background-color 0.2s;
            }
            
            .participant-modal-close:hover {
                background-color: rgba(0,0,0,0.05);
                color: #333;
            }
            
            .participant-modal-body {
                padding: 24px;
                overflow-y: auto;
                max-height: calc(90vh - 64px); /* Wysokość modala minus header */
            }
            
            /* Style dla ładowania */
            .participant-modal-loading {
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                padding: 32px;
                color: #666;
            }
            
            .loading-spinner {
                width: 40px;
                height: 40px;
                border: 4px solid rgba(0,0,0,0.1);
                border-radius: 50%;
                border-top: 4px solid #3273dc;
                animation: participant-spin 1s linear infinite;
                margin-bottom: 16px;
            }
            
            /* Style dla treści */
            .participant-modal-content {
                width: 100%;
            }
            
            /* Style dla tabel w modalu */
            .participant-stats-grid {
                display: flex;
                flex-wrap: wrap;
                gap: 1.5rem;
                margin-bottom: 1.5rem;
            }
            
            .participant-stats-card {
                flex: 1 1 calc(33.333% - 1rem);
                min-width: 200px;
                background-color: white;
                border-radius: 4px;
                border: 1px solid #e0e0e0;
                padding: 1rem;
                box-shadow: 0 2px 3px rgba(10, 10, 10, 0.1);
            }
            
            .participant-stats-title {
                font-size: 1rem;
                font-weight: 600;
                margin-bottom: 0.75rem;
                padding-bottom: 0.5rem;
                border-bottom: 1px solid #e0e0e0;
                color: #333;
            }
            
            .participant-stats-table {
                width: 100%;
                border-collapse: collapse;
                margin-bottom: 0;
            }
            
            .participant-stats-table td {
                padding: 0.5rem;
                border-bottom: 1px solid #f0f0f0;
            }
            
            .participant-stats-table tr:last-child td {
                border-bottom: none;
            }
            
            .participant-text-right {
                text-align: right;
            }
            
            .participant-matrix-section {
                width: 100%;
                margin: 1.5rem 0;
            }
            
            .participant-matrix-title {
                font-size: 1.25rem;
                font-weight: 600;
                margin: 1rem 0;
                text-align: center;
                color: #333;
            }
            
            .participant-matrix-table {
                width: 100%;
                border-collapse: collapse;
                border: 1px solid #ddd;
            }
            
            .participant-matrix-table th,
            .participant-matrix-table td {
                padding: 0.5rem;
                border: 1px solid #ddd;
                text-align: center;
            }
            
            .participant-matrix-table th {
                background-color: #f5f5f5;
                font-weight: 600;
            }
            
            .participant-matrix-table .participant-has-qso {
                color: #22c55e;
                font-weight: 600;
            }
            
            .participant-matrix-table .participant-no-qso {
                color: #999;
            }
            
            .participant-qso-section {
                width: 100%;
                margin: 2rem 0 1rem 0;
            }
            
            .participant-qso-table {
                width: 100%;
                border-collapse: collapse;
                border: 1px solid #ddd;
            }
            
            .participant-qso-table th,
            .participant-qso-table td {
                padding: 0.5rem;
                text-align: left;
                border-bottom: 1px solid #ddd;
            }
            
            .participant-qso-table th {
                background-color: #f5f5f5;
                font-weight: 600;
            }
            
            .participant-qso-table tr:hover {
                background-color: #f9f9f9;
            }
            
            .participant-note {
                font-size: 0.8rem;
                color: #666;
                text-align: center;
                margin: 0.5rem 0 1.5rem 0;
            }
            
            /* Responsywne style dla tabel i kart */
            @media (max-width: 999px) {
                .participant-stats-grid {
                    flex-direction: column;
                }
                
                .participant-stats-card {
                    width: 100%;
                }
                
                .participant-matrix-table {
                    display: block;
                    overflow-x: auto;
                }
                
                .participant-qso-table {
                    display: block;
                    overflow-x: auto;
                }
                

            }
            
            /* Animacje */
            @keyframes participant-fadeIn {
                from { opacity: 0; }
                to { opacity: 1; }
            }
            
            @keyframes participant-fadeOut {
                from { opacity: 1; }
                to { opacity: 0; }
            }
            
            @keyframes participant-slideIn {
                from { transform: translateY(50px); opacity: 0; }
                to { transform: translateY(0); opacity: 1; }
            }
            
            @keyframes participant-spin {
                0% { transform: rotate(0deg); }
                100% { transform: rotate(360deg); }
            }
            
            /* Zapobieganie przewijaniu strony, gdy modal jest otwarty */
            body.has-participant-modal {
                overflow: hidden;
            }

/* Dodaj te style do sekcji CSS w modalu */
@media (max-width: 768px) {
    .participant-matrix-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .participant-matrix-table th,
    .participant-matrix-table td {
        padding: 0.4rem;
        font-size: 0.9rem;
    }
    
    /* Zwiększ kontrast dla lepszej czytelności */
    .participant-matrix-table .participant-has-qso {
        color: #22c55e;
        font-weight: bold;
    }
    
    /* Ustaw stałą szerokość komórek, aby tabela była bardziej zwarta */
    .participant-matrix-table th:not(:first-child),
    .participant-matrix-table td:not(:first-child) {
        min-width: 50px;
        width: 50px;
    }
    
    /* Zablokuj pierwszą kolumnę z nazwami stacji */
    .participant-matrix-table th:first-child,
    .participant-matrix-table td:first-child {
        position: sticky;
        left: 0;
        background-color: white;
        z-index: 1;
        border-right: 2px solid #ddd;
    }
}

/* Na bardzo małych ekranach jeszcze bardziej kompaktowa tabela */
@media (max-width: 480px) {
    .participant-matrix-table th,
    .participant-matrix-table td {
        padding: 0.3rem;
        font-size: 0.8rem;
    }
    
    .participant-matrix-table th:not(:first-child),
    .participant-matrix-table td:not(:first-child) {
        min-width: 40px;
        width: 40px;
    }
}