:root {
    --green: #22c55e;
    --green-dark: #16a34a;
    --red: #ef4444;
    --yellow: #fbbf24;
    --orange: #f97316;
    --gray: #9ca3af;
    --dark: #0f1419;
    --dark-light: #1a2332;
    --dark-card: #1e2a38;
    --white: #ffffff;
    --text: #e5e7eb;
    --text-light: #9ca3af;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-light) 100%);
    min-height: 100vh;
    color: var(--white);
    overflow: hidden;
}

.container { max-width: 1400px; margin: 0 auto; padding: 12px; }

.panel {
    background: var(--dark-card);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.panel-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--text-light);
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary { background: var(--dark-light); color: var(--white); }
.btn-primary:hover { background: var(--dark-card); }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: var(--green-dark); }
.btn-danger { background: var(--red); color: var(--white); }
.btn-sm { padding: 4px 10px; font-size: 11px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.status-bar {
    position: fixed;
    bottom: 10px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    opacity: 0.6;
}

.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.status-dot.offline { background: var(--red); }

.message {
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: none;
}
.message.success { background: var(--green); color: var(--white); display: block; }
.message.error { background: var(--red); color: var(--white); display: block; }

@media (max-width: 768px) {
    .container { padding: 8px; }
    .panel { padding: 12px; }
}