* {
    box-sizing: border-box;
}

:root {
    --bg-main: #0f172a;
    --bg-sidebar: #020617;
    --bg-card: #111827;
    --bg-soft: #1e293b;

    --border-main: #1f2937;
    --border-soft: #334155;

    --text-main: #e5e7eb;
    --text-white: #ffffff;
    --text-muted: #94a3b8;
    --text-soft: #cbd5e1;
    --text-faint: #64748b;

    --icon-blue: #38bdf8;
    --graph-blue: #60a5fa;

    --metric-white: #f8fafc;

    --good-green: #4ade80;
    --good-green-strong: #22c55e;
    --good-green-bg: rgba(34, 197, 94, 0.12);
    --good-green-border: rgba(34, 197, 94, 0.35);

    --warning-amber: #fbbf24;
    --warning-amber-strong: #f59e0b;
    --warning-amber-bg: rgba(245, 158, 11, 0.13);
    --warning-amber-border: rgba(245, 158, 11, 0.36);

    --danger-red: #fca5a5;
    --danger-red-strong: #ef4444;
    --danger-red-bg: rgba(239, 68, 68, 0.12);
    --danger-red-border: rgba(239, 68, 68, 0.35);

    --radius-card: 13px;
    --shadow-card: 0 10px 30px rgba(0,0,0,0.14);
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
}

a {
    color: var(--text-soft);
    text-decoration: none;
}

a:hover {
    color: var(--text-white);
}

.app-shell {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 245px;
    background: var(--bg-sidebar);
    padding: 20px 18px;
    border-right: 1px solid #1e293b;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 26px;
}

.sidebar-brand img {
    width: 42px;
    height: 42px;
    display: block;
    flex-shrink: 0;
}

.sidebar-brand-text {
    display: flex;
    flex-direction: column;
}

.sidebar-title {
    font-size: 17px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--text-white);
    margin: 0;
}

.sidebar-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.sidebar-dev {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 2px;
}

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    margin-bottom: 7px;
    border-radius: 8px;
    color: var(--text-soft);
    font-size: 16px;
    font-weight: 400;
}

.sidebar nav a:hover {
    background: #111827;
    color: var(--text-white);
}

.sidebar nav a.active {
    background: var(--bg-soft);
    color: var(--text-white);
    font-weight: 500;
}

.sidebar-nav-icon,
.sidebar-logout-icon {
    width: 22px;
    height: 22px;
    color: var(--icon-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-nav-icon svg,
.sidebar-logout-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-nav-icon svg path,
.sidebar-nav-icon svg rect,
.sidebar-nav-icon svg circle,
.sidebar-nav-icon svg ellipse,
.sidebar-nav-icon svg line,
.sidebar-nav-icon svg polyline,
.sidebar-logout-icon svg path,
.sidebar-logout-icon svg rect,
.sidebar-logout-icon svg circle,
.sidebar-logout-icon svg ellipse,
.sidebar-logout-icon svg line,
.sidebar-logout-icon svg polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar nav a.active .sidebar-nav-icon {
    color: var(--good-green);
}

.sidebar-user {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
}

.sidebar-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #312e81;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.sidebar-user-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.sidebar-user-text strong {
    color: var(--text-white);
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
}

.sidebar-user-text span {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.logout-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 12px;
}

.logout-link:hover {
    color: var(--text-white);
}

.logout-link .sidebar-logout-icon {
    width: 16px;
    height: 16px;
}

.logout-link .sidebar-logout-icon svg {
    width: 16px;
    height: 16px;
}

.main {
    flex: 1;
    min-height: 100vh;
    padding: 22px 28px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.page-header h1 {
    margin: 0 0 5px 0;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 600;
}

.page-header p {
    margin: 0;
    color: var(--text-muted);
    font-size: 15px;
}

.status-pill {
    padding: 8px 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.status-green {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-card);
    padding: 15px;
    box-shadow: var(--shadow-card);
}

.card h2 {
    margin: 0 0 12px 0;
    font-size: 15px;
    line-height: 1.2;
    font-weight: 400;
    color: var(--text-soft);
}

.card-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.top-status-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.top-status-card {
    min-height: 125px;
}

.status-card-head,
.card-title-row,
.summary-card h2,
.side-widget h2,
.monitor-panel h2 {
    display: flex;
    align-items: center;
    gap: 11px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 12px;
}

.status-icon,
.card-icon,
.summary-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-blue);
    flex-shrink: 0;
}

