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

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
    min-height: 100vh;
}

.header {
    background: linear-gradient(135deg, #4a4e69 0%, #22223b 100%);
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    border-bottom: 2px solid #9a8c98;
}

.header h1 {
    margin: 0;
    font-size: 28px;
    color: #f2e9e4;
}

.header .nav {
    margin-top: 10px;
}

.header .nav a {
    color: #f2e9e4;
    text-decoration: none;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    border-radius: 5px;
    margin: 0 5px;
    display: inline-block;
    transition: background 0.3s;
}

.header .nav a:hover,
.header .nav a.active {
    background: rgba(154, 140, 152, 0.4);
}

.status-bar {
    background: #1a1a2e;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a3e;
    color: #c9ada7;
}

.status-bar .status {
    display: flex;
    gap: 20px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 5px #4CAF50;
}

.status-bar strong {
    color: #f2e9e4;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px;
}

button {
    padding: 8px 14px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-size: 13px;
    transition: opacity 0.2s, transform 0.1s;
}

button:hover {
    opacity: 0.85;
}

button:active {
    transform: scale(0.97);
}

.btn-start { background: #4CAF50; color: white; }
.btn-stop { background: #f44336; color: white; }
.btn-restart { background: #ff9800; color: white; }
.btn-logs { background: #9c27b0; color: white; }
.btn-delete { background: #666; color: white; }
.btn-add {
    background: #2196F3;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    margin-top: 20px;
}

.error {
    color: #ff6b6b;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,0,0,0.1);
    border-radius: 5px;
    border: 1px solid #f44336;
    display: none;
}

.metric-value.good { color: #4CAF50; }
.metric-value.warning { color: #ff9800; }
.metric-value.error { color: #f44336; }

.badge {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.badge.live {
    background: #f44336;
    color: white;
    animation: pulse 2s infinite;
}

.badge.offline {
    background: #666;
    color: white;
}

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

.no-streams {
    text-align: center;
    padding: 50px;
    color: #9a8c98;
    font-size: 18px;
}

.no-streams a {
    color: #c9ada7;
    text-decoration: none;
}

.no-streams a:hover {
    text-decoration: underline;
}
