:root{
    --bg:#08111f;
    --panel:#0f1c2e;
    --card:#14243a;
    --text:#eaf2ff;
    --muted:#91a4be;
    --brand:#18a8ff;
    --brand2:#7c4dff;
    --danger:#ff4d6d;
    --ok:#22c55e;
    --warn:#f59e0b;
    --border:#213752;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Inter,Arial,sans-serif;
    background:radial-gradient(circle at top left,#173b66 0,#08111f 40%,#050914 100%);
    color:var(--text);
}

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

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

.box{
    width:100%;
    max-width:460px;
    background:rgba(15,28,46,.95);
    border:1px solid var(--border);
    border-radius:24px;
    padding:32px;
    box-shadow:0 25px 80px rgba(0,0,0,.4);
}

.logo{
    font-size:34px;
    font-weight:800;
    margin-bottom:8px;
}

.logo span{
    color:var(--brand);
}

.sub{
    color:var(--muted);
    margin-bottom:24px;
}

.field{
    margin-bottom:16px;
}

.field label{
    display:block;
    margin-bottom:8px;
    color:var(--muted);
    font-size:14px;
}

.input,
.select{
    width:100%;
    padding:13px 15px;
    border-radius:14px;
    border:1px solid var(--border);
    background:#091422;
    color:#fff;
    outline:none;
}

.input:focus,
.select:focus{
    border-color:var(--brand);
}

.btn{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:100%;
    padding:14px;
    border:none;
    border-radius:14px;
    cursor:pointer;
    font-weight:700;
    color:#fff;
    background:linear-gradient(135deg,var(--brand),var(--brand2));
}

.btn:hover{
    opacity:.9;
}

.btn.secondary{
    background:#213752;
}

.btn.danger{
    background:var(--danger);
}

.alert{
    padding:14px;
    border-radius:14px;
    margin-bottom:15px;
    background:#173b2b;
    color:#bff7d0;
    border:1px solid #1f6b40;
}

.alert.error{
    background:#3a1720;
    color:#ffd0d9;
    border-color:#6b1f32;
}

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

.sidebar{
    width:270px;
    background:#07101d;
    border-right:1px solid var(--border);
    padding:22px;
    position:fixed;
    top:0;
    bottom:0;
    left:0;
}

.nav{
    margin-top:25px;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.nav a{
    padding:13px 14px;
    border-radius:14px;
    color:var(--muted);
}

.nav a:hover,
.nav a.active{
    background:linear-gradient(135deg,rgba(24,168,255,.15),rgba(124,77,255,.15));
    color:#fff;
}

.main{
    margin-left:270px;
    width:calc(100% - 270px);
    padding:28px;
}

.top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:22px;
}

.hero{
    background:linear-gradient(135deg,rgba(24,168,255,.18),rgba(124,77,255,.18));
    border:1px solid var(--border);
    border-radius:24px;
    padding:28px;
    margin-bottom:24px;
}

.hero h1{
    font-size:38px;
    margin-bottom:10px;
}

.muted{
    color:var(--muted);
}

.grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.card{
    background:rgba(20,36,58,.92);
    border:1px solid var(--border);
    border-radius:22px;
    padding:20px;
}

.stat{
    font-size:36px;
    font-weight:800;
    margin-top:10px;
}

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

table th,
table td{
    padding:14px;
    border-bottom:1px solid var(--border);
    text-align:left;
}

table th{
    color:var(--muted);
}

.badge{
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
}

.badge.ok{
    background:#123d29;
    color:#7dffb0;
}

.badge.warn{
    background:#473410;
    color:#ffd37d;
}

.badge.danger{
    background:#4a1722;
    color:#ff9aae;
}

.footer{
    margin-top:30px;
    color:var(--muted);
    font-size:13px;
}

/* SECURITY SCORE */

.score-box{
    padding:14px;
    border-radius:18px;
    min-width:180px;
    line-height:1.7;
}

.score-box strong{
    display:block;
    font-size:28px;
    font-weight:800;
    margin-bottom:8px;
}

.score-box small{
    display:block;
    color:#c7d5ea;
    font-size:12px;
}

.score-good{
    background:rgba(34,197,94,.12);
    border:1px solid rgba(34,197,94,.35);
    color:#22c55e;
}

.score-warning{
    background:rgba(245,158,11,.12);
    border:1px solid rgba(245,158,11,.35);
    color:#f59e0b;
}

.score-medium{
    background:rgba(255,127,80,.12);
    border:1px solid rgba(255,127,80,.35);
    color:#ff7f50;
}

.score-danger{
    background:rgba(255,77,109,.12);
    border:1px solid rgba(255,77,109,.35);
    color:#ff4d6d;
}

.progress{
    width:100%;
    height:10px;
    background:#0a1626;
    border-radius:999px;
    overflow:hidden;
    margin-top:10px;
}

.progress-bar{
    height:100%;
    background:linear-gradient(90deg,#18a8ff,#7c4dff);
}

.security-grid{
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:10px;
}

.security-item{
    background:#0a1626;
    border:1px solid var(--border);
    border-radius:14px;
    padding:12px;
    text-align:center;
}

.security-item .value{
    font-size:22px;
    font-weight:800;
    color:#18a8ff;
}

.security-item .label{
    font-size:12px;
    color:var(--muted);
}

/* Responsive */

@media(max-width:1200px){
    .grid{
        grid-template-columns:repeat(2,1fr);
    }

    .security-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:900px){

    .layout{
        display:block;
    }

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .main{
        width:100%;
        margin-left:0;
    }

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

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

    table{
        display:block;
        overflow-x:auto;
    }
}