:root {
    --bg-color: #0b0c10;
    --panel-bg: rgba(25, 27, 36, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --primary: #6d28d9;
    --primary-glow: rgba(109, 40, 217, 0.5);
    --secondary: #2563eb;
    --danger: #e11d48;
    --update: #059669;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Gradients (Glassmorphism Effects) */
.glow-bg {
    position: fixed; top: -20%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(120px); z-index: -1; animation: float 20s infinite alternate;
}
.glow-bg.bg-2 {
    top: auto; bottom: -20%; left: auto; right: -10%;
    background: radial-gradient(circle, rgba(37,99,235,0.3) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(100px, 100px); } }

.dashboard-wrap {
    display: flex; min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px; background: rgba(10, 11, 16, 0.8); backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color); display: flex; flex-direction: column; padding: 2rem 1.5rem;
}
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.5rem; font-weight: 800; margin-bottom: 3rem; }
.logo i { color: #a78bfa; }
.logo span span { color: #a78bfa; font-weight: 300; }

.side-nav { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.side-nav a {
    display: flex; align-items: center; gap: 12px; color: var(--text-muted); text-decoration: none;
    padding: 12px 16px; border-radius: 12px; font-weight: 600; transition: all 0.3s;
}
.side-nav a:hover, .side-nav a.active {
    background: rgba(255, 255, 255, 0.05); color: var(--text-main);
}
.side-nav a.active { color: #a78bfa; background: rgba(109, 40, 217, 0.15); border: 1px solid rgba(109, 40, 217, 0.3); }

.server-status {
    background: var(--panel-bg); border: 1px solid var(--border-color); padding: 16px; border-radius: 16px; display: flex; align-items: center; gap: 12px;
}
.status-indicator { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.status-info strong { display: block; font-size: 0.9rem; }
.status-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Main Content */
.main-content {
    flex: 1; padding: 2.5rem 3rem; display: flex; flex-direction: column; gap: 2rem;
}

.top-bar { display: flex; justify-content: space-between; align-items: center; }
.top-bar h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; }

.card {
    background: var(--panel-bg); backdrop-filter: blur(24px); border: 1px solid var(--border-color);
    border-radius: 24px; padding: 2rem; width: 100%; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.card-header h2 { display: flex; align-items: center; gap: 10px; font-size: 1.4rem; margin-bottom: 8px; }
.card-header p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 2rem; }

.flex-group { display: flex; gap: 1.5rem; margin-bottom: 2rem; align-items: flex-end;}
.input-wrap, .toggle-wrap { flex: 1; display:flex; flex-direction:column; gap:0.5rem;}
label { font-size: 0.85rem; font-weight: 600; color: #cbd5e1; text-transform: uppercase; letter-spacing: 0.5px; }

input, select {
    background: rgba(0, 0, 0, 0.3); border: 1px solid rgba(255, 255, 255, 0.1);
    color: white; padding: 14px 16px; border-radius: 12px; font-size: 1rem; font-family: inherit; transition: all 0.3s;
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2); }

.action-wrap { display: flex; gap: 1rem; }
.btn {
    display: flex; align-items: center; gap: 8px; font-family: 'Outfit'; font-size: 1rem; font-weight: 600;
    padding: 14px 24px; border-radius: 12px; border: none; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.primary-btn { background: linear-gradient(135deg, var(--primary), var(--secondary)); box-shadow: 0 10px 20px -10px var(--primary); }
.danger-btn { background: rgba(225, 29, 72, 0.1); border: 1px solid var(--danger); color: #fda4af; }
.danger-btn:hover { background: var(--danger); box-shadow: 0 10px 20px -10px var(--danger); color: white;}
.update-btn { background: rgba(5, 150, 105, 0.1); border: 1px solid var(--update); color: #6ee7b7; }
.update-btn:hover { background: var(--update); box-shadow: 0 10px 20px -10px var(--update); color:white;}

.hidden { display: none; }
.update-panel { border-top: 1px dashed var(--border-color); margin-top: 2rem; padding-top: 2rem; animation: slideDown 0.3s ease; }
@keyframes slideDown { from {opacity:0; transform:translateY(-10px);} to {opacity:1; transform:translateY(0);} }

/* Two Columns Layout */
.two-columns { display: flex; gap: 2rem; width: 100%; align-items: flex-start;}
.list-card { flex: 2; display: flex; flex-direction: column;}
.side-card { flex: 1; display: flex; flex-direction: column; position: sticky; top: 2rem;}
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.full-width { width: 100%; justify-content: center;}
.divider { border: 0; height: 1px; background: rgba(255,255,255,0.05); margin: 2rem 0;}

/* Table List design */
.list-header { display: flex; justify-content: space-between; align-items: flex-start;}
.secondary-btn { background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); padding: 8px 16px; font-size: 0.9rem;}
.secondary-btn:hover { background: rgba(255,255,255,0.1); }
.list-container { overflow-x: auto; width: 100%; }
.hosting-table { width: 100%; border-collapse: collapse; text-align: left; }
.hosting-table th { padding: 1rem 1.5rem; background: rgba(0,0,0,0.4); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); border-bottom: 2px solid var(--border-color);}
.hosting-table td { padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.02); vertical-align: middle;}
.hosting-table tr:hover td { background: rgba(255,255,255,0.02); }
.hosting-table .td-domain { font-size: 1.1rem; color: #fff; }
.hosting-table .td-folder { font-family: monospace; color: #94a3b8; font-size: 0.9rem;}
.hosting-table .td-folder span { color: #818cf8; font-weight: bold;}
.badge { padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;}
.badge-online { background: rgba(16, 185, 129, 0.1); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3);}
.act-btn { background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-family: 'Outfit'; font-size: 0.85rem; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; margin-right: 5px;}
.delete-item-btn { color: #f43f5e; background: rgba(244, 63, 94, 0.1);}
.delete-item-btn:hover { background: #f43f5e; color: #fff;}
.edit-btn { color: #3b82f6; background: rgba(59, 130, 246, 0.1);}
.edit-btn:hover { background: #3b82f6; color: #fff;}

/* Console */
.console-card { padding: 1.5rem; }
.console-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem;}
.console-header h2 { margin:0; font-size:1.1rem; color:#a78bfa;}
.clear-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.clear-btn:hover { background: rgba(255,255,255,0.1); color: white;}
.console-box {
    background: #000; border-radius: 12px; padding: 1rem; height: 250px; overflow-y: auto;
    font-family: 'Courier New', Courier, monospace; font-size: 0.9rem; border: 1px solid #1e293b;
}
.log-line { margin-bottom: 0.5rem; border-bottom: 1px solid #0f172a; padding-bottom: 0.3rem;}
.log-success { color: #10b981; }
.log-error { color: #ef4444; }
.log-info { color: #3b82f6; }
