/* HEOM V2.0 - Premium Dark Glassmorphism */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #0f172a;
  --glass-bg: rgba(30, 41, 59, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --neon-blue: #38bdf8;
  --neon-purple: #a855f7;
  --neon-green: #22c55e;
  --neon-red: #ef4444;
  --text-main: #e2e8f0;
  --text-dim: #94a3b8;
}

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Glass Card */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    width: 380px;
    padding: 40px;
    text-align: center;
}

h1.logo {
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 5px;
    background: linear-gradient(to right, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

input {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: all 0.3s ease;
}

input:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: transform 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Dashboard Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 20px;
    padding: 20px;
    height: 100vh;
    box-sizing: border-box;
}

.sidebar {
    grid-row: 1 / -1;
    padding: 20px;
}

.main-content {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
}

.stat-card {
    padding: 15px;
    text-align: center;
}

.stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-blue);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 5px;
}

.terminal-box {
    background: #000;
    color: #22c55e;
    font-family: 'Consolas', monospace;
    padding: 15px;
    border-radius: 8px;
    height: 150px;
    overflow-y: auto;
    font-size: 0.85rem;
    border: 1px solid var(--glass-border);
}

textarea.code-editor {
    width: 100%;
    height: 300px;
    background: #1e1e1e;
    color: #d4d4d4;
    border: 1px solid #333;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    padding: 10px;
    resize: vertical;
}

.control-panel {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-running { background: rgba(34, 197, 94, 0.2); color: var(--neon-green); }
.status-stopped { background: rgba(239, 68, 68, 0.2); color: var(--neon-red); }

/* Utility */
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.w-full { width: 100%; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }
