:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --surface-hover: #f1f5f9;

    --border: #e2e8f0;
    --border-soft: #edf2f7;

    --text: #172033;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-border: #bfdbfe;

    --success: #16a34a;
    --success-soft: #f0fdf4;

    --warning: #d97706;
    --warning-soft: #fffbeb;

    --danger: #dc2626;
    --danger-soft: #fef2f2;

    --violet: #7c3aed;
    --orange: #ea580c;

    --sidebar-width: 258px;
    --topbar-height: 72px;

    --radius: 12px;
    --shadow-sm: 0 1px 2px rgba(15,23,42,.04);
    --shadow: 0 4px 14px rgba(15,23,42,.06);
    --shadow-lg: 0 14px 40px rgba(15,23,42,.10);
}

[data-accent="indigo"] {
    --primary:#4f46e5;
    --primary-hover:#4338ca;
    --primary-soft:#eef2ff;
    --primary-border:#c7d2fe;
}

[data-accent="emerald"] {
    --primary:#059669;
    --primary-hover:#047857;
    --primary-soft:#ecfdf5;
    --primary-border:#a7f3d0;
}

[data-accent="violet"] {
    --primary:#7c3aed;
    --primary-hover:#6d28d9;
    --primary-soft:#f5f3ff;
    --primary-border:#ddd6fe;
}

[data-accent="orange"] {
    --primary:#ea580c;
    --primary-hover:#c2410c;
    --primary-soft:#fff7ed;
    --primary-border:#fed7aa;
}

[data-accent="rose"] {
    --primary:#e11d48;
    --primary-hover:#be123c;
    --primary-soft:#fff1f2;
    --primary-border:#fecdd3;
}

[data-theme="dark"] {
    --bg:#f4f7fb;
}

* {
    box-sizing:border-box;
}

html,
body {
    margin:0;
    min-height:100%;
}

body {
    background:var(--bg);
    color:var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size:14px;
    -webkit-font-smoothing:antialiased;
}

button,
input,
select {
    font:inherit;
}

button {
    cursor:pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline:3px solid color-mix(in srgb,var(--primary) 20%,transparent);
    outline-offset:1px;
}

.login-screen {
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    position:relative;
    overflow:hidden;
    background:#f4f8fd;
}

.login-background {
    position:absolute;
    inset:0;
    background:
        radial-gradient(circle at 20% 15%,rgba(37,99,235,.10),transparent 30%),
        radial-gradient(circle at 80% 85%,rgba(14,165,233,.08),transparent 28%);
}

.login-card {
    width:min(440px,100%);
    position:relative;
    z-index:1;
    background:rgba(255,255,255,.96);
    border:1px solid var(--border);
    border-radius:20px;
    padding:38px;
    box-shadow:var(--shadow-lg);
}

.login-brand {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-bottom:34px;
}

