:root {
    --sidebar-bg: #1a1d21;
    --sidebar-text: #adb5bd;
    --sidebar-active: #0d6efd;
    --sidebar-width: 260px;
}

body {
    min-height: 100vh;
    background-color: #f8f9fa;
}

/* Sidebar */
.admin-sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background-color: var(--sidebar-bg);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    padding-top: 0;
    overflow-y: auto;
}

.admin-sidebar .brand {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
}

.admin-sidebar .brand i {
    color: var(--sidebar-active);
}

.admin-sidebar .nav-link {
    color: var(--sidebar-text);
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

.admin-sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.05);
}

.admin-sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(13,110,253,0.12);
    border-left-color: var(--sidebar-active);
}

.admin-sidebar .nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 0.5rem;
}

.admin-sidebar .section-label {
    padding: 1rem 1.5rem 0.3rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
}

/* Main content */
.admin-main {
    margin-left: var(--sidebar-width);
    padding: 1.5rem 2rem;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status-badge.online {
    background-color: rgba(25,135,84,0.12);
    color: #198754;
}

.status-badge.offline {
    background-color: rgba(220,53,69,0.12);
    color: #dc3545;
}

.status-badge.unknown {
    background-color: rgba(108,117,125,0.12);
    color: #6c757d;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online { background-color: #198754; }
.status-dot.offline { background-color: #dc3545; }
.status-dot.unknown { background-color: #6c757d; }

/* Service cards */
.service-card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: #fff;
    transition: box-shadow 0.15s;
}

.service-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Config editor */
.config-editor {
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    font-size: 0.85rem;
    min-height: 400px;
    resize: vertical;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.config-editor:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13,110,253,.25);
}

/* Toast / Alert for feedback */
.admin-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1060;
    min-width: 300px;
}

/* Loading spinner */
.loading-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}