.status-icon svg,
.card-icon svg,
.summary-icon svg,
.status-card-head svg,
.card-title-row svg,
.summary-card h2 svg,
.side-widget h2 svg,
.monitor-panel h2 svg {
    display: block;
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.status-icon svg path,
.status-icon svg rect,
.status-icon svg circle,
.status-icon svg ellipse,
.status-icon svg line,
.status-icon svg polyline,
.card-icon svg path,
.card-icon svg rect,
.card-icon svg circle,
.card-icon svg ellipse,
.card-icon svg line,
.card-icon svg polyline,
.summary-icon svg path,
.summary-icon svg rect,
.summary-icon svg circle,
.summary-icon svg ellipse,
.summary-icon svg line,
.summary-icon svg polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.status-main {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--metric-white);
    margin-bottom: 8px;
}

.metric-value {
    color: var(--metric-white);
}

.green-text,
.value-good {
    color: var(--good-green);
}

.amber-text,
.value-warning {
    color: var(--warning-amber);
}

.red-text,
.value-bad {
    color: var(--danger-red);
}

.white-text {
    color: var(--text-white);
}

.status-note {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.35;
}

.mini-chart {
    margin-top: 10px;
    height: 26px;
    width: 100%;
}

.mini-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.side-chart {
    max-width: 130px;
    min-width: 120px;
}

.chart-line {
    fill: none;
    stroke: var(--graph-blue);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bar {
    height: 8px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
    max-width: 100%;
}

.bar span {
    display: block;
    height: 100%;
    background: var(--good-green-strong);
    border-radius: 999px;
}

.dual-bar {
    display: flex;
    height: 8px;
    background: var(--bg-soft);
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

.dual-green {
    background: #22c55e;
}

.dual-red {
    background: #ef4444;
}

.critical-ribbon {
    margin-bottom: 13px;
    padding: 12px 18px;
    border-radius: var(--radius-card);
    border: 1px solid;
}

.critical-ribbon strong {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 500;
}

.critical-ribbon strong svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.9;
    flex-shrink: 0;
}

.critical-ribbon span {
    display: block;
    color: var(--text-main);
    font-size: 13px;
}

.critical-green {
    background: var(--good-green-bg);
    border-color: var(--good-green-border);
    color: var(--good-green);
}

.critical-amber {
    background: var(--warning-amber-bg);
    border-color: var(--warning-amber-border);
    color: var(--warning-amber);
}

.critical-red {
    background: var(--danger-red-bg);
    border-color: var(--danger-red-border);
    color: var(--danger-red);
}

.overview-dashboard-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 13px;
    align-items: stretch;
    flex: 1;
}

.overview-left-stack {
    display: grid;
    gap: 13px;
    align-content: start;
}

.overview-main-panels {
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.monitoring-grid {
    display: grid;
    gap: 13px;
    margin-bottom: 13px;
}

.monitoring-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.monitor-panel {
    min-height: 205px;
}

.compact-monitor-panel {
    padding: 14px 15px;
}

.status-list {
    display: grid;
    gap: 8px;
}

.status-list div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    color: var(--text-soft);
    font-size: 13px;
    line-height: 1.2;
}

.status-list strong {
    color: var(--metric-white);
    font-size: 13px;
    font-weight: 500;
    text-align: right;
    white-space: nowrap;
}

.info-list {
    display: grid;
    gap: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 7px 0;
    border-bottom: 1px solid var(--border-main);
    font-size: 13px;
}

.info-list div:first-child {
    padding-top: 0;
}

.info-list div:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-list span {
    color: var(--text-muted);
}

.info-list strong {
    color: var(--metric-white);
    text-align: right;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    margin: 0;
}

.green {
    background: #22c55e;
}

.amber {
    background: #f59e0b;
}

.red {
    background: #ef4444;
}

.side-widget {
    padding: 14px 15px;
}

.side-widget h2 {
    font-size: 14px;
    margin-bottom: 11px;
}

