/* Contest Log Search Styles */

* {
    box-sizing: border-box;
}

.contest-log-viewer {    
    /* Základní nastavení */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #40E0D0; /* Sjednocená základní barva textu */
}

.contest-log-viewer .info-card h3 {
    color: #32cd32; /* Sjednocená barva h3 s hlavními styly */
    font-size: 1em;
    margin-bottom: 5px;
    margin-top: 0;
	text-align: center;
}

.contest-log-viewer .info-card p {
    font-size: 1.2em;
    font-weight: bold;
	text-align: center;
    margin: 0;
}

/* Table container */
.contest-log-viewer .table-container {
    color: #40E0D0;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: auto;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}


/* QSO Table */
.contest-log-viewer .qso-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: transparent;
    position: relative;
    border-spacing: 0;
    
}

.contest-log-viewer .qso-table thead tr {
    position: sticky;
    top: 0;
    z-index: 100;
    
}

.contest-log-viewer .qso-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white;
    padding: 12px 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9em;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #5a6fd8;
}

.contest-log-viewer .qso-table td {
    padding: 10px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9em;
}

.contest-log-viewer .qso-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.5); /* šedá s 50% průhledností */
}

.contest-log-viewer .qso-table tr {
    margin: 0;
    padding: 0;
}


/*----------------------------------------------------------


/* Header sekce */
.log-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #667eea;
}

.log-title {
    color: #da70d6;
    font-size: 2em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.log-subtitle {
    color: #40E0D0;
    font-size: 1.1em;
    margin: 0;
}

/* Info cards */
.info-card {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card h3 {
    color: #da70d6;
    margin: 0 0 10px 0;
    font-size: 0.9em;
}

.info-card p {
    color: #f39c12 !important;
    margin: 0;
    font-size: 1.2em;
    font-weight: bold;
}

/* Search section */
.search-section {
    background: rgba(0, 0, 0, 0.1);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.search-form {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.search-input {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    color: #333;
    min-width: 300px;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background: #28a745;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.search-btn:hover {
    transform: translateY(-2px);
    background: #218838;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Contest section */
.contest-section {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contest-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(218, 112, 214, 0.3);
}

.contest-name {
    color: #da70d6;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.contest-details {
    color: #40E0D0;
    font-size: 0.9em;
}


.qso-call {
    font-weight: bold;
    color: #45f1fd !important;
}

.qso-time {
    color: #f39c12 !important;
    font-weight: bold;
}

.year-separe {  
 background-color: rgba(0, 0, 0, 0.5);
 
}

/* Základní styl pro všechna pásma */
.qso-band {
    font-weight: bold;
}

/* 6m pásmo - zelená */
.qso-band.band-6m {
    color: #28ee28 !important;
}

/* 2m pásmo - modrá */
.qso-band.band-2m {
    color: #0097fc !important;
}

/* 70cm pásmo - oranžová */
.qso-band.band-70cm {
    color: #ff6600 !important;
}

/* 23cm pásmo - červená */
.qso-band.band-23cm {
    color: #dbce16 !important;
}

/* Výchozí barva (pokud pásmo není rozpoznáno) */
.qso-band:not(.band-6m):not(.band-2m):not(.band-70cm):not(.band-23cm) {
    color: #c00 !important;
}

.qso-mode {
    font-weight: 600;
    color: #a3a3a3 !important;
}

.qso-loc {
    font-weight: bold;
    color: #ff02f2 !important;
}

.qso-distance {
    color: #f57c00 !important;
    font-weight: 600;
}

.qso-contest {
    color: #ffffff;
    font-size: 0.8em;
    font-weight: bold;
}


/* Results section */
.result-count {
    color: #32cd32;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(50, 205, 50, 0.3);
}

/* Status messages */
.status-message {
    text-align: center;
    padding: 20px;
    font-size: 1.1em;
    border-radius: 8px;
    margin: 20px 0;
    font-weight: 500;
}

.info-message {
    background: rgba(204, 231, 255, 0.1);
    color: #87ceeb;
    border: 1px solid rgba(204, 231, 255, 0.3);
}

.error-message {
    background: rgba(255, 193, 193, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(255, 193, 193, 0.3);
}

.success-message {
    background: rgba(193, 255, 193, 0.1);
    color: #51cf66;
    border: 1px solid rgba(193, 255, 193, 0.3);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #40E0D0;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide mobile columns */
.hide-mobile {
    display: table-cell;
}

/* Responsive design */
@media (max-width: 768px) {
    .contest-log-viewer {
        padding: 10px;
    }
    
    .log-title {
        font-size: 1.5em;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: auto;
        margin-bottom: 10px;
    }
    
    .contest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* Hide mobile columns on small screens */
    .hide-mobile {
        display: none;
    }
    
    .qso-table {
        font-size: 0.8rem;
    }
    
    .qso-table th,
    .qso-table td {
        padding: 8px 4px;
    }
}