:root {
    --primary: #ff1e56; /* Netflix style red/pink */
    --primary-glow: rgba(255, 30, 86, 0.4);
    --bg-dark: #0a0a0f;
    --glass-bg: rgba(20, 20, 30, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text: #ffffff;
    --text-dim: #9ca3af;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at 50% -20%, var(--primary-glow), transparent 50%);
    color: var(--text);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.login-body {
    display: flex; justify-content: center; align-items: center;
}

/* Glassmorphism */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Login */
.login-container {
    width: 100%; max-width: 400px; padding: 40px; text-align: center;
}
.login-container h1 { color: var(--primary); margin-bottom: 5px; font-weight: 700; }
.subtitle { color: var(--text-dim); margin-bottom: 30px; font-weight: 300; }

.input-group {
    margin-bottom: 20px; text-align: left; position: relative;
}
.input-group label {
    display: block; margin-bottom: 8px; font-size: 14px; color: var(--text-dim);
}
.input-group i:not(.fa-solid) {
    /* Login icon specific */
    position: absolute; left: 15px; top: 15px; color: var(--text-dim);
}

.login-container input {
    width: 100%; padding: 12px 15px 12px 40px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text); font-family: inherit; font-size: 16px;
    transition: all 0.3s;
}
.login-container input:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow);
}

.glass-input {
    width: 100%; padding: 12px 15px;
    background: rgba(0, 0, 0, 0.5); border: 1px solid var(--glass-border);
    border-radius: 8px; color: var(--text); font-family: inherit; font-size: 14px;
    transition: all 0.3s;
}
.glass-input:focus {
    outline: none; border-color: var(--primary);
}

/* Buttons */
.btn {
    padding: 12px 24px; border: none; border-radius: 8px; font-family: inherit;
    font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-block { width: 100%; margin-bottom: 15px; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), #d91648);
    color: white; box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow);
}
.btn-danger { background: var(--error); color: white; }
.btn-warning { background: var(--warning); color: #000; }
.btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text); }
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-small { padding: 4px 10px; font-size: 12px; }

/* Navbar - Sticky */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 30px; border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-size: 20px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.status-badge { 
    padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600;
    white-space: nowrap;
}
.status-badge.connected { background: rgba(16, 185, 129, 0.2); color: var(--success); }

/* Mobile Navbar */
@media (max-width: 600px) {
    .navbar { padding: 12px 15px; }
    .logo { font-size: 15px; }
    .nav-actions .btn-outline { padding: 7px 10px; font-size: 12px; }
    .nav-actions .btn-outline span { display: none; }
    .status-badge { padding: 5px 8px; font-size: 12px; }
}

/* Dashboard Layout */
.dashboard-container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
    max-width: 1200px; margin: 30px auto; padding: 0 20px;
}
@media (max-width: 900px) {
    .dashboard-container { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .dashboard-container { margin: 15px auto; padding: 0 12px; gap: 15px; }
}

.config-panel, .status-panel { padding: 30px; }

/* Tabs */
.tabs { display: flex; gap: 10px; margin-bottom: 20px; }
.tab {
    flex: 1; padding: 12px; text-align: center; border-radius: 8px;
    background: rgba(255,255,255,0.05); cursor: pointer; transition: all 0.3s;
    font-size: 14px; font-weight: 500;
}
.tab.active { background: var(--primary); box-shadow: 0 4px 15px var(--primary-glow); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Inputs row */
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

/* File Upload Area */
.upload-area {
    border: 2px dashed var(--glass-border); border-radius: 12px;
    padding: 40px 20px; text-align: center; cursor: pointer; transition: all 0.3s;
}
.upload-area:hover { border-color: var(--primary); background: rgba(255,30,86,0.05); }
.upload-area i { color: var(--primary); margin-bottom: 15px; }

.progress-bar-bg {
    width: 100%; height: 6px; background: rgba(255,255,255,0.1); border-radius: 3px; margin: 10px 0; overflow: hidden;
}
.progress-bar-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.3s; }
.upload-stats { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-dim); }

/* Process Flow */
.process-flow { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.flow-step {
    display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.3; transition: all 0.3s;
}
.flow-step.active { opacity: 1; }
.flow-step.active .flow-icon { background: var(--primary); box-shadow: 0 0 15px var(--primary-glow); border-color: var(--primary); }
.flow-icon {
    width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--glass-border);
    display: flex; justify-content: center; align-items: center; font-size: 20px; background: rgba(0,0,0,0.5);
}
.flow-step span { font-size: 12px; font-weight: 600; letter-spacing: 1px; }
.flow-line { flex: 1; height: 2px; background: var(--glass-border); margin: 0 15px 25px 15px; transition: all 0.3s; }
.flow-line.active { background: var(--primary); box-shadow: 0 0 10px var(--primary-glow); }

/* Circular Progress */
.status-display { text-align: center; margin-bottom: 40px; }
.percent-circle { position: relative; width: 180px; height: 180px; margin: 0 auto 20px auto; }
.percent-circle svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.percent-circle circle { fill: none; stroke-width: 6; stroke-linecap: round; }
.percent-circle .bg { stroke: rgba(255,255,255,0.1); }
.percent-circle .fill { 
    stroke: var(--primary); stroke-dasharray: 283; stroke-dashoffset: 283; 
    transition: stroke-dashoffset 0.5s ease; filter: drop-shadow(0 0 8px var(--primary-glow));
}
.percent-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 36px; font-weight: 700;
}
#statusText { font-size: 20px; font-weight: 400; color: var(--text-dim); }

/* Logs Container */
.logs-container { background: rgba(0,0,0,0.4); border-radius: 12px; border: 1px solid var(--glass-border); overflow: hidden; }
.logs-header { 
    padding: 12px 15px; border-bottom: 1px solid var(--glass-border);
    display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600;
}
.logs-content { padding: 15px; height: 200px; overflow-y: auto; font-family: monospace; font-size: 12px; line-height: 1.5; }
.log-entry { margin-bottom: 5px; color: var(--text-dim); }
.log-time { color: var(--primary); margin-right: 8px; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
