:root {
    --bg: #07111f;
    --bg-soft: #0b1728;
    --panel: rgba(8, 18, 32, 0.92);
    --panel-elevated: rgba(11, 24, 42, 0.96);
    --panel-soft: rgba(13, 27, 46, 0.88);
    --panel-border: rgba(149, 170, 201, 0.12);
    --text: #e6edf7;
    --muted: #8ea3bf;
    --accent: #3b82f6;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --maintenance: #8b5cf6;
    --paused: #64748b;
    --input-bg: rgba(8, 18, 31, 0.96);
    --input-bg-focus: rgba(10, 22, 38, 0.98);
    --surface-highlight: rgba(59, 130, 246, 0.08);
    --shadow: 0 20px 60px rgba(3, 10, 22, 0.35);
}

html {
    color-scheme: dark;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

*::selection {
    background: rgba(59, 130, 246, 0.28);
    color: #f8fbff;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 22%),
        linear-gradient(180deg, #050b14 0%, #07111f 100%);
    color: var(--text);
    font-family: Inter, "Segoe UI", sans-serif;
    background-attachment: fixed;
    letter-spacing: 0.01em;
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.sidebar-glass {
    width: 280px;
    padding: 28px 20px;
    backdrop-filter: blur(16px);
    background:
        linear-gradient(180deg, rgba(5, 11, 20, 0.95), rgba(7, 17, 31, 0.92));
    border-right: 1px solid var(--panel-border);
    position: sticky;
    top: 0;
    height: 100vh;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
}

.brand-block,
.hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(34, 197, 94, 0.9));
    font-weight: 700;
    box-shadow: var(--shadow);
}

.brand-title {
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle,
.muted-text {
    color: var(--muted);
}

.nav-pill {
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    background: linear-gradient(180deg, rgba(17, 32, 54, 0.9), rgba(9, 18, 31, 0.88));
    color: var(--text);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-pill.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.24), rgba(9, 18, 31, 0.96));
    border-color: rgba(59, 130, 246, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 14px 28px rgba(15, 23, 42, 0.28);
    color: #fff;
}

.nav-pill:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.28);
    color: #fff;
    transform: translateX(2px);
}

.sidebar-user {
    margin-top: 24px;
    padding: 16px;
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.main-content {
    flex: 1;
    padding: 28px;
    max-width: 1680px;
    width: 100%;
}

.sidebar-backdrop,
.mobile-admin-bar {
    display: none;
}

.mobile-admin-bar {
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    margin-bottom: 18px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 27, 46, 0.92), rgba(8, 18, 31, 0.95));
    box-shadow: 0 18px 45px rgba(2, 8, 23, 0.26);
}

.mobile-menu-button {
    width: 46px;
    height: 46px;
    padding: 0;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.mobile-menu-button span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    border-radius: 999px;
    background: currentColor;
}

.glass-card {
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(11, 23, 40, 0.96), rgba(7, 17, 30, 0.94));
    border: 1px solid rgba(149, 170, 201, 0.1);
    border-radius: 24px;
    box-shadow: 0 28px 60px rgba(3, 10, 22, 0.34);
    backdrop-filter: blur(14px);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.glass-card::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.02);
    pointer-events: none;
}

.hero-card {
    padding: 28px;
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%),
        linear-gradient(180deg, rgba(10, 21, 37, 0.88), rgba(8, 18, 32, 0.78));
}

.hero-card .section-title {
    font-size: 1.35rem;
    letter-spacing: 0.01em;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.metric-grid {
    display: grid;
    gap: 18px;
}

.metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.monitor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.monitor-grid > * {
    min-width: 0;
}

.metric-card,
.monitor-card,
.table-card,
.chart-card,
.form-card {
    padding: 22px;
}

.metric-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(16, 32, 55, 0.96), rgba(9, 19, 34, 0.92));
    min-height: 138px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover,
.monitor-card:hover,
.table-card:hover,
.chart-card:hover,
.form-card:hover,
.login-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.22);
    box-shadow: 0 24px 64px rgba(2, 8, 23, 0.4);
}

.monitor-card {
    background:
        linear-gradient(180deg, rgba(30, 43, 66, 0.94), rgba(27, 40, 61, 0.92));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    padding: 18px 18px;
    border-color: rgba(110, 138, 176, 0.18);
}

.monitor-card-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.monitor-card-info {
    min-width: 0;
}

.monitor-card-subtitle {
    color: #37d39b;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.monitor-card-subtitle.status-online {
    color: #37d39b;
}