.uptime-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.side-big-value {
    font-size: 19px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--metric-white);
    margin-bottom: 6px;
}

.backup-list {
    display: grid;
    gap: 9px;
}

.backup-list div {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    font-size: 13px;
}

.backup-list strong {
    color: var(--warning-amber);
    font-size: 13px;
    font-weight: 500;
}

.backup-note {
    margin-top: 12px;
}

.alert-clean {
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--good-green-bg);
    border: 1px solid var(--good-green-border);
    color: var(--good-green);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 11px;
}

.bottom-summary-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 14px;
}

.summary-card {
    min-height: 118px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.summary-card h2 {
    font-size: 13px;
    font-weight: 400;
    margin-bottom: 9px;
}

.summary-value {
    font-size: 20px;
    line-height: 1.15;
    font-weight: 600;
    color: var(--metric-white);
    margin-bottom: 6px;
}

.summary-value.green-text {
    color: var(--good-green);
}

.summary-value.amber-text {
    color: var(--warning-amber);
}

.summary-value.red-text {
    color: var(--danger-red);
}

.status-main.green-text,
.side-big-value.green-text {
    color: var(--good-green);
}

.status-main.amber-text,
.side-big-value.amber-text {
    color: var(--warning-amber);
}

.status-main.red-text,
.side-big-value.red-text {
    color: var(--danger-red);
}

.status-list .dot.green + span + strong,
.info-list .dot.green + strong {
    color: var(--good-green);
}

.status-list .dot.amber + span + strong {
    color: var(--warning-amber);
}

.status-list .dot.red + span + strong {
    color: var(--danger-red);
}

.dashboard-footer {
    border-top: 1px solid var(--border-main);
    padding-top: 12px;
    margin-top: 22px;
    text-align: center;
    width: 100%;
}

.dashboard-footer p {
    margin: 0;
    color: var(--text-faint);
    font-size: 12px;
}

.dashboard-footer span {
    color: var(--text-soft);
    font-weight: 500;
}

/* Login Page */

.login-screen {
    min-height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-brand img {
    width: 52px;
    height: 52px;
    display: block;
    flex-shrink: 0;
}

.login-brand h1 {
    margin: 0;
    color: var(--text-white);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 600;
}

.login-brand p {
    margin: 5px 0 0 0;
    color: var(--text-muted);
    font-size: 13px;
}

.login-card form {
    display: grid;
    gap: 12px;
}

.login-card label {
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 500;
}

.login-card input {
    width: 100%;
    padding: 12px 13px;
    border-radius: 10px;
    border: 1px solid var(--border-soft);
    background: var(--bg-sidebar);
    color: var(--text-white);
    font-size: 14px;
    outline: none;
}

.login-card input:focus {
    border-color: var(--icon-blue);
}

.login-card button {
    margin-top: 8px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    background: var(--bg-soft);
    color: var(--text-white);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
}

.login-card button:hover {
    background: var(--border-soft);
}

.login-error {
    padding: 11px 12px;
    border-radius: 10px;
    background: var(--danger-red-bg);
    border: 1px solid var(--danger-red-border);
    color: var(--danger-red);
    font-size: 13px;
}

.login-note {
    margin: 18px 0 0 0;
    color: var(--text-faint);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

@media (max-width: 1500px) {
    .bottom-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1450px) {
    .top-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1250px) {
    .overview-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .overview-left-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {
    .monitoring-grid-3 {
        grid-template-columns: 1fr;
    }

    .bottom-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .overview-left-stack {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }

    .main {
        padding: 20px;
    }

    .top-status-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        display: block;
    }

    .status-pill {
        display: inline-block;
        margin-top: 12px;
    }

    .bottom-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Security Page */

.security-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.security-summary-card {
    min-height: 125px;
}

.security-detail-card {
    margin-bottom: 13px;
}

.security-detail-card h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.security-section-note {
    margin-top: -4px;
    margin-bottom: 13px;
}

.security-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.security-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.security-table th,
.security-table td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--border-main);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.security-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
}

.security-table td {
    color: var(--text-main);
}

.security-table td:first-child {
    color: var(--metric-white);
}

.security-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.security-status-good {
    color: var(--good-green);
    background: var(--good-green-bg);
    border: 1px solid var(--good-green-border);
}

.security-status-warning {
    color: var(--warning-amber);
    background: var(--warning-amber-bg);
    border: 1px solid var(--warning-amber-border);
}

.security-status-bad {
    color: var(--danger-red);
    background: var(--danger-red-bg);
    border: 1px solid var(--danger-red-border);
}

.security-check-list {
    max-width: 900px;
}

@media (max-width: 1300px) {
    .security-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .security-summary-grid {
        grid-template-columns: 1fr;
    }
}
/* Applications Page */

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

.applications-summary-card {
    min-height: 125px;
}

.applications-detail-card {
    margin-bottom: 13px;
}

.applications-detail-card h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.applications-section-note {
    margin-top: -4px;
    margin-bottom: 16px;
}

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

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

.applications-table th,
.applications-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border-main);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.applications-table th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 12px;
    background: rgba(15, 23, 42, 0.45);
}

