body.purple-admin {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: #f6f3fb;
}

/* Layout */
.purple-admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.purple-sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #eee;
    padding: 20px;
}

.sidebar-logo {
    font-size: 24px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 30px;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 8px;
    color: #555;
}

.sidebar-menu li.active,
.sidebar-menu li:hover {
    background: #ede9fe;
    color: #6d28d9;
}

/* Main */
.purple-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.purple-topbar {
    height: 70px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    border-bottom: 1px solid #eee;
}

/* Content */
.purple-content {
    padding: 30px;
}
.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 6px;
}

.sidebar-menu a,
.sidebar-menu span {
    display: block;
    padding: 10px 14px;
    border-radius: 8px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    font-size: 14px;
}

.sidebar-menu li.active > a,
.sidebar-menu li.active > span,
.sidebar-menu li a:hover {
    background: #ede9fe;
    color: #6d28d9;
}

.sidebar-menu .has-sub > ul {
    display: none;
    margin-left: 10px;
}

.sidebar-menu .has-sub.open > ul {
    display: block;
}

.sidebar-menu .has-sub > span::after {
    content: '▸';
    float: right;
    font-size: 12px;
}

.sidebar-menu .has-sub.open > span::after {
    content: '▾';
}

.sidebar-menu .has-sub ul li a {
    font-size: 13px;
    padding-left: 24px;
}

.purple-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}

.purple-table th,
.purple-table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 10px;
}

.purple-table th {
    background: #f8f7fc;
    font-weight: 600;
}

.purple-table tr:hover {
    background: #faf9ff;
}

/* Status Pills */
.status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.running {
    background: #dcfce7;
    color: #166534;
}

.status.degraded {
    background: #fef9c3;
    color: #854d0e;
}

.status.stopped {
    background: #fee2e2;
    color: #991b1b;
}

.vps-section {
    background: #fff;
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.vps-section h2 {
    margin-bottom: 14px;
    font-size: 16px;
    color: #4c1d95;
}

.vps-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    font-size: 14px;
}

.vps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.vps-list li {
    padding: 8px 12px;
    background: #f8f7fc;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 13px;
}

.vps-actions {
    display: flex;
    gap: 10px;
}

.vps-actions button {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: #e5e7eb;
    cursor: not-allowed;
}

.hint {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}



/* Log Filters */
.log-filters {
    margin-bottom: 16px;
}

.log-filters a {
    display: inline-block;
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 999px;
    font-size: 13px;
    text-decoration: none;
    background: #f1f5f9;
    color: #444;
}

.log-filters a.active {
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 600;
}

/* Log Levels */
.log-level {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
}

.log-level.info {
    background: #e0f2fe;
    color: #075985;
}

.log-level.warn {
    background: #fef3c7;
    color: #92400e;
}

.log-level.error {
    background: #fee2e2;
    color: #991b1b;
}

/* Log Row Highlights */
.log-error {
    background: #fff5f5;
}


.settings-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px dashed #eee;
}

.settings-row:last-child {
    border-bottom: none;
}

.settings-row .value {
    font-weight: 600;
    color: #111;
}



/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

/* Dashboard Cards */
.dashboard-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 24px;
}

.dashboard-card h2 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #4c1d95;
}

/* Overview */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric .label {
    font-size: 12px;
    color: #666;
}

.metric .value {
    font-size: 22px;
    font-weight: 700;
}

/* Health */
.health-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.health-note {
    margin-top: 12px;
    font-size: 12px;
    color: #666;
}

/* Alerts */
.alert-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert {
    display: grid;
    grid-template-columns: 120px 1fr 80px;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.alert.error {
    background: #fee2e2;
    color: #991b1b;
}

.alert.warning {
    background: #fef3c7;
    color: #92400e;
}

.alert.info {
    background: #e0f2fe;
    color: #075985;
}

.view-all {
    display: inline-block;
    margin-top: 10px;
    font-size: 13px;
    color: #6d28d9;
    text-decoration: none;
}



/* Alert Pills */
.alert-pill {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.alert-pill.critical {
    background: #fee2e2;
    color: #991b1b;
}

.alert-pill.warning {
    background: #fef3c7;
    color: #92400e;
}

.alert-pill.info {
    background: #e0f2fe;
    color: #075985;
}

/* Alert Rows */
.alert-critical {
    background: #fff5f5;
}

.alert-warning {
    background: #fffbeb;
}

.alert-info {
    background: #f0f9ff;
}

.alert-table button {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    background: #e5e7eb;
    cursor: not-allowed;
    font-size: 12px;
}



.status.running {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.degraded {
    background: #fef3c7;
    color: #92400e;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.status.stopped {
    background: #fee2e2;
    color: #991b1b;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}


.section-subtitle {
    color: #777;
    margin-top: -10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.status.unemployed {
    background: #ff9800;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

















.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    width: 400px;
}

.modal-content input {
    width: 100%;
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}





.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
    font-size: 12px;
    display: inline-block;
}

.status-online {
    background: #1e7e34;
    color: #fff;
}

.status-offline {
    background: #c82333;
    color: #fff;
}

.status-unknown {
    background: #6c757d;
    color: #fff;
}