* {
    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%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    font-weight: 300;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.status-bar {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.table-container {
    overflow-x: auto;
    max-height: 70vh;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
}

thead {
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th {
    color: white;
    font-weight: 600;
    padding: 16px 12px;
    text-align: left;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.8rem;
}

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

tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.001);
}

tbody tr:nth-child(even) {
    background-color: #fbfbfb;
}

tbody td {
    padding: 14px 12px;
    border: none;
    vertical-align: middle;
}

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

.location {
    font-family: 'Courier New', monospace;
    color: #666;
    font-size: 0.85rem;
    white-space: pre-line;
}

.altitude {
    color: #e74c3c;
    font-weight: 500;
}

.track {
    color: #8e44ad;
    font-weight: 500;
    text-align: center;
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}

.track-arrow {
    display: inline-block;
    transition: transform 2s cubic-bezier(0.77, 0, 0.175, 1);
    font-size: 1.2rem;
    line-height: 1;
}

.speed-track {
    color: #27ae60;
    font-weight: 500;
}

.vertical-speed {
    font-weight: 500;
}

.vertical-speed.positive {
    color: #27ae60;
}

.vertical-speed.negative {
    color: #e74c3c;
}

.messages {
    background: #e8f4fd;
    color: #2980b9;
    font-weight: 600;
    text-align: center;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
}

.last-update {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.no-data {
    text-align: center;
    padding: 40px;
    color: #999;
    font-style: italic;
}

@media (max-width: 768px) {
    body {
        padding: 5px;
    }
    
    h1 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .container {
        border-radius: 8px;
    }
    
    table {
        font-size: 0.7rem;
    }
    
    thead th, tbody td {
        padding: 6px 4px;
    }
    
    .status-bar {
        padding: 8px 12px;
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
    
    /* More compact styling for mobile */
    .registration {
        font-size: 0.75rem;
    }
    
    .location {
        font-size: 0.65rem;
        max-width: 90px;
        white-space: pre-line;
    }
    
    .altitude, .speed-track {
        font-size: 0.7rem;
    }
    
    .vertical-speed {
        font-size: 0.65rem;
    }
    
    .messages {
        font-size: 0.65rem;
        padding: 2px 4px;
    }
    
    .last-update {
        font-size: 0.6rem;
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    body {
        padding: 2px;
    }
    
    .container {
        margin: 0;
        border-radius: 0;
    }
    
    table {
        font-size: 0.65rem;
    }
    
    thead th, tbody td {
        padding: 4px 2px;
    }
    
    .location {
        max-width: 70px;
        white-space: pre-line;
    }
    
    .last-update {
        max-width: 50px;
    }
    
    .messages {
        padding: 1px 2px;
    }
}