.monitor-card-subtitle.status-offline,
.monitor-card-subtitle.status-unstable,
.monitor-card-subtitle.status-maintenance,
.monitor-card-subtitle.status-paused {
    color: #ff7b7b;
}

.monitor-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    color: #92a8c3;
    font-size: 0.78rem;
}

.monitor-card-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.monitor-status-dot {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    font-size: 1.45rem;
    font-weight: 700;
}

.monitor-status-dot.status-online {
    background: rgba(20, 95, 82, 0.82);
    border-color: rgba(52, 211, 153, 0.18);
    color: #3cf2b1;
}

.monitor-status-dot.status-offline {
    background: rgba(127, 29, 29, 0.86);
    border-color: rgba(248, 113, 113, 0.22);
    color: #ffd0d0;
}

.monitor-status-dot.status-unstable {
    background: rgba(120, 53, 15, 0.86);
    border-color: rgba(251, 191, 36, 0.24);
    color: #ffd166;
}

.monitor-status-dot.status-maintenance {
    background: rgba(88, 28, 135, 0.84);
    border-color: rgba(196, 181, 253, 0.22);
    color: #ddd6fe;
}

.monitor-status-dot.status-paused {
    background: rgba(51, 65, 85, 0.88);
    border-color: rgba(148, 163, 184, 0.2);
    color: #d3deeb;
}

.table-card,
.chart-card,
.form-card,
.login-card {
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(12, 24, 42, 0.96), rgba(7, 16, 28, 0.94));
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.metric-label,
.mini-meta,
.section-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
}

.metric-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.status-pill {
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid transparent;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.status-online { background: rgba(34, 197, 94, 0.16); color: #a7f3d0; border-color: rgba(34, 197, 94, 0.2); }
.status-offline { background: rgba(239, 68, 68, 0.16); color: #fecaca; border-color: rgba(239, 68, 68, 0.2); }
.status-unstable { background: rgba(245, 158, 11, 0.16); color: #fde68a; border-color: rgba(245, 158, 11, 0.22); }
.status-maintenance { background: rgba(139, 92, 246, 0.16); color: #ddd6fe; border-color: rgba(139, 92, 246, 0.22); }
.status-paused { background: rgba(100, 116, 139, 0.2); color: #cbd5e1; border-color: rgba(148, 163, 184, 0.16); }

.btn-primary,
.btn-outline-light,
.btn-outline-secondary,
.btn-outline-danger {
    border-radius: 14px;
    padding: 10px 16px;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
    box-shadow: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: none;
    box-shadow: 0 12px 24px rgba(29, 78, 216, 0.22);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
}

.btn-outline-light,
.btn-outline-secondary {
    border-color: rgba(148, 163, 184, 0.2);
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
}

.btn-outline-light:hover,
.btn-outline-secondary:hover {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(59, 130, 246, 0.12);
    color: #fff;
}

.btn-outline-danger {
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
    background: rgba(239, 68, 68, 0.08);
}

.btn-outline-danger:hover {
    border-color: rgba(239, 68, 68, 0.55);
    background: rgba(239, 68, 68, 0.16);
    color: #fff;
}

.section-title {
    font-size: 1.15rem;
    font-weight: 700;
}

.table {
    --bs-table-color: var(--text);
    --bs-table-bg: transparent;
    --bs-table-border-color: rgba(148, 163, 184, 0.08);
    --bs-table-accent-bg: transparent;
    --bs-table-striped-color: var(--text);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.015);
    --bs-table-active-color: var(--text);
    --bs-table-active-bg: rgba(59, 130, 246, 0.08);
    --bs-table-hover-color: var(--text);
    --bs-table-hover-bg: rgba(59, 130, 246, 0.05);
    color: var(--text);
    margin-bottom: 0;
}

.table-card {
    overflow: hidden;
}

.table-card .section-title {
    margin-bottom: 0;
}

.theme-panel {
    padding: 0;
    background:
        radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 35%),
        linear-gradient(180deg, rgba(8, 17, 31, 0.995), rgba(4, 11, 20, 0.985));
    border: 1px solid rgba(59, 130, 246, 0.12);
    box-shadow: 0 28px 60px rgba(2, 8, 23, 0.42);
}

.theme-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 22px 18px;
    background:
        linear-gradient(90deg, rgba(59, 130, 246, 0.18), rgba(18, 30, 52, 0.18) 42%, rgba(8, 17, 31, 0.72));
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.theme-panel-header .section-title {
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: #f3f7fd;
}

.table-card .table-responsive {
    margin-top: 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 18px;
    background: rgba(5, 12, 22, 0.24);
}

.theme-filter-row {
    padding: 18px 22px 8px;
    margin-bottom: 0 !important;
    background: linear-gradient(180deg, rgba(9, 18, 31, 0.72), rgba(9, 18, 31, 0.2));
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}

.theme-table-shell {
    margin-top: 0;
    border: 0;
    border-radius: 0 0 22px 22px;
    background:
        linear-gradient(180deg, rgba(8, 18, 31, 0.995), rgba(4, 11, 20, 0.985)) !important;
    overflow: hidden;
}

.theme-table {
    width: 100%;
    color: var(--text) !important;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent !important;
}

.theme-table,
.theme-table thead,
.theme-table tbody,
.theme-table tr,
.theme-table th,
.theme-table td {
    background: transparent !important;
    color: inherit;
}

.theme-table > :not(caption) > * > * {
    background: transparent !important;
    color: var(--text) !important;
    box-shadow: none !important;
}

.theme-table thead th {
    background: rgba(34, 51, 77, 0.86) !important;
    color: #8ea5c5 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1) !important;
    padding-top: 18px;
    padding-bottom: 18px;
}

.theme-table tbody td {
    color: #e7eef9 !important;
    border-color: rgba(148, 163, 184, 0.08) !important;
    padding-top: 20px;
    padding-bottom: 20px;
}

.theme-table tbody tr:nth-child(odd) td {
    background: rgba(255, 255, 255, 0.012) !important;
}

.theme-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.07) !important;
}

.theme-table .mini-meta {
    color: #86a0bf;
}

.theme-table strong {
    color: #f3f7fd;
    font-size: 1.04rem;
}

.theme-table .btn-outline-light,
.theme-table .btn-outline-danger {
    background: rgba(255, 255, 255, 0.025);
    border-width: 1px;
}

.theme-table .btn-outline-light {
    color: #dbe7f8;
}

.theme-table .btn-outline-danger {
    color: #ffb6b6;
}

.theme-table-shell::-webkit-scrollbar {
    height: 10px;
    width: 10px;
}

.theme-table-shell::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
}

.theme-table-shell::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.28);
    border-radius: 999px;
}

