
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 30px;
    font-family: Arial, sans-serif;
    background: #1e1e2e;
    color: #cdd6f4;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

h1 {
    color: #89b4fa;
    margin-bottom: 5px;
}

h2 {
    color: #89b4fa;
    margin-top: 35px;
    font-size: 20px;
}

header p, .card p {
    color: #a6adc8;
}

.status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a6e3a1;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a6e3a1;
}

.dot.offline {
    background: #f38ba8;
}

.system-info, .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 15px;
}

.panel, .card {
    background: #313244;
    border: 1px solid #45475a;
    border-radius: 10px;
    padding: 20px;
}

.system-info small, .card small {
    display: block;
    color: #a6adc8;
    margin-bottom: 12px;
}

.system-info strong {
    display: block;
    color: #cdd6f4;
    overflow-wrap: anywhere;
}

.card h3 {
    color: #cba6f7;
    margin-top: 0;
}

.big {
    font-size: 30px;
    font-weight: bold;
    margin: 15px 0;
    color: #89b4fa;
}

.progress {
    background: #45475a;
    height: 12px;
    border-radius: 10px;
    overflow: hidden;
}

.progress div {
    height: 100%;
    width: 0;
    background: #a6e3a1;
    transition: width .4s;
}

.progress .warn {
    background: #f9e2af;
}

.progress .crit {
    background: #f38ba8;
}

.table-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px;
}

th, td {
    padding: 14px;
    text-align: left;
    border-bottom: 1px solid #45475a;
}

th {
    color: #89b4fa;
    background: #313244;
}

tr:hover {
    background: #45475a;
}

.disk-progress {
    height: 12px;
    width: 120px;
    background: #45475a;
    border-radius: 10px;
    display: inline-block;
    overflow: hidden;
    vertical-align: middle;
    margin-right: 8px;
}

.disk-progress div {
    height: 100%;
    background: #a6e3a1;
}

.disk-progress .warn {
    background: #f9e2af;
}

.disk-progress .crit {
    background: #f38ba8;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 12px;
}

.service {
    background: #45475a;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.service.active {
    border-left: 4px solid #a6e3a1;
}

.service.inactive {
    border-left: 4px solid #f38ba8;
}

.service.unknown {
    border-left: 4px solid #f9e2af;
}

.service-status {
    font-size: 12px;
    font-weight: bold;
}

footer {
    margin-top: 40px;
    padding: 20px;
    text-align: center;
    color: #6c7086;
    border-top: 1px solid #45475a;
}

@media(max-width: 600px) {
    body {
        padding: 15px;
    }

    h1 {
        font-size: 23px;
    }
}