.brand-logo {
    width:48px;
    height:48px;
    border-radius:13px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:linear-gradient(145deg,#2f8cff,#155bd7);
    box-shadow:0 8px 20px rgba(37,99,235,.20);
    font-weight:900;
    font-size:22px;
}

.brand-logo.small {
    width:38px;
    height:38px;
    border-radius:10px;
    font-size:18px;
    flex:0 0 auto;
}

.brand-name {
    font-size:19px;
    font-weight:800;
    letter-spacing:-.02em;
}

.brand-caption {
    font-size:11px;
    color:var(--text-muted);
    margin-top:2px;
}

.login-heading {
    text-align:center;
    margin-bottom:26px;
}

.login-heading h1 {
    margin:0;
    font-size:27px;
    letter-spacing:-.03em;
}

.login-heading p {
    margin:8px 0 0;
    color:var(--text-secondary);
}

.field {
    margin-bottom:17px;
}

.field label {
    display:block;
    margin-bottom:7px;
    font-size:12px;
    font-weight:700;
    color:#475569;
}

.input-wrap {
    position:relative;
    display:flex;
    align-items:center;
}

.input-icon {
    position:absolute;
    left:13px;
    color:var(--text-muted);
    font-size:13px;
    pointer-events:none;
}

.input-wrap input {
    width:100%;
    height:46px;
    padding:0 14px 0 39px;
    border:1px solid var(--border);
    border-radius:9px;
    color:var(--text);
    background:#fff;
}

.input-wrap input:focus {
    border-color:var(--primary);
}

.input-action {
    position:absolute;
    right:8px;
    border:0;
    background:var(--surface-soft);
    color:var(--primary);
    padding:5px 8px;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
}

.login-error {
    min-height:20px;
    color:var(--danger);
    font-size:12px;
    text-align:center;
    margin:2px 0 9px;
}

.login-button {
    width:100%;
    height:46px;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:10px;
    border:0;
    border-radius:9px;
    background:var(--primary);
    color:#fff;
    font-weight:700;
    box-shadow:0 6px 14px color-mix(in srgb,var(--primary) 22%,transparent);
}

.login-button:hover {
    background:var(--primary-hover);
}

.login-security {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:7px;
    margin-top:22px;
    color:var(--text-muted);
    font-size:11px;
}

.security-dot,
.status-indicator {
    width:7px;
    height:7px;
    display:inline-block;
    border-radius:50%;
    background:var(--success);
    flex:0 0 auto;
}

.app-shell {
    min-height:100vh;
}

.sidebar {
    position:fixed;
    z-index:100;
    inset:0 auto 0 0;
    width:var(--sidebar-width);
    background:#fff;
    border-right:1px solid var(--border);
    display:flex;
    flex-direction:column;
}

.sidebar-brand {
    height:var(--topbar-height);
    padding:0 20px;
    display:flex;
    align-items:center;
    gap:11px;
    border-bottom:1px solid var(--border-soft);
}

.sidebar-brand-text {
    display:flex;
    flex-direction:column;
}

.sidebar-brand-text strong {
    font-size:16px;
    line-height:1;
}

.sidebar-brand-text span {
    color:var(--text-muted);
    font-size:10px;
    margin-top:4px;
}

.sidebar-search {
    margin:16px 14px 7px;
    height:38px;
    border:1px solid var(--border);
    border-radius:8px;
    display:flex;
    align-items:center;
    padding:0 9px;
    color:var(--text-muted);
    background:var(--surface-soft);
}

.sidebar-search input {
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    background:transparent;
    color:var(--text);
    padding:0 7px;
    font-size:12px;
}

.sidebar-search kbd {
    border:1px solid var(--border);
    background:#fff;
    color:var(--text-muted);
    border-radius:4px;
    padding:2px 4px;
    font-size:9px;
}

.navigation {
    flex:1;
    overflow:auto;
    padding:4px 12px;
}

.nav-section {
    margin:12px 0 20px;
}

.nav-section-title {
    color:#94a3b8;
    font-size:10px;
    text-transform:uppercase;
    letter-spacing:.10em;
    font-weight:800;
    padding:0 10px 7px;
}

.nav-item {
    width:100%;
    min-height:39px;
    border:1px solid transparent;
    background:transparent;
    color:#64748b;
    display:flex;
    align-items:center;
    gap:11px;
    padding:0 10px;
    border-radius:8px;
    margin:2px 0;
    text-align:left;
    font-size:12px;
    font-weight:600;
}

.nav-item:hover {
    background:#f8fafc;
    color:var(--text);
}

.nav-item.active {
    background:var(--primary-soft);
    border-color:var(--primary-border);
    color:var(--primary);
}

.nav-icon {
    width:19px;
    text-align:center;
    font-size:15px;
    color:#94a3b8;
}

.nav-item.active .nav-icon {
    color:var(--primary);
}

.sidebar-bottom {
    padding:12px;
    border-top:1px solid var(--border-soft);
}

.settings-item {
    margin-bottom:10px;
}

.server-status {
    border:1px solid #dcfce7;
    background:#f7fef9;
    border-radius:9px;
    padding:10px;
    display:flex;
    align-items:center;
    gap:9px;
}

.server-status strong,
.server-status span {
    display:block;
}

.server-status strong {
    color:#334155;
    font-size:10px;
}

.server-status div span {
    color:#16a34a;
    font-size:10px;
    margin-top:2px;
}

.main-area {
    margin-left:var(--sidebar-width);
    min-height:100vh;
}

.topbar {
    height:var(--topbar-height);
    position:sticky;
    top:0;
    z-index:80;
    background:rgba(255,255,255,.94);
    backdrop-filter:blur(12px);
    border-bottom:1px solid var(--border);
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 26px;
}

.topbar-left {
    display:flex;
    align-items:center;
    gap:12px;
}

.page-title {
    font-size:15px;
    font-weight:800;
}

.breadcrumb {
    color:var(--text-muted);
    font-size:10px;
    margin-top:3px;
}

.topbar-actions {
    display:flex;
    align-items:center;
    gap:8px;
}

.topbar-search {
    height:36px;
    min-width:210px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    color:var(--text-muted);
    font-size:11px;
    text-align:left;
}

.topbar-search kbd {
    margin-left:auto;
    border:1px solid var(--border);
    border-radius:4px;
    padding:2px 5px;
    color:#94a3b8;
    font-size:9px;
}

.icon-button {
    width:36px;
    height:36px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    color:#64748b;
    position:relative;
}

.icon-button:hover {
    color:var(--primary);
    border-color:var(--primary-border);
}

.notification-dot {
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--danger);
    position:absolute;
    top:8px;
    right:8px;
    border:1px solid #fff;
}

.topbar-divider {
    height:28px;
    width:1px;
    background:var(--border);
    margin:0 4px;
}

.user-menu {
    display:flex;
    align-items:center;
    gap:8px;
    border:0;
    background:transparent;
    padding:3px;
    color:var(--text);
    text-align:left;
}

.user-avatar {
    width:32px;
    height:32px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:8px;
    background:var(--primary-soft);
    color:var(--primary);
    font-weight:800;
    font-size:12px;
}

.user-details strong,
.user-details small {
    display:block;
}

.user-details strong {
    font-size:11px;
}

.user-details small {
    color:var(--text-muted);
    font-size:9px;
    margin-top:2px;
}

