/* Styly pro stránku statistik QSO */

.info-card-qso {
    background: transparent;
    color: #f39c12; 
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}    

h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 2.0em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.number-contest {
        font-size: 20px;
        font-weight: bold;
        color: #32cd32;        
    }

.number-year {
        font-size: 20px;
        font-weight: bold;
        color: #f39c12;        
    }



.stats-table-container {
    background: transparent;
    border: 2px solid #40e0d0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0;    
    padding: 0;
    max-height: 300px;   /* Výška pro scrollování */
    overflow-y: auto;  /* Pouze vertikální */
    position: relative;
}

.stats-table-container table {
    margin: 0;
    border-collapse: collapse;
    width: 100%;
}

/* Pevná hlavička */
.stats-table thead {
   /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;  */
    background-color: #40e0d0;
    color: black;
    position: sticky;    
    top: 0;
    z-index: 100; /* Vysoký z-index aby byla nad vším */
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Arial', sans-serif;
    
}


.stats-table th {
    padding: 5px 5px;     
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.stats-table td {
    padding: 6px;
    font-size: 18px;       
}

.filename {
    font-weight: bold;
    color: #fdcd47; 
    max-width: 100px;
}

.year {
    font-weight: bold;
    color: #f83a3a;
    text-align: center;
}

.qso-count {
    font-weight: bold;
    color: #27ae60;
    text-align: center;
    font-size: 16px;
}

.band {
    font-weight: bold;
    color: #b743e9;
    text-align: center;
}

.action {
    text-align: center;
    padding: 8px;
}

.btn {
    padding: 6px 12px;
    font-size: 11px;
    display: inline-block;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;    
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-log,
.btn-log:link,
.btn-log:visited,
.btn-log:hover,
.btn-log:active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white !important;
}

.btn-log:hover {
    background: linear-gradient(135deg, #2980b9, #1f4e79);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.btn-map,
.btn-map:link,
.btn-map:visited,
.btn-map:hover,
.btn-map:active {
    background: linear-gradient(135deg, #6de73c, #2bc058);
    color: white !important;
}

.btn-map:hover {
    background: linear-gradient(135deg, #2bc03f, #26a95d);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.3);
}

.no-data {
    text-align: center;
    color: #7f8c8d;
    font-style: italic;
    padding: 30px;
    font-size: 16px;
}

/* Responzivní design */
@media (max-width: 768px) {
    .container {
        padding: 120px 0px ;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .stats-table {
        font-size: 12px;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 8px 6px;
    }
    
    .filename {
        max-width: 120px;
        word-break: break-word;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .stats-table-container {
        overflow-x: auto;
    }
    
    .stats-table {
        min-width: 600px;
    }
    
    .btn {
        padding: 8px 10px;
        font-size: 10px;       
        
    }
    
    .action {
        min-width: 80px;
    }
}