* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 1.8rem;
    color: #00d4ff;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #888;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #666;
}

.indicator.online {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

.indicator.offline {
    background: #ff4444;
}

/* Stats cards */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #252540;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #00d4ff;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
}

/* Table */
.table-container {
    background: #252540;
    border-radius: 12px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

th {
    background: #1a1a2e;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #888;
}

tr:not(:last-child) td {
    border-bottom: 1px solid #333;
}

tr:hover td {
    background: #2a2a4a;
}

/* New row highlight */
tr.new-row {
    animation: highlight 3s ease-out;
}

@keyframes highlight {
    0% { background: rgba(0, 255, 136, 0.3); }
    100% { background: transparent; }
}

/* Loading state */
.loading {
    text-align: center;
    color: #666;
    padding: 40px !important;
}

/* Responsive */
@media (max-width: 768px) {
    .table-container {
        overflow-x: auto;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }
}