.user-chevron {
    color:var(--text-muted);
    margin-left:3px;
}

.logout-button {
    height:34px;
    border:1px solid #fecaca;
    background:#fff7f7;
    color:#dc2626;
    border-radius:8px;
    padding:0 10px;
    font-size:11px;
    font-weight:700;
}

.mobile-menu {
    display:none;
    width:35px;
    height:35px;
    border:1px solid var(--border);
    border-radius:8px;
    background:#fff;
    color:#64748b;
}

.page-content {
    padding:28px;
    max-width:1700px;
    margin:0 auto;
}

.view {
    display:none;
}

.view.active {
    display:block;
}

.page-heading {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:22px;
}

.page-heading h1 {
    margin:0;
    font-size:24px;
    letter-spacing:-.03em;
}

.page-heading p {
    margin:6px 0 0;
    color:var(--text-secondary);
    font-size:12px;
}

.heading-actions {
    display:flex;
    align-items:center;
    gap:8px;
}

.health-badge,
.live-badge {
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:7px 10px;
    border-radius:7px;
    font-size:10px;
    font-weight:700;
}

.health-badge {
    background:var(--success-soft);
    border:1px solid #bbf7d0;
    color:#15803d;
}

.live-badge {
    background:var(--primary-soft);
    border:1px solid var(--primary-border);
    color:var(--primary);
}

.metrics-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
}

.metric-card,
.card {
    background:var(--surface);
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow-sm);
}

.metric-card {
    padding:18px;
}

.metric-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
}

.metric-label {
    display:block;
    color:#475569;
    font-size:11px;
    font-weight:800;
}

.metric-description {
    display:block;
    color:var(--text-muted);
    font-size:9px;
    margin-top:3px;
}

.metric-icon {
    width:32px;
    height:32px;
    border-radius:8px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:14px;
}

.metric-icon.blue,
.quick-action-icon.blue {
    background:var(--primary-soft);
    color:var(--primary);
}

.metric-icon.violet,
.quick-action-icon.violet {
    background:#f5f3ff;
    color:#7c3aed;
}

.metric-icon.orange,
.quick-action-icon.orange {
    background:#fff7ed;
    color:#ea580c;
}

.metric-icon.green,
.quick-action-icon.green {
    background:#f0fdf4;
    color:#16a34a;
}

.metric-main {
    display:flex;
    align-items:baseline;
    gap:6px;
    margin:17px 0 11px;
}

.metric-main strong {
    font-size:26px;
    letter-spacing:-.04em;
}

.metric-main span {
    color:var(--text-muted);
    font-size:10px;
}

.uptime-main {
    margin-bottom:18px;
}

.progress {
    width:100%;
    height:6px;
    background:#eef2f7;
    border-radius:999px;
    overflow:hidden;
}

.progress-value {
    height:100%;
    width:0;
    border-radius:999px;
    transition:width .4s ease;
}

.progress-value.blue {
    background:var(--primary);
}

.progress-value.violet {
    background:#7c3aed;
}

.progress-value.orange {
    background:#ea580c;
}

.metric-footer {
    display:flex;
    justify-content:space-between;
    margin-top:9px;
    color:var(--text-muted);
    font-size:9px;
}

.uptime-status {
    color:#16a34a;
    font-size:10px;
    display:flex;
    align-items:center;
    gap:6px;
}

.dashboard-grid {
    display:grid;
    grid-template-columns:1.35fr .65fr;
    gap:14px;
    margin-top:14px;
}

.dashboard-grid.lower {
    grid-template-columns:1fr 1fr;
}

.card {
    padding:19px;
}

.card-header {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:15px;
    margin-bottom:17px;
}

.card-header h2 {
    margin:0;
    font-size:13px;
}

.card-header p {
    margin:4px 0 0;
    color:var(--text-muted);
    font-size:10px;
}

.card-header select {
    height:31px;
    border:1px solid var(--border);
    border-radius:7px;
    background:#fff;
    color:#64748b;
    padding:0 8px;
    font-size:10px;
}

.text-button {
    border:0;
    background:transparent;
    color:var(--primary);
    font-size:10px;
    font-weight:700;
}

.performance-placeholder {
    height:220px;
    position:relative;
    overflow:hidden;
    border:1px solid var(--border-soft);
    border-radius:8px;
    background:
        repeating-linear-gradient(
            to bottom,
            transparent 0,
            transparent 43px,
            #eef2f7 44px
        );
}

.performance-grid-lines {
    position:absolute;
    inset:0;
    background:
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent 13.9%,
            rgba(226,232,240,.65) 14%
        );
}

.performance-line {
    position:absolute;
    left:2%;
    right:2%;
    top:48%;
    height:70px;
    display:flex;
    align-items:center;
    gap:1.5%;
}

.performance-line span {
    width:12%;
    height:45%;
    border-radius:999px;
    background:linear-gradient(180deg,
        color-mix(in srgb,var(--primary) 70%,white),
        color-mix(in srgb,var(--primary) 20%,white)
    );
}