.chart-wrap {
    padding: 10px 4px 0;
    min-height: 290px;
}

.chart-wrap canvas {
    max-height: 290px;
}

.table > :not(caption) > * > * {
    background-color: transparent !important;
    box-shadow: none !important;
}

.table thead th {
    color: var(--muted);
    border-color: rgba(148, 163, 184, 0.12);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 16px 18px;
    background: rgba(59, 130, 246, 0.06) !important;
}

.table tbody td {
    border-color: rgba(148, 163, 184, 0.08);
    vertical-align: middle;
    padding: 18px;
}

.table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04);
}

.table tbody tr + tr td {
    border-top-width: 1px;
}

.table .btn-sm {
    padding: 9px 14px;
    border-radius: 12px;
}

.form-control,
.form-select,
.form-check-input {
    background-color: var(--input-bg) !important;
    border-color: rgba(148, 163, 184, 0.16);
    color: var(--text) !important;
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02), inset 0 0 0 999px rgba(0, 0, 0, 0);
}

.form-control:focus,
.form-select:focus {
    background-color: var(--input-bg-focus) !important;
    color: var(--text) !important;
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.18);
}

.form-control:disabled,
.form-select:disabled {
    background-color: rgba(15, 23, 42, 0.72) !important;
    color: rgba(230, 237, 247, 0.6) !important;
}

.form-control::placeholder,
textarea.form-control::placeholder {
    color: rgba(142, 163, 191, 0.72);
}

textarea.form-control {
    resize: vertical;
    min-height: 110px;
}

.form-select option {
    background: #0b1728;
    color: var(--text);
}

.form-select {
    color-scheme: dark;
}

.form-label {
    color: #d8e2f0;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    min-height: 52px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 27, 46, 0.9), rgba(8, 18, 31, 0.9));
}

.form-check-input {
    margin-top: 0;
    width: 1.15rem;
    height: 1.15rem;
    background-color: rgba(255, 255, 255, 0.05);
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: var(--text);
    font-weight: 600;
    cursor: pointer;
}

.table-responsive,
.chart-wrap {
    overflow-x: auto;
}

.sparkline {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 48px;
}

.sparkline span {
    display: block;
    width: 8px;
    border-radius: 99px;
    background: rgba(59, 130, 246, 0.75);
}