.applications-table td {
    color: var(--text-main);
}

.applications-table td:first-child {
    color: var(--metric-white);
    font-weight: 500;
}

.applications-table tr:hover td {
    background: rgba(30, 41, 59, 0.28);
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}

.app-status-good {
    color: var(--good-green);
    background: var(--good-green-bg);
    border: 1px solid var(--good-green-border);
}

.app-status-warning {
    color: var(--warning-amber);
    background: var(--warning-amber-bg);
    border: 1px solid var(--warning-amber-border);
}

.app-status-bad {
    color: var(--danger-red);
    background: var(--danger-red-bg);
    border: 1px solid var(--danger-red-border);
}

.applications-table a {
    color: var(--text-soft);
}

.applications-table a:hover {
    color: var(--text-white);
}

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

/* Server Health Page */

.health-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.health-summary-card {
    min-height: 125px;
}

.health-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 13px;
}

.health-detail-card {
    min-height: 150px;
}

.health-detail-card h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.health-span-2 {
    grid-column: span 2;
}

.health-wide-chart {
    margin-top: 18px;
}

.health-mini-info {
    margin-top: 14px;
}

.health-status-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 22px;
}

.health-status-list div {
    min-width: 0;
}

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

.health-notes-grid div {
    padding: 12px;
    border: 1px solid var(--border-main);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.35);
}

.health-notes-grid strong {
    display: block;
    color: var(--metric-white);
    font-weight: 500;
    margin-bottom: 6px;
}

.health-notes-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1400px) {
    .health-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .health-detail-grid {
        grid-template-columns: 1fr;
    }

    .health-span-2 {
        grid-column: span 1;
    }

    .health-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .health-summary-grid,
    .health-notes-grid {
        grid-template-columns: 1fr;
    }

    .health-status-list {
        grid-template-columns: 1fr;
    }
}

/* Reduce Green Text Noise - Use Blue For Healthy Text Values */

.green-text,
.value-good,
.status-main.green-text,
.side-big-value.green-text,
.summary-value.green-text {
    color: var(--icon-blue);
}

.status-list .dot.green + span + strong,
.info-list .dot.green + span + strong,
.info-list .dot.green + strong {
    color: var(--icon-blue);
}

.status-list strong {
    color: var(--icon-blue);
}

.info-list strong {
    color: var(--metric-white);
}

.app-status-good,
.security-status-good {
    color: var(--icon-blue);
}

.critical-green {
    color: var(--icon-blue);
}

.alert-clean {
    color: var(--icon-blue);
}

/* Keep Main Health Status Green */

.top-status-card .status-main.green-text,
.health-summary-card .status-main.green-text {
    color: var(--good-green);
}

/* Responsive Width Pass - 1080p Friendly Desktop Fix */