.performance-line span:nth-child(2),
.performance-line span:nth-child(6) {
    height:72%;
}

.performance-line span:nth-child(3),
.performance-line span:nth-child(7) {
    height:55%;
}

.performance-line span:nth-child(4) {
    height:88%;
}

.performance-axis {
    position:absolute;
    left:14px;
    right:14px;
    bottom:8px;
    display:flex;
    justify-content:space-between;
    color:#a0aec0;
    font-size:8px;
}

.health-list {
    display:flex;
    flex-direction:column;
}

.loading-row {
    padding:25px;
    color:var(--text-muted);
    text-align:center;
    font-size:11px;
}

.health-item {
    display:flex;
    align-items:center;
    gap:10px;
    padding:11px 0;
    border-bottom:1px solid var(--border-soft);
}

.health-item:last-child {
    border-bottom:0;
}

.health-item-icon {
    width:31px;
    height:31px;
    border-radius:7px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f8fafc;
    color:#64748b;
}

.health-item-info {
    flex:1;
    min-width:0;
}

.health-item-info strong {
    display:block;
    font-size:11px;
}

.health-item-info small {
    display:block;
    color:var(--text-muted);
    margin-top:3px;
    font-size:9px;
}

.health-item-status {
    display:flex;
    align-items:center;
    gap:5px;
    color:#16a34a;
    font-size:9px;
    font-weight:700;
}

.information-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.information-item {
    padding:12px;
    background:var(--surface-soft);
    border:1px solid var(--border-soft);
    border-radius:8px;
}

.information-item span,
.information-item strong {
    display:block;
}

.information-item span {
    color:var(--text-muted);
    font-size:9px;
}

.information-item strong {
    color:#334155;
    font-size:11px;
    margin-top:4px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.quick-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
}

.quick-action {
    border:1px solid var(--border);
    background:#fff;
    border-radius:8px;
    padding:10px;
    display:flex;
    align-items:center;
    gap:9px;
    text-align:left;
    color:var(--text);
}

.quick-action:hover {
    border-color:var(--primary-border);
    background:var(--primary-soft);
}

.quick-action > span:nth-child(2) {
    flex:1;
    min-width:0;
}

.quick-action strong,
.quick-action small {
    display:block;
}

.quick-action strong {
    font-size:10px;
}

.quick-action small {
    color:var(--text-muted);
    font-size:8px;
    margin-top:2px;
}

.quick-action > span:last-child {
    color:var(--text-muted);
}

.quick-action-icon {
    width:29px;
    height:29px;
    border-radius:7px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.module-placeholder {
    min-height:360px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    box-shadow:var(--shadow-sm);
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    text-align:center;
}

.placeholder-icon {
    width:58px;
    height:58px;
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary-soft);
    color:var(--primary);
    font-size:24px;
    margin-bottom:14px;
}

.module-placeholder h2 {
    margin:0;
    font-size:17px;
}

.module-placeholder p {
    color:var(--text-muted);
    font-size:11px;
}

.settings-layout {
    display:grid;
    grid-template-columns:190px 1fr;
    gap:14px;
}

.settings-nav {
    background:#fff;
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:8px;
    height:max-content;
}

.settings-tab {
    width:100%;
    border:0;
    background:transparent;
    border-radius:7px;
    color:#64748b;
    padding:10px;
    text-align:left;
    display:flex;
    align-items:center;
    gap:9px;
    font-size:11px;
    font-weight:600;
}

.settings-tab:hover {
    background:#f8fafc;
}

.settings-tab.active {
    background:var(--primary-soft);
    color:var(--primary);
}

.settings-content {
    min-height:400px;
}

.settings-panel {
    display:none;
}

.settings-panel.active {
    display:block;
}

.settings-title {
    padding-bottom:20px;
    border-bottom:1px solid var(--border-soft);
}

.settings-title h2 {
    margin:0;
    font-size:15px;
}

.settings-title p {
    margin:5px 0 0;
    color:var(--text-muted);
    font-size:10px;
}

.setting-row {
    padding:22px 0;
    border-bottom:1px solid var(--border-soft);
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:25px;
}

.setting-row:last-child {
    border-bottom:0;
}

.setting-row strong {
    display:block;
    font-size:12px;
}

.setting-row p {
    margin:5px 0 0;
    color:var(--text-muted);
    font-size:10px;
}

.theme-options {
    display:flex;
    gap:8px;
}

.theme-option {
    width:82px;
    border:1px solid var(--border);
    background:#fff;
    border-radius:8px;
    padding:6px;
    color:#64748b;
}

.theme-option.active {
    border-color:var(--primary);
    box-shadow:0 0 0 2px var(--primary-soft);
}

.theme-preview {
    height:42px;
    border-radius:5px;
    display:block;
    margin-bottom:6px;
}

