* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.home-link {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    font-size: 1em;
}

.home-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 0.9em;
    opacity: 0.9;
    margin-top: 5px;
}

.filter-container {
    padding: 20px 30px;
    background: #f8f9fa;
    border-bottom: 2px solid #e9ecef;
}

.filter-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 2px solid #dee2e6;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.table-container {
    overflow-x: auto;
    padding: 30px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

th {
    padding: 15px 10px;
    text-align: left;
    font-weight: 600;
    user-select: none;
    white-space: nowrap;
    font-size: 0.9em;
}

tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: all 0.3s;
}

tbody tr:hover {
    background: #f8f9fa;
    transform: scale(1.005);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

tbody tr.band-header {
    background: #e9ecef;
    font-weight: bold;
}

tbody tr.band-header:hover {
    background: #dee2e6;
}

td {
    padding: 10px;
    color: #495057;
    font-size: 0.9em;
}

.band-name {
    font-weight: 700;
    color: #2c3e50;
    font-size: 1.1em;
    background: #e3f2fd;
    padding: 5px 10px;
    border-radius: 4px;
}

.frequency {
    color: #667eea;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    white-space: nowrap;
}

.calling-freq {
    color: #e74c3c;
    font-weight: 700;
    font-size: 0.95em;
    display: block;
    margin: 3px 0;
}

.activity-type {
    display: inline-block;
    padding: 4px 10px;
    background: #e7f3ff;
    color: #0066cc;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 2px;
}

.activity-type.cw {
    background: #fff3cd;
    color: #856404;
}

.activity-type.ssb {
    background: #d1ecf1;
    color: #0c5460;
}

.activity-type.fm {
    background: #d4edda;
    color: #155724;
}

.activity-type.digital {
    background: #f8d7da;
    color: #721c24;
}

.activity-type.beacon {
    background: #e2d1f0;
    color: #5a1c7d;
}

.bandwidth {
    font-family: 'Courier New', monospace;
    color: #d63031;
    font-weight: 600;
    white-space: nowrap;
}

.note {
    font-size: 0.88em;
    color: #6c757d;
    line-height: 1.4;
}

.note strong {
    color: #495057;
}

.legend {
    padding: 20px 30px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    margin: 20px 30px;
    border-radius: 5px;
}

.legend h3 {
    color: #856404;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.legend-item {
    color: #856404;
    padding: 5px 0;
}

.legend-item strong {
    color: #664d03;
}

@media (max-width: 1200px) {
    .table-container {
        padding: 15px;
    }
    
    th, td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    header > div {
        flex-direction: column !important;
        gap: 15px;
    }
    
    header > div > div:first-child {
        position: static !important;
    }
    
    h1 {
        font-size: 1.5em;
    }
}