
:root {

    --phl-red: #d60000;

    --phl-red-light: #ff2020;

    --background: #0d0f12;

    --surface: #17191e;

    --surface-light: #202329;

    --border: #30343c;

    --text: #f5f5f5;

    --muted: #a9adb7;

    --excellent: #00c853;

    --good: #2196f3;

    --warning: #ffc107;

    --critical: #f44336;

}



* {

    box-sizing: border-box;

}



html {

    background: var(--background);

}



body {

    margin: 0;

    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;

    background:

        radial-gradient(

            circle at top right,

            rgba(214, 0, 0, 0.12),

            transparent 35%

        ),

        var(--background);

    color: var(--text);

}



header {

    position: relative;

    padding: 25px 32px;

    background: linear-gradient(135deg, #15171b, #090a0c);

    border-bottom: 3px solid var(--phl-red);

    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.35);

}



header::before {

    content: "";

    position: absolute;

    top: 20px;

    left: 16px;

    width: 5px;

    height: 55px;

    border-radius: 4px;

    background: var(--phl-red);

    box-shadow: 0 0 18px rgba(214, 0, 0, 0.7);

}



header h1 {

    margin: 0;

    font-size: 30px;

    letter-spacing: 0.5px;

}



header h1::first-letter {

    color: var(--phl-red-light);

}



header p {

    margin: 8px 0 0;

    color: var(--muted);

}



main {

    width: min(1600px, 100%);

    margin: 0 auto;

    padding: 24px;

}



section {

    margin-bottom: 22px;

    padding: 22px;

    overflow: hidden;

    background: rgba(23, 25, 30, 0.96);

    border: 1px solid var(--border);

    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);

}



section h2 {

    margin-top: 0;

    color: var(--text);

}



section:first-of-type > div {

    display: grid;

    grid-template-columns: repeat(5, minmax(150px, 1fr));

    gap: 14px;

}



section:first-of-type article {

    position: relative;

    min-height: 115px;

    padding: 18px;

    overflow: hidden;

    background: linear-gradient(145deg, #22252b, #181a1f);

    border: 1px solid var(--border);

    border-radius: 10px;

}



section:first-of-type article::before {

    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 4px;

    background: var(--phl-red);

}



section:first-of-type article:nth-child(2)::before {

    background: var(--excellent);

}



section:first-of-type article:nth-child(3)::before {

    background: var(--good);

}



section:first-of-type article:nth-child(4)::before {

    background: var(--warning);

}



section:first-of-type article:nth-child(5)::before {

    background: var(--critical);

}



section:first-of-type article h3 {

    margin: 0 0 15px;

    font-size: 14px;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: 0.7px;

}



section:first-of-type article strong {

    display: block;

    font-size: 34px;

    line-height: 1;

    color: var(--text);

}



#filters-form {

    display: flex;

    flex-wrap: wrap;

    align-items: end;

    gap: 18px;

}



#filters-form > div {

    display: flex;

    min-width: 220px;

    flex-direction: column;

    gap: 7px;

}



label {

    color: var(--muted);

    font-size: 13px;

    font-weight: 700;

    text-transform: uppercase;

}



input,

select {

    min-height: 42px;

    padding: 10px 12px;

    color: var(--text);

    background: var(--surface-light);

    border: 1px solid var(--border);

    border-radius: 7px;

    outline: none;

}



input:focus,

select:focus {

    border-color: var(--phl-red);

    box-shadow: 0 0 0 3px rgba(214, 0, 0, 0.15);

}



#last-update {

    color: var(--muted);

    font-size: 13px;

}



table {

    width: 100%;

    border-collapse: collapse;

    background: var(--surface);

}



thead {

    background: #25282f;

}



th {

    padding: 13px 12px;

    color: #ffffff;

    font-size: 12px;

    text-align: left;

    text-transform: uppercase;

    letter-spacing: 0.4px;

    border-bottom: 2px solid var(--phl-red);

}



td {

    padding: 12px;

    color: #e7e7e7;

    border-bottom: 1px solid var(--border);

}



tbody tr {

    transition:

        background 0.15s ease,

        transform 0.15s ease;

}



tbody tr:hover {

    background: rgba(214, 0, 0, 0.10);

}



tbody td:first-child {

    color: #ffffff;

    font-weight: 700;

}



#onu-details {

    border-left: 4px solid var(--phl-red);

}



[hidden] {

    display: none !important;

}



@media (max-width: 950px) {

    section:first-of-type > div {

        grid-template-columns: repeat(2, minmax(140px, 1fr));

    }



    section:nth-of-type(3) > div:last-child {

        overflow-x: auto;

    }



    table {

        min-width: 900px;

    }

}



@media (max-width: 520px) {

    header {

        padding: 20px 25px;

    }



    header h1 {

        font-size: 24px;

    }



    main {

        padding: 14px;

    }



    section:first-of-type > div {

        grid-template-columns: 1fr;

    }



    #filters-form > div {

        width: 100%;

    }

}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
}

.status-excellent {
    background: #00c853;
}

.status-good {
    background: #2196f3;
}

.status-warning {
    background: #ffc107;
    color: #222;
}

.status-critical {
    background: #f44336;
}

tr.quality-excellent {
    border-left: 4px solid #00c853;
}

tr.quality-good {
    border-left: 4px solid #2196f3;
}

tr.quality-warning {
    border-left: 4px solid #ffc107;
}

tr.quality-critical {
    border-left: 4px solid #f44336;
}