:root {
    --dash-bg: #f4f7f6;
    --dash-sidebar: #2c3e50;
    --dash-card: #ffffff;
    --dash-text: #333333;
    --dash-text-light: #7f8c8d;
    --dash-accent: #e74c3c;
    --dash-accent-hover: #c0392b;
    --dash-border: #e0e6ed;
    --dash-green: #27ae60;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background: var(--dash-bg); color: var(--dash-text); display: flex; min-height: 100vh; overflow-x: hidden;}
a { text-decoration: none; color: inherit; }

/* Dashboard Sidebar */
.dash-sidebar {
    width: 250px; background: var(--dash-sidebar); color: #fff;
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0; left: 0;
}
.sidebar-header {
    padding: 20px; text-align: center; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-header h2 { font-size: 20px; font-weight: 600; letter-spacing: 1px; margin-bottom: 5px;}
.sidebar-header span { font-size: 12px; color: #bdc3c7; background: rgba(0,0,0,0.2); padding: 2px 6px; border-radius: 4px;}

.sidebar-nav { flex: 1; padding: 20px 0; }
.sidebar-nav a {
    display: block; padding: 15px 25px; color: #bdc3c7; font-size: 15px; border-left: 3px solid transparent;
    transition: all 0.3s;
}
.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(255,255,255,0.05); color: #fff; border-left-color: var(--dash-accent);
}

.sidebar-footer { padding: 20px; font-size: 12px; color: #7f8c8d; text-align: center; }

/* Dashboard Main */
.dash-main { margin-left: 250px; flex: 1; display: flex; flex-direction: column; }

.topbar {
    background: var(--dash-card); padding: 15px 30px; display: flex; justify-content: flex-end;
    align-items: center; box-shadow: 0 2px 10px rgba(0,0,0,0.02); z-index: 10;
}
.status-pill {
    background: rgba(39, 174, 96, 0.1); color: var(--dash-green); padding: 6px 15px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.status-pill::before { content: ''; display: inline-block; width: 8px; height: 8px; background: var(--dash-green); border-radius: 50%; margin-right: 8px;}

.content-area { padding: 30px; }

/* Grid Layouts */
.grid-row { display: grid; gap: 20px; margin-bottom: 20px; }
.col-4 { grid-template-columns: repeat(4, 1fr); }
.col-2 { grid-template-columns: 2fr 1fr; }
.col-3-eq { grid-template-columns: repeat(3, 1fr); }

/* Dashboard Cards */
.card {
    background: var(--dash-card); border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    padding: 25px; border: 1px solid var(--dash-border); position: relative; overflow: hidden;
}
.card-header { font-size: 14px; color: var(--dash-text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 15px;}

/* Stat Cards */
.stat-value { font-size: 28px; font-weight: bold; margin-bottom: 5px; }
.stat-sub { font-size: 12px; color: var(--dash-text-light); }

/* Hero Card */
.hero-card { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); color: #fff; border: none; }
.hero-card .card-header { color: #bdc3c7; }
.hero-card h1 { font-size: 32px; margin-bottom: 15px; line-height: 1.3;}
.hero-card p { font-size: 15px; color: #ecf0f1; margin-bottom: 25px; max-width: 80%; line-height: 1.6;}
.btn {
    display: inline-block; padding: 12px 25px; background: var(--dash-accent); color: #fff;
    border-radius: 4px; font-size: 14px; font-weight: 500; transition: background 0.3s; border: none; cursor: pointer;
}
.btn:hover { background: var(--dash-accent-hover); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* Toggle List */
.toggle-item { display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--dash-border);}
.toggle-item:last-child { border-bottom: none; padding-bottom: 0;}
.toggle-info h4 { font-size: 15px; margin-bottom: 5px; }
.toggle-info p { font-size: 13px; color: var(--dash-text-light); }
.switch { position: relative; display: inline-block; width: 40px; height: 20px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 20px; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 2px; bottom: 2px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--dash-green); }
input:checked + .slider:before { transform: translateX(20px); }

/* Server List */
.server-list { list-style: none; }
.server-list li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--dash-border); font-size: 14px;}
.server-list li:last-child { border-bottom: none; }
.s-name { font-weight: 500; }
.s-ping { color: var(--dash-green); font-size: 12px; font-weight: bold;}

/* Accordion for FAQ */
.faq-item { margin-bottom: 10px; border: 1px solid var(--dash-border); border-radius: 4px; overflow: hidden;}
.faq-q { padding: 15px; background: #f9fbfb; cursor: pointer; font-weight: 500; font-size: 15px; display: flex; justify-content: space-between; align-items: center;}
.faq-q::after { content: '+'; color: var(--dash-text-light); font-weight: bold;}
.faq-a { padding: 0 15px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; font-size: 14px; color: var(--dash-text-light); line-height: 1.6; background: #fff;}
.faq-item.active .faq-q::after { content: '-'; }
.faq-item.active .faq-a { padding: 15px; max-height: 300px; border-top: 1px solid var(--dash-border);}

@media (max-width: 900px) {
    .dash-sidebar { transform: translateX(-100%); z-index: 100;}
    .dash-main { margin-left: 0; }
    .col-4, .col-2, .col-3-eq { grid-template-columns: 1fr; }
    .hero-card p { max-width: 100%; }
}