:root {
    --color-background-primary: light-dark(rgba(255, 255, 255, 1), rgba(48, 48, 46, 1));
    --color-background-secondary: light-dark(rgba(245, 244, 237, 1), rgba(38, 38, 36, 1));
    --color-text-primary: light-dark(rgba(20, 20, 19, 1), rgba(250, 249, 245, 1));
    --color-text-secondary: light-dark(rgba(61, 61, 58, 1), rgba(194, 192, 182, 1));
    --color-text-tertiary: light-dark(rgba(115, 114, 108, 1), rgba(156, 154, 146, 1));
    --border-radius-md: 8px;
    --border-radius-lg: 10px;
    --color-border-tertiary: light-dark(rgba(31, 30, 29, 0.15), rgba(222, 220, 209, 0.15));
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: --color-background-primary;
}

main {
    margin: 1em 10vw;
    display: grid;
    grid-template-columns: repeat(2, 1fr);

    grid-gap: 1em;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 1.25rem;
}

.kpi-card {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 14px 16px;
    position: relative;
    overflow: hidden;
}

.kpi-label {
    font-size: 11px;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}

.kpi-value {
    font-size: 26px;
    font-weight: 500;
    color: var(--color-text-primary);
    line-height: 1;
}

.kpi-unit {
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 400;
}

.kpi-accent {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

.accent-teal {
    background: #1D9E75;
}

.accent-blue {
    background: #378ADD;
}

.accent-amber {
    background: #EF9F27;
}

.accent-purple {
    background: #7F77DD;
}

.panel {
    background: var(--color-background-primary);
    border: 0.5px solid var(--color-border-tertiary);
    border-radius: var(--border-radius-lg);
    padding: 16px 18px;
}

.panel-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 14px;
}

.server-metrics {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.server-row {
    display: flex;
    flex-direction: column;

    h3 {
        margin: 0;
        font-weight: 400;
        text-align: center;
    }
}

.server-row-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.server-name {
    color: var(--color-text-secondary);
}

.server-val {
    font-weight: 500;
    color: var(--color-text-primary);
}

.progress-track {
    height: 6px;
    background: var(--color-background-secondary);
    border-radius: 99px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 99px;
}

.fill-ram {
    background: #E24B4A;
}

.fill-disk {
    background: #EF9F27;
}

.server-detail {
    font-size: 11px;
    color: var(--color-text-tertiary);
    margin-top: 1px;
}

.dash {
    padding: 1.5rem 0;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dash-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--color-text-primary);
}

.dash-subtitle {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 2px;
    display: flex;
    flex-direction: column;
}

.expand-column {
    white-space: nowrap;
    width: fit-content !important;
}

.dt-column-title {
    font-weight: normal;
}

.list_group {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.list_group .input-group {
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 6px;
}

.doc_label {
    font-weight: bold;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
}

.types-image-wrap {
    display: flex;
    justify-content: center;
    background: var(--color-background-secondary);
    border-radius: var(--border-radius-md);
    padding: 12px;
}

.types-image-wrap img {
    max-width: 100%;
    border-radius: calc(var(--border-radius-md) - 4px);
}

.result-actions {
    display: flex;
    gap: 0.6em;
    margin-bottom: 0.9em;
}

.result-textarea {
    margin-top: 1em;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 13px;
}