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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e4e6eb;
    min-height: 100vh;
}

/* Login */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f1117 0%, #1a1d29 100%);
}
.login-box {
    background: #1a1d29;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    width: 360px;
    border: 1px solid #2a2d3a;
}
.login-box h1 { font-size: 28px; margin-bottom: 8px; }
.login-box p { color: #8b8fa3; margin-bottom: 24px; }
.login-box input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    background: #0f1117;
    color: #e4e6eb;
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}
.login-box button {
    width: 100%;
    padding: 12px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
.login-box button:hover { background: #2563eb; }
.error-msg {
    background: #ef4444;
    color: white;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Layout */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 220px;
    background: #1a1d29;
    border-right: 1px solid #2a2d3a;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
}
.sidebar .logo {
    font-size: 20px;
    font-weight: bold;
    padding: 0 20px 20px;
    border-bottom: 1px solid #2a2d3a;
}
.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #8b8fa3;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar a:hover { color: #e4e6eb; background: #2a2d3a; }
.sidebar a.active { color: #3b82f6; background: rgba(59,130,246,0.1); }
.sidebar .spacer { flex: 1; }

.content {
    margin-left: 220px;
    padding: 30px;
    max-width: 1200px;
}
h1 { font-size: 24px; margin-bottom: 24px; }
h2 { font-size: 18px; margin: 30px 0 15px; color: #8b8fa3; }

/* Cards */
.cards { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.card {
    background: #1a1d29;
    border: 1px solid #2a2d3a;
    border-radius: 12px;
    padding: 20px;
    min-width: 180px;
    flex: 1;
}
.card-title { color: #8b8fa3; font-size: 13px; margin-bottom: 6px; }
.card-value { font-size: 24px; font-weight: bold; }
.card-sub { color: #8b8fa3; font-size: 12px; margin-top: 4px; }
.card.revenue { border-color: #22c55e; }
.card.revenue .card-value { color: #22c55e; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
th, td { padding: 12px 16px; text-align: left; }
th { background: #1a1d29; color: #8b8fa3; font-size: 12px; text-transform: uppercase; }
td { border-bottom: 1px solid #2a2d3a; font-size: 14px; }
tr:hover { background: rgba(59,130,246,0.05); }
tr.banned td { opacity: 0.5; }
code { background: #2a2d3a; padding: 2px 6px; border-radius: 4px; font-size: 13px; }

/* Toolbar */
.toolbar { margin-bottom: 20px; }
.search-form { display: flex; gap: 8px; margin-bottom: 12px; }
.search-form input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    background: #1a1d29;
    color: #e4e6eb;
}
.filter-tabs { display: flex; gap: 4px; }
.filter-tabs a {
    padding: 8px 16px;
    color: #8b8fa3;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
}
.filter-tabs a:hover { background: #2a2d3a; }
.filter-tabs a.active { background: #3b82f6; color: white; }

/* Buttons */
button, .btn-sm, .btn-primary {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
}
button, .btn-primary { background: #3b82f6; color: white; }
button:hover, .btn-primary:hover { background: #2563eb; }
button.danger { background: #ef4444; }
button.danger:hover { background: #dc2626; }
.btn-sm { background: #2a2d3a; color: #e4e6eb; padding: 6px 12px; }
.btn-sm:hover { background: #3a3d4a; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; color: #8b8fa3; font-size: 14px; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 10px 16px;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    background: #1a1d29;
    color: #e4e6eb;
    font-size: 14px;
}
.form-group textarea { resize: vertical; }

/* Actions */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.inline-form { display: inline-flex; gap: 4px; align-items: center; }
.inline-form input[type="number"] {
    width: 60px;
    padding: 8px;
    border: 1px solid #2a2d3a;
    border-radius: 8px;
    background: #1a1d29;
    color: #e4e6eb;
}

/* Detail header */
.detail-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }

/* Progress bar */
.progress-bar {
    width: 120px;
    height: 8px;
    background: #2a2d3a;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #3b82f6;
    border-radius: 4px;
    transition: width 0.3s;
}
.progress-fill.warning { background: #f59e0b; }
.progress-fill.danger { background: #ef4444; }

/* Pagination */
.pagination { display: flex; gap: 8px; align-items: center; margin-top: 16px; }

/* Result box */
.result-box { padding: 16px; border-radius: 8px; margin-bottom: 20px; }
.result-box.success { background: rgba(34,197,94,0.15); border: 1px solid #22c55e; color: #22c55e; }

/* Server card */
.server-card {
    background: #1a1d29;
    border: 1px solid #2a2d3a;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
}
.server-card h2 { margin: 0 0 16px; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 100%; height: 60px; bottom: auto; flex-direction: row; overflow-x: auto; }
    .content { margin-left: 0; margin-top: 60px; padding: 16px; }
    .cards { flex-direction: column; }
}


/* Forms row */
.form-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.form-row .form-group { flex: 1; min-width: 120px; }
.add-form { margin-bottom: 24px; }
.settings-section { margin-bottom: 30px; }