@media (max-width: 1350px) {
    .sidebar {
        width: 220px;
        padding: 18px 14px;
    }

    .main {
        padding: 20px;
    }

    .sidebar-brand {
        gap: 9px;
    }

    .sidebar-brand img {
        width: 38px;
        height: 38px;
    }

    .sidebar-title {
        font-size: 15px;
    }

    .sidebar-subtitle {
        font-size: 11px;
    }

    .sidebar-dev {
        font-size: 10px;
    }

    .sidebar nav a {
        font-size: 14px;
        padding: 9px 10px;
        gap: 9px;
    }

    .sidebar-nav-icon {
        width: 20px;
        height: 20px;
    }

    .sidebar-nav-icon svg {
        width: 20px;
        height: 20px;
    }

    .page-header h1 {
        font-size: 26px;
    }

    .top-status-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bottom-summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .overview-dashboard-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }

    .monitoring-grid-3 {
        grid-template-columns: 1fr;
    }

    .monitor-panel {
        min-height: auto;
    }
}

@media (max-width: 1150px) {
    .sidebar {
        width: 200px;
        padding: 16px 12px;
    }

    .main {
        padding: 18px;
    }

    .card {
        padding: 14px;
    }

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

    .overview-left-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .health-summary-grid,
    .security-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .health-detail-grid {
        grid-template-columns: 1fr;
    }

    .health-span-2 {
        grid-column: span 1;
    }

    .health-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .app-shell {
        display: block;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #1e293b;
    }

    .sidebar nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .sidebar nav a {
        margin-bottom: 0;
    }

    .sidebar-user {
        margin-top: 18px;
    }

    .top-status-grid,
    .bottom-summary-grid,
    .overview-left-stack,
    .health-summary-grid,
    .security-summary-grid,
    .health-notes-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        display: block;
    }

    .status-pill {
        display: inline-block;
        margin-top: 12px;
    }
}

/* Settings Page */

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

.settings-card {
    min-height: 170px;
}

.settings-card h2,
.settings-note-card h2 {
    display: flex;
    align-items: center;
    gap: 11px;
}

.settings-note-card {
    margin-bottom: 13px;
}

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

.settings-notes-grid div {
    padding: 12px;
    border: 1px solid var(--border-main);
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.35);
}

.settings-notes-grid strong {
    display: block;
    color: var(--metric-white);
    font-weight: 500;
    margin-bottom: 6px;
}

.settings-notes-grid p {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 1300px) {
    .settings-notes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .settings-grid,
    .settings-notes-grid {
        grid-template-columns: 1fr;
    }
}

/* Sidebar Status And Date Block */

.sidebar-system-status {
    display: grid;
    gap: 8px;
    margin-top: auto;
    margin-bottom: 12px;
}

.sidebar-status-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #111827;
    border: 1px solid var(--border-main);
    color: var(--text-soft);
    font-size: 12px;
}

.sidebar-status-operational {
    color: var(--icon-blue);
}

.sidebar-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
    flex-shrink: 0;
}

.sidebar-date-card {
    align-items: flex-start;
}

.sidebar-date-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-date-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sidebar-date-card strong {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.sidebar-date-card span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

.sidebar-user {
    margin-top: 0;
}

.sidebar-user-avatar {
    background: rgba(255, 91, 42, 0.14);
    border: 1px solid rgba(255, 91, 42, 0.55);
    color: #ff6a2a;
}

/* Top Right Date And Overview Operational Status Fix */

.main {
    position: relative;
}

.global-top-date-card {
    position: absolute;
    top: 18px;
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 14px;
    background: #111827;
    border: 1px solid var(--border-main);
    color: var(--text-soft);
    z-index: 20;
    min-width: 210px;
}

.global-date-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.global-date-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.global-top-date-card strong {
    display: block;
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
}

.global-top-date-card span {
    display: block;
    color: var(--text-muted);
    font-size: 11px;
    margin-top: 3px;
}

.overview-operational-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #111827;
    border: 1px solid var(--border-main);
    color: var(--icon-blue);
    font-size: 13px;
    font-weight: 500;
}

.sidebar-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
    flex-shrink: 0;
}

/* Restore Sidebar User Avatar: Blue Background, Orange KA */

.sidebar-user {
    margin-top: auto;
}

.sidebar-user-avatar {
    background: #312e81;
    border: 1px solid rgba(255, 91, 42, 0.45);
    color: #ff6a2a;
}

/* Remove old sidebar status/date spacing if cached CSS still exists */

.sidebar-system-status {
    display: none;
}

@media (max-width: 980px) {
    .global-top-date-card {
        position: static;
        margin-bottom: 14px;
        width: fit-content;
    }
}

