:root{
    --bg:#0f172a;
    --panel:#1e293b;
    --accent:#0ea5e9;
    --text:#e2e8f0;
}

*{
    box-sizing:border-box;
}

body{
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:"Segoe UI",sans-serif;
}

.container{
    width:95%;
    max-width:1600px;
    margin:auto;
    padding:20px;
}

.card{
    background:var(--panel);
    border-radius:16px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.header-grid{
    display:grid;
    grid-template-columns:250px 1fr;
    gap:20px;
    margin-bottom:20px;
}

.logo-card{
    display:flex;
    justify-content:center;
    align-items:center;
    background:linear-gradient(
        135deg,
        #0284c7,
        #0ea5e9
    );
}

.logo-card img{
    max-width:180px;
    width:100%;
    filter:brightness(0) invert(1);
}

.title-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
}

.title-card h1{
    margin:0;
    font-size:2.75rem;
    color:#fff;
}

.title-card p{
    margin-top:10px;
    color:#cbd5e1;
    font-size:1.1rem;
}

.status-banner{
    padding:20px;
    border-radius:16px;
    text-align:center;
    font-size:1.35rem;
    font-weight:700;
    margin-bottom:20px;
}

.status-clear{
    background:linear-gradient(
        135deg,
        #15803d,
        #22c55e
    );
    color:white;
}

.status-alert{
    background:linear-gradient(
        135deg,
        #b91c1c,
        #ef4444
    );
    color:white;
}

.status-card{
    background:linear-gradient(
        135deg,
        #0369a1,
        #0284c7
    );
    color:white;
    text-align:center;
}

.status-card h2{
    margin:0;
    font-size:2.2rem;
}

.status-card p{
    margin:15px 0;
}

.status-card small{
    opacity:.9;
}

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

table{
    width:100%;
    border-collapse:collapse;
}

th{
    background:#0284c7;
    color:white;
    padding:14px;
    text-align:left;
}

td{
    padding:14px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

tr:nth-child(even){
    background:rgba(255,255,255,.04);
}

tr:hover{
    background:rgba(14,165,233,.12);
}

.badge{
    display:inline-block;
    background:#7f1d1d;
    color:#fecaca;
    padding:5px 12px;
    border-radius:999px;
    font-size:.85rem;
}

.button-row{
    text-align:center;
    margin:25px 0;
}

.button{
    display:inline-block;
    background:#0284c7;
    color:white;
    text-decoration:none;
    padding:12px 28px;
    border-radius:10px;
    transition:.2s;
}

.button:hover{
    background:#0369a1;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:15px;
    margin-top:25px;
}

.repeater{
    background:var(--panel);
    border-left:4px solid var(--accent);
    padding:15px;
    border-radius:12px;
    text-align:center;
}

.repeater h4{
    margin:0;
    color:var(--accent);
    font-size:1.5rem;
}

.repeater p{
    margin:8px 0 0;
    color:#cbd5e1;
}

.no-incidents{
    text-align:center;
    font-size:1.2rem;
    padding:20px;
}

@media (max-width:768px){

    .container{
        width:100%;
        padding:10px;
    }

    .header-grid{
        grid-template-columns:1fr;
    }

    .logo-card img{
        max-width:140px;
    }

    .title-card h1{
        font-size:1.8rem;
    }

    table,
    thead,
    tbody,
    tr,
    td{
        display:block;
        width:100%;
    }

    thead{
        display:none;
    }

    tbody tr{
        background:var(--panel);
        margin-bottom:15px;
        padding:15px;
        border-radius:12px;
    }

    td{
        border:none;
        padding:8px 0;
    }

    td:before{
        content:attr(data-label);
        display:block;
        font-weight:bold;
        color:#38bdf8;
        margin-bottom:2px;
    }

    .button{
        width:100%;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}