/* Contest Log Search Styles */


  /* Reset specifický pro contest log viewer */
    * {
        box-sizing: border-box;
    }
    
    /* Základní nastavení */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    color: #40E0D0; /* Sjednocená základní barva textu */
}

/* 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;
}

/* 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);
}

.load-logs-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    background: #17a2b8;
    color: white;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.3s;
    font-weight: 600;
}

.load-logs-btn:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* File input section */
.file-input {
    margin: 15px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
}

.file-input label {
    color: #40E0D0;
    font-weight: 600;
    margin-right: 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.file-input input[type="file"] {
    padding: 8px 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #333;
    cursor: pointer;
    width: 100%;
    max-width: 400px;
}

.file-input input[type="file"]:hover {
    background: #f8f9fa;
}

/* Results section */
.results-section {
    margin-top: 20px;
}

.result-count {
    color: #32cd32;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 15px;
    text-align: center;
    padding: 10px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contest-result {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 15px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s;
}

.contest-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
}

.contest-header {
    color: #da70d6;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(218, 112, 214, 0.3);
    padding-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contest-date {
    color: #f39c12;
    font-weight: 600;
}

.contest-name {
    color: #40E0D0;
    flex: 1;
}

.contest-band {
    color: #32cd32;
    font-weight: 600;
    background: transparent;
    padding: 2px 8px;
    border-radius: 4px;
}

.qso-line {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 5px;
    font-family: 'Arial', monospace;
    font-size: 1.2em;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
    transition: background-color 0.2s;
}

.qso-line:hover {
    background: rgba(255, 255, 255, 0.15);
}

.qso-time {
    color: #f39c12;
    font-weight: bold;
    min-width: 80px;
    background: transparent;
    padding: 2px 6px;
    border-radius: 3px;
}

.qso-call {
    color: #667eea;
    font-weight: bold;
    min-width: 100px;
    background: transparent;
    padding: 2px 6px;
    border-radius: 3px;
}

.qso-reports {
    color: #40E0D0;
    min-width: 120px;
    font-weight: 500;
}

.qso-locator {
    color: #32cd32;
    font-weight: bold;
    min-width: 80px;
     background: transparent;
    padding: 2px 6px;
    border-radius: 3px;
}

.qso-distance {
    color: #f5576c;
    font-weight: 600;
    min-width: 60px;
    background: transparent;
    padding: 2px 6px;
    border-radius: 3px;
}

/* 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);
    }
}

/* 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;
    }
    
    .load-logs-btn {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .contest-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .qso-line {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    
}