/* Move Operational Status Into Top Date Card */

.global-top-date-card {
    display: grid;
    gap: 8px;
    min-width: 235px;
}

.global-operational-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ff6a2a;
    font-size: 13px;
    font-weight: 500;
}

.global-date-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.overview-operational-pill {
    display: none !important;
}

/* KA Avatar Orange With White Letters */

.sidebar-user-avatar {
    background: #ff5b2a;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

/* Top Right Status/Date Clean Plain Layout */

.global-top-date-card {
    top: 38px;
    right: 24px;
    display: grid;
    gap: 14px;
    min-width: 235px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.global-operational-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ff6a2a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
}

.global-date-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.global-date-icon {
    color: var(--text-muted);
    margin-top: 2px;
}

.global-top-date-card strong {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.global-top-date-card span {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

/* Darker Orange KA Avatar */

.sidebar-user-avatar {
    background: #c2410c;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

/* Correct Top Right Date/Operational Layout */

.global-top-date-card {
    position: absolute;
    top: 30px;
    right: 28px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 34px;
    min-width: 430px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    z-index: 20;
}

.global-date-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-width: 190px;
}

.global-date-icon {
    color: var(--text-muted);
    margin-top: 2px;
}

.global-top-date-card strong {
    display: block;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
}

.global-top-date-card span {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 4px;
}

.global-operational-row {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #ff6a2a;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    white-space: nowrap;
    padding-top: 2px;
}

.global-operational-row span:last-child {
    color: #ff6a2a;
    margin-top: 0;
}

.global-operational-row .sidebar-status-dot {
    margin-top: 0;
}

.page-header {
    padding-right: 460px;
    margin-bottom: 34px;
}

@media (max-width: 1200px) {
    .global-top-date-card {
        position: static;
        justify-content: flex-start;
        min-width: 0;
        margin-bottom: 18px;
        gap: 24px;
    }

    .page-header {
        padding-right: 0;
    }
}

/* Emergency Fix - Clean Global Top Bar Layout */

.global-top-date-card {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    z-index: auto !important;
}

.global-operational-row {
    display: flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #ff6a2a !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    padding: 0 !important;
    margin: 0 !important;
}

.global-operational-row span:last-child {
    color: #ff6a2a !important;
    margin: 0 !important;
}

.global-date-row {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
    text-align: left !important;
    margin: 0 !important;
    padding: 0 !important;
}

.global-date-icon {
    color: var(--text-muted) !important;
    margin-top: 2px !important;
    flex-shrink: 0 !important;
}

.global-top-date-card strong {
    display: block !important;
    color: var(--text-soft) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
}

.global-top-date-card span {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.global-operational-row .sidebar-status-dot {
    display: inline-block !important;
    margin: 0 !important;
    background: #22c55e !important;
}

.page-header {
    padding-right: 0 !important;
    margin-bottom: 20px !important;
}

.main {
    padding-top: 22px !important;
}

/* Keep KA Avatar Dark Orange */

.sidebar-user-avatar {
    background: #c2410c !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #ffffff !important;
}

/* Emergency Restore - Remove Broken Global Top Bar Layout */

.global-top-date-card,
.global-operational-row,
.global-date-row {
    display: none !important;
}

.main {
    position: relative !important;
    padding: 22px 28px !important;
    padding-top: 22px !important;
}

.page-header {
    padding-right: 0 !important;
    margin-bottom: 20px !important;
}

.sidebar-user {
    margin-top: auto !important;
}

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

.sidebar {
    min-height: 100vh !important;
}

/* Final Layout Restore After Top Bar Removal */

.global-top-date-card,
.global-operational-row,
.global-date-row,
.overview-operational-pill,
.sidebar-system-status {
    display: none !important;
}

.app-shell {
    display: flex !important;
    min-height: 100vh !important;
}

.sidebar {
    width: 245px !important;
    min-height: 100vh !important;
    flex-shrink: 0 !important;
    position: relative !important;
}

.main {
    flex: 1 !important;
    min-height: 100vh !important;
    padding: 22px 28px !important;
    padding-top: 22px !important;
    margin: 0 !important;
    position: relative !important;
    overflow-x: hidden !important;
}

.page-header {
    padding-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
}

.sidebar-user {
    margin-top: auto !important;
}

.sidebar-user-avatar {
    background: #c2410c !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
}

/* Safe Top Strip - Normal Flow, No Absolute Positioning */

.dashboard-top-strip {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    width: 100% !important;
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.top-strip-operational {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #c2410c !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
}

.top-strip-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45) !important;
    flex-shrink: 0 !important;
}

.top-strip-date {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    text-align: left !important;
    white-space: nowrap !important;
}

.top-strip-date-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--text-muted) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.top-strip-date-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.top-strip-date strong {
    display: block !important;
    color: var(--text-soft) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.top-strip-date span {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.page-header {
    margin-top: 0 !important;
}

@media (max-width: 760px) {
    .dashboard-top-strip {
        display: grid !important;
        gap: 10px !important;
    }

    .top-strip-date {
        justify-content: flex-start !important;
    }
}

/* Overview Header Final Position Fix */

.dashboard-top-strip {
    display: none !important;
}

.overview-page-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 24px !important;
    margin-top: -6px !important;
    margin-bottom: 20px !important;
    padding-right: 0 !important;
}

.overview-header-meta {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 42px !important;
    padding-top: 4px !important;
    flex-shrink: 0 !important;
}

.overview-header-operational {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: var(--text-soft) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
}

.overview-header-operational span:last-child {
    color: var(--text-soft) !important;
}

.overview-header-date {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

.overview-header-date strong {
    display: block !important;
    color: var(--text-soft) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.overview-header-date span {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.overview-version-mini-pill {
    display: inline-block !important;
    width: fit-content !important;
    margin-top: 8px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.top-strip-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45) !important;
    flex-shrink: 0 !important;
}

.top-strip-date-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--text-muted) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

@media (max-width: 1200px) {
    .overview-page-header {
        display: block !important;
        margin-top: 0 !important;
    }

    .overview-header-meta {
        margin-top: 14px !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 760px) {
    .overview-header-meta {
        display: grid !important;
        gap: 10px !important;
    }
}

/* Overview Header Date / Status - Clean Final Version */

.dashboard-top-strip,
.global-top-date-card,
.global-operational-row,
.global-date-row,
.overview-operational-pill {
    display: none !important;
}

.overview-page-header {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 28px !important;
    margin-top: -4px !important;
    margin-bottom: 20px !important;
    padding-right: 0 !important;
}

.overview-header-meta {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-end !important;
    gap: 42px !important;
    padding-top: 2px !important;
    flex-shrink: 0 !important;
}

.overview-header-operational {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: var(--text-soft) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    padding-top: 4px !important;
}

.overview-status-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45) !important;
    flex-shrink: 0 !important;
}

.overview-header-date {
    display: inline-flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    white-space: nowrap !important;
}

.overview-header-date-icon {
    width: 20px !important;
    height: 20px !important;
    color: var(--text-muted) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    margin-top: 2px !important;
}

.overview-header-date-icon svg {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.9 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.overview-header-date strong {
    display: block !important;
    color: var(--text-soft) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.25 !important;
}

.overview-header-date span {
    display: block !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    margin-top: 4px !important;
}

.overview-version-mini-pill {
    display: inline-block !important;
    width: fit-content !important;
    margin-top: 8px !important;
    padding: 5px 9px !important;
    border-radius: 999px !important;
    color: #86efac !important;
    background: rgba(34, 197, 94, 0.15) !important;
    border: 1px solid rgba(34, 197, 94, 0.35) !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

@media (max-width: 1200px) {
    .overview-page-header {
        display: block !important;
        margin-top: 0 !important;
    }

    .overview-header-meta {
        margin-top: 14px !important;
        justify-content: space-between !important;
    }
}

@media (max-width: 760px) {
    .overview-header-meta {
        display: grid !important;
        gap: 10px !important;
    }
}

/* Restore Clean Overview Header */

.overview-header-meta,
.overview-header-operational,
.overview-header-date,
.overview-version-mini-pill,
.dashboard-top-strip,
.global-top-date-card,
.global-operational-row,
.global-date-row,
.overview-operational-pill {
    display: none !important;
}

.page-header.dashboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding-right: 0 !important;
}

.status-pill.status-green {
    display: inline-block !important;
}

/* Hard Restore After Header Experiment */

.dashboard-top-strip,
.global-top-date-card,
.global-operational-row,
.global-date-row,
.overview-operational-pill,
.overview-header-meta,
.overview-header-operational,
.overview-header-date,
.overview-version-mini-pill,
.sidebar-system-status {
    display: none !important;
}

html,
body {
    min-height: 100% !important;
}

body {
    margin: 0 !important;
}

.app-shell {
    display: flex !important;
    min-height: 100vh !important;
    align-items: stretch !important;
}

.sidebar {
    width: 245px !important;
    min-height: 100vh !important;
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
}

.main {
    display: block !important;
    flex: 1 !important;
    min-height: 100vh !important;
    padding: 22px 28px !important;
    margin: 0 !important;
    position: relative !important;
    overflow-x: hidden !important;
}

.page-header,
.page-header.dashboard-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    padding: 0 !important;
}

.status-pill.status-green {
    display: inline-block !important;
}

.sidebar-user {
    margin-top: auto !important;
}

.sidebar-user-avatar {
    background: #c2410c !important;
    border: 1px solid rgba(255,255,255,0.14) !important;
    color: #ffffff !important;
}

/* Global Dashboard Footer */

.dashboard-footer {
    border-top: 1px solid var(--border-main);
    padding-top: 12px;
    margin-top: 22px;
    text-align: center;
    width: 100%;
}

.dashboard-footer p {
    margin: 0;
    color: var(--text-faint);
    font-size: 12px;
}

.dashboard-footer span {
    color: var(--text-soft);
    font-weight: 500;
}

/* Fixed Bottom Footer For All Dashboard Pages */

.main {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.dashboard-footer {
    margin-top: auto !important;
    padding-top: 12px !important;
    border-top: 1px solid var(--border-main) !important;
    text-align: center !important;
    width: 100% !important;
}

/* Final Mobile Layout Repair */

@media (max-width: 760px) {
    .app-shell {
        display: block !important;
        min-height: 100vh !important;
    }

    .sidebar {
        width: 100% !important;
        min-height: auto !important;
        border-right: none !important;
        border-bottom: 1px solid #1e293b !important;
        padding: 16px !important;
    }

    .sidebar-brand {
        margin-bottom: 18px !important;
    }

    .sidebar nav {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 7px !important;
    }

    .sidebar nav a {
        margin-bottom: 0 !important;
        font-size: 15px !important;
        padding: 10px 12px !important;
    }

    .sidebar-user {
        margin-top: 18px !important;
    }

    .main {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        min-height: auto !important;
        padding: 18px !important;
        overflow-x: hidden !important;
    }

    .page-header,
    .page-header.dashboard-header {
        display: block !important;
        margin-bottom: 18px !important;
        padding: 0 !important;
    }

    .page-header h1 {
        font-size: 24px !important;
        line-height: 1.15 !important;
    }

    .page-header p {
        font-size: 14px !important;
        line-height: 1.4 !important;
    }

    .status-pill {
        display: inline-block !important;
        margin-top: 12px !important;
    }

    .top-status-grid,
    .bottom-summary-grid,
    .overview-left-stack,
    .monitoring-grid,
    .monitoring-grid-3,
    .health-summary-grid,
    .health-detail-grid,
    .health-notes-grid,
    .applications-summary-grid,
    .security-summary-grid,
    .settings-grid,
    .settings-notes-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .overview-dashboard-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 13px !important;
    }

    .health-span-2 {
        grid-column: span 1 !important;
    }

    .card,
    .top-status-card,
    .summary-card,
    .side-widget,
    .monitor-panel,
    .health-summary-card,
    .health-detail-card,
    .applications-summary-card,
    .security-summary-card,
    .settings-card {
        width: 100% !important;
        min-height: auto !important;
    }

    .applications-table-wrap,
    .security-table-wrap {
        overflow-x: auto !important;
        width: 100% !important;
    }

    .applications-table,
    .security-table {
        min-width: 900px !important;
    }

    .dashboard-footer {
        margin-top: 22px !important;
    }
}