.sparkline span.offline { background: rgba(239, 68, 68, 0.85); }
.sparkline span.unstable { background: rgba(245, 158, 11, 0.85); }

.sparkline span.online { background: rgba(34, 197, 94, 0.82); }
.sparkline span.maintenance { background: rgba(139, 92, 246, 0.82); }
.sparkline span.paused { background: rgba(100, 116, 139, 0.82); }

.login-wrapper {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(480px, 100%);
    padding: 28px;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px #091523 inset;
    transition: background-color 9999s ease-in-out 0s;
}

.theme-alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    margin-bottom: 20px;
    font-weight: 500;
    backdrop-filter: blur(12px);
}

.theme-alert-success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.22);
    color: #c9f7da;
}

.theme-alert-danger {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.24);
    color: #ffd0d0;
}

.public-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.timeline-item {
    padding: 16px 18px;
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(14, 28, 47, 0.88), rgba(8, 18, 31, 0.92));
    margin-bottom: 12px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.monitor-card strong,
.table-card strong,
.form-card .section-title,
.chart-card .section-title,
.hero-card strong {
    color: #f3f7fd;
}

.monitor-card h3,
.monitor-card .h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.sidebar-user strong {
    color: #f3f7fd;
}

.brand-title,
.section-title {
    color: #f3f7fd;
}

.text-success {
    color: #5ee9a2 !important;
}

.text-danger {
    color: #ff8c8c !important;
}

.text-warning {
    color: #ffd166 !important;
}

::-webkit-scrollbar {
    width: 11px;
    height: 11px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.4), rgba(37, 99, 235, 0.24));
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

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

    .sidebar-glass {
        width: min(320px, calc(100vw - 32px));
        height: calc(100vh - 24px);
        position: fixed;
        top: 12px;
        left: 12px;
        z-index: 1045;
        border-radius: 24px;
        transform: translateX(calc(-100% - 24px));
        transition: transform 0.28s ease;
        overflow-y: auto;
    }

    .main-content {
        padding: 20px;
    }

    .mobile-admin-bar {
        display: flex;
    }

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

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1040;
        background: rgba(2, 8, 23, 0.52);
        backdrop-filter: blur(4px);
    }

    body.sidebar-open .sidebar-backdrop {
        display: block;
    }

    .public-topbar,
    .theme-panel-header,
    .hero-card .row {
        align-items: stretch;
    }

    .public-topbar,
    .theme-panel-header {
        flex-direction: column;
    }

    .hero-actions {
        width: 100%;
    }

    .hero-actions .btn {
        flex: 1 1 180px;
    }

    .table-card,
    .chart-card,
    .form-card,
    .login-card,
    .metric-card,
    .hero-card {
        border-radius: 20px;
    }

    .monitor-card-main {
        align-items: flex-start;
    }

    .monitor-card-side {
        align-items: flex-end;
    }

    .monitor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
    }

    .theme-filter-row {
        padding-top: 16px;
        padding-bottom: 14px;
    }

    .table thead th,
    .table tbody td {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    body {
        background-attachment: scroll;
    }

    .main-content {
        padding: 16px;
    }

    .hero-card,
    .metric-card,
    .monitor-card,
    .table-card,
    .chart-card,
    .form-card,
    .login-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .metric-grid,
    .monitor-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .metric-value {
        font-size: 1.7rem;
    }

    .monitor-card-main {
        gap: 12px;
    }

    .monitor-status-dot {
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }

    .public-topbar,
    .hero-actions {
        gap: 10px;
    }

    .hero-actions .btn,
    .d-flex.gap-2 .btn {
        width: 100%;
    }

    .theme-panel-header {
        padding: 16px;
    }

    .theme-filter-row {
        padding: 14px 16px 10px;
    }

    .chart-wrap {
        min-height: 230px;
    }

    .chart-wrap canvas {
        max-height: 230px;
    }

    .table .btn-sm {
        padding: 8px 12px;
    }

    .timeline-item {
        padding: 14px 15px;
    }
}

@media (max-width: 575px) {
    .brand-block,
    .hero-brand,
    .public-topbar {
        align-items: flex-start;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 0.98rem;
    }

    .brand-subtitle,
    .section-subtitle,
    .mini-meta,
    .monitor-card-meta {
        font-size: 0.82rem;
    }

    .monitor-card-subtitle {
        font-size: 0.9rem;
    }

    .monitor-card h3,
    .monitor-card .h5 {
        font-size: 0.98rem;
    }

    .sidebar-glass {
        width: calc(100vw - 24px);
    }
}
