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

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #312e81 100%);
    min-height: 100vh;
    color: #e2e8f0;
}

/* Header */
.header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.brand { display: flex; align-items: center; gap: 15px; }
.brand-icon {
    width: 45px; height: 45px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
}
.brand-icon svg { width: 28px; height: 28px; fill: white; }
.brand-text h1 { font-size: 1.5rem; color: #e2e8f0; margin-bottom: 3px; }
.brand-text p { font-size: 0.85rem; color: #94a3b8; }

.nav-menu { display: flex; gap: 10px; align-items: center; }
.nav-btn {
    padding: 10px 20px;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    color: #cbd5e1;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none; font-size: 0.9rem;
}
.nav-btn:hover { background: rgba(99, 102, 241, 0.2); border-color: #6366f1; color: #e2e8f0; }
.nav-btn.active {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-color: transparent; color: white;
}

.main-content { padding: 30px; max-width: 1400px; margin: 0 auto; }

/* Status Card */
.status-card {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 30px; margin-bottom: 30px;
    text-align: center;
}
.status-title {
    font-size: 1.8rem; font-weight: 700; margin-bottom: 10px;
    font-family: 'JetBrains Mono', monospace;
}
.status-title.down { color: #fbbf24; text-shadow: 0 0 20px rgba(251, 191, 36, 0.3); }
.status-title.running { color: #22c55e; text-shadow: 0 0 20px rgba(34, 197, 94, 0.3); }
.status-title.stopped { color: #ef4444; text-shadow: 0 0 20px rgba(239, 68, 68, 0.3); }
.status-subtitle { color: #94a3b8; font-size: 1rem; }

/* Control Panel */
.control-panel {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    padding: 30px; margin-bottom: 30px;
}
.control-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 25px; display: flex; align-items: center; gap: 10px; }
.control-buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

.control-btn {
    padding: 20px; border: none; border-radius: 15px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    transition: all 0.3s;
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
.control-btn svg { width: 35px; height: 35px; }

.btn-start { background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); color: white; }
.btn-start:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(34, 197, 94, 0.4); }

.btn-stop { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); color: white; }
.btn-restart { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); color: white; }

.control-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Log Viewer */
.log-viewer {
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 20px; overflow: hidden;
}
.log-header {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px 25px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.log-content {
    font-family: 'JetBrains Mono', monospace;
    padding: 20px; height: 400px; overflow-y: auto;
    background: #0a0f1c;
}
.log-line {
    padding: 5px 0; border-left: 3px solid transparent;
    padding-left: 12px; margin-bottom: 5px; font-size: 0.9rem;
}
.log-line.info { border-left-color: #3b82f6; color: #93c5fd; }
.log-line.success { border-left-color: #22c55e; color: #86efac; }
.log-line.error { border-left-color: #ef4444; color: #fca5a5; }
.empty-log { color: #475569; text-align: center; padding: 60px 20px; font-style: italic; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.5); }
::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.5); border-radius: 5px; }

/* Animations */
@keyframes slideIn {
    from { transform: translateX(400px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .header { flex-direction: column; }
    .nav-menu { width: 100%; justify-content: center; }
    .control-buttons { grid-template-columns: 1fr; }
}