.light-preview {
    background:linear-gradient(135deg,#fff 50%,#e2e8f0 50%);
}

.dark-preview {
    background:linear-gradient(135deg,#0f172a 50%,#1e293b 50%);
}

.system-preview {
    background:linear-gradient(135deg,#fff 50%,#1e293b 50%);
}

.theme-option strong {
    font-size:9px;
}

.accent-options {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    max-width:440px;
}

.accent-option {
    border:1px solid var(--border);
    background:#fff;
    border-radius:7px;
    padding:7px 9px;
    display:flex;
    align-items:center;
    gap:6px;
    color:#64748b;
    font-size:10px;
}

.accent-option.active {
    border-color:var(--primary);
    color:var(--primary);
    background:var(--primary-soft);
}

.accent-option span {
    width:11px;
    height:11px;
    border-radius:50%;
    background:var(--swatch);
}

.setting-value {
    display:flex;
    align-items:center;
    gap:6px;
    color:#16a34a;
    font-size:10px;
    font-weight:700;
}

.sidebar-overlay {
    display:none;
}

.toast-container {
    position:fixed;
    right:20px;
    bottom:20px;
    z-index:300;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.toast {
    min-width:260px;
    max-width:360px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:9px;
    box-shadow:var(--shadow-lg);
    padding:12px 14px;
    font-size:11px;
    animation:toast-in .2s ease;
}

.toast.success {
    border-left:3px solid var(--success);
}

.toast.error {
    border-left:3px solid var(--danger);
}

@keyframes toast-in {
    from {
        opacity:0;
        transform:translateY(8px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

@media(max-width:1200px) {
    .metrics-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .dashboard-grid,
    .dashboard-grid.lower {
        grid-template-columns:1fr;
    }

    .topbar-search {
        min-width:160px;
    }
}

@media(max-width:900px) {
    .sidebar {
        transform:translateX(-100%);
        transition:transform .2s ease;
        box-shadow:20px 0 45px rgba(15,23,42,.15);
    }

    .sidebar.open {
        transform:translateX(0);
    }

    .sidebar-overlay {
        position:fixed;
        inset:0;
        background:rgba(15,23,42,.25);
        z-index:90;
    }

    .sidebar-overlay.visible {
        display:block;
    }

    .main-area {
        margin-left:0;
    }

    .mobile-menu {
        display:block;
    }

    .topbar-search {
        display:none;
    }

    .user-details,
    .user-chevron {
        display:none;
    }
}

@media(max-width:650px) {
    .page-content {
        padding:18px;
    }

    .topbar {
        padding:0 15px;
    }

    .logout-button {
        display:none;
    }

    .heading-actions {
        display:none;
    }

    .metrics-grid {
        grid-template-columns:1fr;
    }

    .information-grid,
    .quick-actions {
        grid-template-columns:1fr;
    }

    .settings-layout {
        grid-template-columns:1fr;
    }

    .theme-options {
        flex-wrap:wrap;
    }

    .setting-row {
        flex-direction:column;
    }

    .page-heading h1 {
        font-size:21px;
    }

    .login-card {
        padding:28px 22px;
    }
}
/* =========================================================
   Database Center
   ========================================================= */

.database-metrics {
  margin-bottom: 24px;
}

.database-status-card,
.database-table-card {
  margin-top: 24px;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

.data-table th {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.data-table td {
  font-size: 14px;
  color: #334155;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.database-version {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.database-version > span {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
}

.database-version pre {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font: 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-x: auto;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}

.info-item {
  padding: 15px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f8fafc;
}

.info-item span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: #64748b;
}

.info-item strong {
  display: block;
  color: #1e293b;
  font-size: 15px;
}

.health-badge.healthy {
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
}

.health-badge.unhealthy {
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
}

@media (max-width: 700px) {
  .data-table th,
  .data-table td {
    padding: 10px 12px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   DOCKER CENTER
   ========================================================= */

.docker-metrics {
    margin-bottom: 20px;
}

.docker-daemon-card,
.docker-container-card,
.docker-detail-card {
    margin-bottom: 20px;
}

.docker-daemon-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    font-size: 13px;
    font-weight: 600;
}

.docker-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12);
}

.docker-info-grid,
.docker-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--border, #e2e8f0);
}

.docker-info-grid > div,
.docker-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 15px;
    background: var(--card, #fff);
}

.docker-info-grid span,
.docker-detail-grid span {
    color: #64748b;
    font-size: 12px;
}

.docker-info-grid strong,
.docker-detail-grid strong {
    color: var(--text, #172033);
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.docker-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.docker-table th {
    white-space: nowrap;
}

.docker-table td {
    vertical-align: middle;
}

.docker-name-cell {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 130px;
}

.docker-name-cell strong {
    color: var(--text, #172033);
    font-weight: 600;
}

.docker-name-cell small,
.docker-status-detail {
    color: #64748b;
    font-size: 11px;
}

.docker-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.docker-status-running {
    background: rgba(22, 163, 74, 0.10);
    color: #15803d;
}

.docker-status-paused {
    background: rgba(234, 179, 8, 0.12);
    color: #a16207;
}

.docker-status-created {
    background: rgba(59, 130, 246, 0.10);
    color: #2563eb;
}

.docker-status-stopped {
    background: rgba(100, 116, 139, 0.10);
    color: #475569;
}

.docker-status-detail {
    display: block;
    margin-top: 4px;
    max-width: 190px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.docker-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 210px;
}

.btn-sm {
    padding: 6px 9px;
    font-size: 12px;
}

.docker-empty {
    padding: 22px 14px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
}

.docker-detail-section {
    margin-top: 22px;
}

.docker-detail-section h3 {
    margin: 0 0 5px;
    color: var(--text, #172033);
    font-size: 15px;
}

.docker-detail-section p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.docker-detail-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.docker-detail-title-row h3 {
    margin-bottom: 3px;
}

.docker-detail-title-row p {
    margin: 0;
}

.docker-log-output {
    min-height: 220px;
    max-height: 460px;
    overflow: auto;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;
    background: #0f172a;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.docker-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 100px;
    padding: 24px;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    background: var(--card, #fff);
    color: #64748b;
}

.docker-loading strong {
    display: block;
    margin-bottom: 3px;
    color: var(--text, #172033);
}

.docker-spinner {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    border: 2px solid #dbeafe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: docker-spin .8s linear infinite;
}

@keyframes docker-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 1100px) {
    .docker-info-grid,
    .docker-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .docker-resource-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .docker-info-grid,
    .docker-detail-grid {
        grid-template-columns: 1fr;
    }

    .docker-actions {
        min-width: 0;
    }

    .docker-detail-title-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =========================================================
   BACKUP CENTER
   ========================================================= */

.backup-loading {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    padding: 32px;
}

.backup-loading > div:last-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.backup-loading strong {
    font-size: 15px;
}

.backup-loading span {
    color: var(--muted, #64748b);
    font-size: 13px;
}

.backup-spinner {
    width: 26px;
    height: 26px;
    border: 3px solid rgba(37, 99, 235, .18);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: backup-spin .8s linear infinite;
}

@keyframes backup-spin {
    to { transform: rotate(360deg); }
}

.backup-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.backup-summary-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 108px;
    padding: 18px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.backup-summary-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-size: 20px;
}

.backup-summary-card > div:last-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.backup-summary-label {
    color: var(--muted, #64748b);
    font-size: 12px;
}

.backup-summary-card strong {
    font-size: 20px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.backup-summary-card small {
    color: var(--muted, #64748b);
    font-size: 11px;
    overflow-wrap: anywhere;
}

.backup-info-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px;
    margin-bottom: 18px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
}

.backup-info-main {
    display: flex;
    align-items: center;
    gap: 15px;
}

.backup-info-icon {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-size: 22px;
}

.backup-info-main h2 {
    margin: 0 0 5px;
    font-size: 17px;
}

.backup-info-main p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.55;
}

.backup-scope {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.backup-scope > span {
    color: var(--muted, #64748b);
    font-size: 12px;
    font-weight: 600;
}

.backup-tag,
.backup-content-tags span {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    margin: 2px;
    border-radius: 7px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: 11px;
    font-weight: 600;
}

.backup-list-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
}

.backup-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.backup-list-header h2 {
    margin: 0 0 4px;
    font-size: 16px;
}

.backup-list-header p {
    margin: 0;
    color: var(--muted, #64748b);
    font-size: 12px;
}

.backup-count {
    min-width: 30px;
    height: 30px;
    padding: 0 8px;
    display: inline-grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
    font-size: 12px;
    font-weight: 700;
}

.backup-table-wrap {
    overflow-x: auto;
}

.backup-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.backup-table th,
.backup-table td {
    padding: 13px 18px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--border, #e5e7eb);
}

.backup-table th {
    color: var(--muted, #64748b);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: rgba(148, 163, 184, .035);
}

.backup-table tbody tr:last-child td {
    border-bottom: 0;
}

.backup-name {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 210px;
}

.backup-file-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    border-radius: 9px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
}

.backup-name div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.backup-name strong {
    font-size: 12px;
    overflow-wrap: anywhere;
}

.backup-name small {
    color: var(--muted, #64748b);
    font-size: 10px;
}

.backup-content-tags {
    min-width: 170px;
}

.backup-content-tags span {
    background: rgba(100, 116, 139, .09);
    color: var(--text, #334155);
}

.backup-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #15803d;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.backup-status > span {
    font-size: 9px;
}

.backup-empty {
    padding: 52px 25px;
    text-align: center;
}

.backup-empty-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 15px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: rgba(37, 99, 235, .08);
    color: #2563eb;
    font-size: 25px;
}

.backup-empty h3 {
    margin: 0 0 7px;
    font-size: 16px;
}

.backup-empty p {
    max-width: 520px;
    margin: 0 auto 18px;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.6;
}

.backup-storage-note {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 12px 15px;
    border-radius: 11px;
    background: rgba(100, 116, 139, .055);
    color: var(--muted, #64748b);
    font-size: 11px;
}

.backup-storage-note strong {
    color: var(--text, #334155);
}

.backup-error-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--card, #fff);
    border: 1px solid rgba(220, 38, 38, .18);
    border-radius: 16px;
}

.backup-error-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(220, 38, 38, .10);
    color: #dc2626;
    font-weight: 800;
}

.backup-error-card strong {
    display: block;
    margin-bottom: 5px;
}

.backup-error-card p {
    margin: 0 0 12px;
    color: var(--muted, #64748b);
    font-size: 13px;
}

.backup-loading button,
.backup-error-card button,
.backup-empty button {
    margin-top: 2px;
}

@media (max-width: 1000px) {
    .backup-summary-grid {
        grid-template-columns: 1fr;
    }

    .backup-info-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .backup-scope {
        justify-content: flex-start;
    }
}

@media (max-width: 700px) {
    .backup-summary-card {
        min-height: 94px;
    }

    .backup-info-main {
        align-items: flex-start;
    }

    .backup-list-header {
        align-items: flex-start;
    }

    .backup-storage-note {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Backup Center V2 metadata */
.backup-created {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 175px;
}

.backup-created strong {
    font-size: 12px;
    font-weight: 600;
}

.backup-created small {
    color: var(--muted, #64748b);
    font-size: 10px;
}

.backup-size-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.backup-size-list span {
    display: inline-flex;
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(15, 23, 42, .045);
    color: var(--muted, #64748b);
    font-size: 10px;
    white-space: nowrap;
}

.backup-status-verified {
    color: #15803d;
}

.backup-integrity-hint {
    display: block;
    margin-top: 4px;
    color: var(--muted, #64748b);
    font-size: 10px;
}

.backup-detail-row td {
    padding-top: 0;
    background: rgba(148, 163, 184, .025);
}

.backup-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 12px 0;
}

.backup-detail-grid > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 9px;
    background: var(--card, #fff);
}

.backup-detail-grid span {
    color: var(--muted, #64748b);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .035em;
}

.backup-detail-grid strong {
    color: var(--text, #334155);
    font-size: 12px;
}

.backup-checksum-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 3px;
    padding: 11px 12px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 9px;
    background: var(--card, #fff);
}

.backup-checksum-list > strong {
    margin-bottom: 2px;
    font-size: 11px;
}

.backup-checksum-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.backup-checksum-list span {
    color: var(--muted, #64748b);
    font-size: 10px;
}

.backup-checksum-list code {
    overflow: hidden;
    color: var(--text, #334155);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.backup-excluded {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 9px;
    color: var(--muted, #64748b);
    font-size: 10px;
}

.backup-excluded strong {
    margin-right: 3px;
}

.backup-excluded span {
    padding: 3px 6px;
    border-radius: 6px;
    background: rgba(100, 116, 139, .08);
}

@media (max-width: 1000px) {
    .backup-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .backup-detail-grid {
        grid-template-columns: 1fr;
    }

    .backup-checksum-list > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}


/* Backup Center V2.2 retention & protection */
.backup-management-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 18px;
    background: var(--border, #e5e7eb);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    overflow: hidden;
}

.backup-management-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: var(--card, #fff);
}

.backup-management-label {
    color: var(--muted, #64748b);
    font-size: 11px;
    font-weight: 600;
}

.backup-management-item strong {
    font-size: 14px;
}

.backup-management-item small {
    color: var(--muted, #64748b);
    font-size: 11px;
}

.backup-age {
    color: var(--muted, #64748b);
    font-size: 10px !important;
}

.backup-protection-control {
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid var(--border, #e5e7eb);
}

.backup-protection-row {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.backup-protection-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 8px;
    border-radius: 7px;
    font-size: 10px;
    font-weight: 700;
}

.backup-protection-protected {
    background: rgba(22, 163, 74, .10);
    color: #15803d;
}

.backup-protection-standard {
    background: rgba(100, 116, 139, .09);
    color: #475569;
}

.backup-protection-legacy {
    background: rgba(148, 163, 184, .10);
    color: #64748b;
}

.backup-protection-updating {
    background: rgba(37, 99, 235, .10);
    color: #2563eb;
}

.backup-protection-btn {
    padding: 4px 8px;
    min-height: 25px;
    font-size: 10px;
}

.backup-protection-hint {
    display: block;
    margin-top: 5px;
    color: var(--muted, #64748b);
    font-size: 10px;
    line-height: 1.45;
}

@media (max-width: 900px) {
    .backup-management-card {
        grid-template-columns: 1fr;
    }
}

/* Backup Center V2.1 verification */
.backup-status-verifying {
    color: #2563eb;
}

.backup-status-unverified {
    color: var(--muted, #64748b);
}

.backup-status-failed {
    color: #b91c1c;
}

.backup-integrity-error {
    color: #b91c1c;
}

.backup-verify-btn {
    margin-top: 8px;
    padding: 5px 9px;
    min-height: 28px;
    font-size: 10px;
}

.backup-verify-btn:disabled {
    cursor: wait;
    opacity: .7;
}

/* Backup Center V2.3 — read-only retention dry run */
.backup-dryrun-card {
    margin-bottom: 18px;
    padding: 20px;
    background: var(--card, #fff);
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.backup-dryrun-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.backup-dryrun-header h3 {
    margin: 4px 0 5px;
    font-size: 17px;
}

.backup-dryrun-header p {
    margin: 0;
    max-width: 760px;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.55;
}

.backup-dryrun-header button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.backup-dryrun-readonly {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid rgba(37, 99, 235, .16);
    border-radius: 10px;
    background: rgba(37, 99, 235, .06);
    color: var(--muted, #64748b);
    font-size: 12px;
}

.backup-dryrun-readonly strong {
    color: #2563eb;
    font-size: 11px;
    letter-spacing: .04em;
}

.backup-dryrun-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.backup-dryrun-summary > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--card, #fff);
}

.backup-dryrun-summary span,
.backup-dryrun-summary small {
    display: block;
    color: var(--muted, #64748b);
    font-size: 11px;
}

.backup-dryrun-summary strong {
    display: block;
    margin: 3px 0;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.backup-dryrun-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.backup-dryrun-columns section {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
}

.backup-dryrun-columns h4 {
    margin: 0 0 10px;
    font-size: 12px;
}

.backup-dryrun-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.backup-dryrun-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border, #e5e7eb);
    font-size: 11px;
}

.backup-dryrun-list li:last-child {
    border-bottom: 0;
}

.backup-dryrun-list code {
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 10px;
}

.backup-dryrun-list li span {
    flex: 0 0 auto;
    color: var(--muted, #64748b);
    white-space: nowrap;
}

.backup-dryrun-list-empty {
    color: var(--muted, #64748b);
    font-size: 11px;
}

.backup-dryrun-loading,
.backup-dryrun-error,
.backup-dryrun-empty {
    padding: 13px;
    border-radius: 10px;
    color: var(--muted, #64748b);
    background: rgba(100, 116, 139, .06);
    font-size: 12px;
}

.backup-dryrun-error {
    color: #b91c1c;
    background: rgba(185, 28, 28, .06);
}

/* Backup Center V2.3 responsive */
@media (max-width: 1000px) {
    .backup-dryrun-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .backup-dryrun-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .backup-dryrun-card {
        padding: 16px;
    }

    .backup-dryrun-header {
        flex-direction: column;
    }

    .backup-dryrun-header button {
        width: 100%;
    }

    .backup-dryrun-summary {
        grid-template-columns: 1fr;
    }

    .backup-dryrun-readonly {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   Backup Center V2.4 — Safe Retention Cleanup UI
   ============================================================ */

.backup-cleanup-card {
    margin-bottom: 18px;
    padding: 20px;
    background: var(--card, #fff);
    border: 1px solid rgba(185, 28, 28, .16);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .04);
}

.backup-cleanup-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.backup-cleanup-header h3 {
    margin: 4px 0 5px;
    font-size: 17px;
}

.backup-cleanup-header p {
    margin: 0;
    max-width: 760px;
    color: var(--muted, #64748b);
    font-size: 13px;
    line-height: 1.55;
}

.backup-cleanup-header button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.backup-cleanup-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.backup-cleanup-summary > div {
    min-width: 0;
    padding: 13px;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    background: var(--card, #fff);
}

.backup-cleanup-summary span,
.backup-cleanup-summary small {
    display: block;
    color: var(--muted, #64748b);
    font-size: 11px;
}

.backup-cleanup-summary strong {
    display: block;
    margin: 3px 0;
    font-size: 18px;
    line-height: 1.25;
}

.backup-cleanup-status {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
}

.backup-cleanup-status strong {
    flex: 0 0 auto;
}

.backup-cleanup-status-ok {
    border: 1px solid rgba(22, 163, 74, .16);
    background: rgba(22, 163, 74, .06);
    color: #166534;
}

.backup-cleanup-status-warning {
    border: 1px solid rgba(217, 119, 6, .18);
    background: rgba(217, 119, 6, .07);
    color: #92400e;
}

.backup-cleanup-status-error {
    border: 1px solid rgba(185, 28, 28, .18);
    background: rgba(185, 28, 28, .07);
    color: #991b1b;
}

.backup-cleanup-warning {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 11px 13px;
    border: 1px solid rgba(185, 28, 28, .14);
    border-radius: 10px;
    background: rgba(185, 28, 28, .045);
    color: var(--muted, #64748b);
    font-size: 12px;
    line-height: 1.5;
}

.backup-cleanup-warning strong {
    flex: 0 0 auto;
    color: #b91c1c;
}

.danger-button {
    border: 1px solid #b91c1c;
    background: #b91c1c;
    color: #fff;
    cursor: pointer;
    transition:
        background .15s ease,
        border-color .15s ease,
        opacity .15s ease,
        transform .15s ease;
}

.danger-button:hover:not(:disabled) {
    background: #991b1b;
    border-color: #991b1b;
}

.danger-button:active:not(:disabled) {
    transform: translateY(1px);
}

.danger-button:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* Backup Center V2.4 responsive */
@media (max-width: 700px) {
    .backup-cleanup-card {
        padding: 16px;
    }

    .backup-cleanup-header {
        flex-direction: column;
    }

    .backup-cleanup-header button {
        width: 100%;
    }

    .backup-cleanup-summary {
        grid-template-columns: 1fr;
    }

    .backup-cleanup-status,
    .backup-cleanup-warning {
        flex-direction: column;
    }
}

