*{
    box-sizing:border-box;
    margin:0;
    padding:0;
    font-family:Inter,Arial,sans-serif;
}

:root{
    --bg:#07111f;
    --bg2:#0b1629;
    --card:rgba(15,23,42,.82);
    --card2:rgba(30,41,59,.64);
    --line:rgba(148,163,184,.16);
    --text:#e2e8f0;
    --muted:#94a3b8;
    --blue:#38bdf8;
    --green:#22c55e;
    --red:#ef4444;
    --yellow:#facc15;
    --shadow:0 20px 60px rgba(0,0,0,.30);
}

body{
    min-height:100vh;
    color:var(--text);
    background:
        radial-gradient(circle at top left,rgba(56,189,248,.16),transparent 34%),
        radial-gradient(circle at top right,rgba(34,197,94,.10),transparent 30%),
        linear-gradient(180deg,#020617 0%,#07111f 55%,#020617 100%);
}

body::before{
    content:"";
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:-1;
    background:
        linear-gradient(rgba(148,163,184,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(148,163,184,.035) 1px,transparent 1px);
    background-size:44px 44px;
    mask-image:linear-gradient(to bottom,rgba(0,0,0,.8),transparent 90%);
}

a{
    color:#93c5fd;
    text-decoration:none;
}

.login-page{
    display:flex;
    align-items:center;
    justify-content:center;
    padding:20px;
}

.login-card{
    width:100%;
    max-width:440px;
    padding:34px;
    border-radius:26px;
    background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(56,189,248,.06));
    border:1px solid var(--line);
    box-shadow:var(--shadow);
    text-align:center;
}

.login-logo{
    width:76px;
    height:76px;
    margin:0 auto 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:22px;
    font-size:34px;
    background:linear-gradient(135deg,#38bdf8,#22c55e);
    box-shadow:0 15px 35px rgba(56,189,248,.25);
}

.login-card h1{
    font-size:28px;
    margin-bottom:8px;
}

.login-card p,
.login-card small{
    color:var(--muted);
    line-height:1.6;
}

.login-card label{
    text-align:left;
}

.topbar{
    position:sticky;
    top:0;
    z-index:10;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:16px 24px;
    background:rgba(15,23,42,.92);
    backdrop-filter:blur(18px);
    border-bottom:1px solid var(--line);
}

.topbar h1{
    font-size:23px;
    font-weight:950;
}

.topbar p{
    color:var(--muted);
    font-size:13px;
    margin-top:3px;
}

.topbar nav{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.topbar nav a{
    padding:10px 13px;
    border-radius:14px;
    color:#dbeafe;
    background:rgba(148,163,184,.10);
    border:1px solid rgba(148,163,184,.13);
    font-size:13px;
    font-weight:850;
}

.container{
    max-width:1440px;
    margin:0 auto;
    padding:24px;
}

.stats-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:20px;
}

.stat-card{
    padding:20px;
    border-radius:22px;
    background:var(--card);
    border:1px solid var(--line);
    box-shadow:0 14px 35px rgba(0,0,0,.18);
}

.stat-card span{
    display:block;
    color:var(--muted);
    font-size:13px;
    font-weight:800;
    margin-bottom:10px;
}

.stat-card strong{
    display:block;
    font-size:34px;
    line-height:1;
}

.stat-card small{
    color:#cbd5e1;
    margin-top:9px;
    display:block;
}

.stat-card.green strong{color:#86efac}
.stat-card.red strong{color:#fecaca}
.stat-card.yellow strong{color:#fde68a}

.layout{
    display:grid;
    grid-template-columns:430px 1fr;
    gap:20px;
}

.card{
    padding:20px;
    border-radius:24px;
    background:var(--card);
    border:1px solid var(--line);
    box-shadow:0 16px 42px rgba(0,0,0,.20);
    margin-bottom:20px;
}

.card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:16px;
}

.card h2{
    font-size:20px;
    color:#fff;
}

label{
    display:block;
    margin:12px 0 7px;
    color:#cbd5e1;
    font-size:13px;
    font-weight:850;
}

input,
textarea{
    width:100%;
    padding:13px 14px;
    border-radius:15px;
    border:1px solid rgba(148,163,184,.20);
    background:#020617;
    color:#e2e8f0;
    outline:none;
}

textarea{
    min-height:330px;
    line-height:1.55;
    resize:vertical;
}

input:focus,
textarea:focus{
    border-color:rgba(56,189,248,.55);
    box-shadow:0 0 0 4px rgba(56,189,248,.10);
}

.two-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.actions,
.mini-actions{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:9px;
    margin-top:14px;
}

.mini-actions{
    margin-top:0;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:none;
    cursor:pointer;
    padding:11px 14px;
    border-radius:14px;
    font-weight:950;
    color:#e2e8f0;
    background:rgba(148,163,184,.14);
    border:1px solid rgba(148,163,184,.14);
}

.btn-primary{
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:#022c12;
    border:none;
}

.btn-blue{
    background:linear-gradient(135deg,#38bdf8,#2563eb);
    color:#fff;
    border:none;
}

.btn-danger{
    background:rgba(239,68,68,.15);
    border:1px solid rgba(239,68,68,.28);
    color:#fecaca;
}

.btn-small{
    padding:8px 10px;
    border-radius:11px;
    font-size:12px;
}

.full{
    width:100%;
    margin-top:18px;
}

.inline-check{
    display:flex;
    align-items:center;
    gap:8px;
    line-height:1.4;
}

.inline-check input{
    width:auto;
}

.alert{
    padding:13px 15px;
    border-radius:16px;
    margin-bottom:18px;
    font-weight:850;
    line-height:1.5;
}

.alert-success{
    background:rgba(34,197,94,.13);
    border:1px solid rgba(34,197,94,.25);
    color:#bbf7d0;
}

.alert-danger{
    background:rgba(239,68,68,.14);
    border:1px solid rgba(239,68,68,.26);
    color:#fecaca;
}

.badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:7px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
    white-space:nowrap;
}

.badge.success{
    background:rgba(34,197,94,.15);
    color:#86efac;
    border:1px solid rgba(34,197,94,.28);
}

.badge.danger{
    background:rgba(239,68,68,.15);
    color:#fecaca;
    border:1px solid rgba(239,68,68,.28);
}

.badge.warning{
    background:rgba(250,204,21,.14);
    color:#fde68a;
    border:1px solid rgba(250,204,21,.28);
}

.badge.muted{
    background:rgba(148,163,184,.12);
    color:#cbd5e1;
    border:1px solid rgba(148,163,184,.18);
}

.report-box{
    white-space:pre-wrap;
    background:#020617;
    border:1px solid rgba(148,163,184,.15);
    border-radius:18px;
    padding:18px;
    line-height:1.58;
    font-family:Consolas,monospace;
    overflow:auto;
}

.empty{
    padding:24px;
    border-radius:18px;
    background:#020617;
    color:var(--muted);
    border:1px solid rgba(148,163,184,.15);
    line-height:1.6;
}

.table-wrap{
    overflow:auto;
    border-radius:18px;
    border:1px solid rgba(148,163,184,.14);
}

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

th,
td{
    padding:13px 14px;
    border-bottom:1px solid rgba(148,163,184,.12);
    text-align:left;
    vertical-align:top;
}

th{
    color:#bfdbfe;
    background:rgba(148,163,184,.08);
    font-size:13px;
}

td{
    font-size:14px;
}

td small{
    color:#aebbd0;
    line-height:1.45;
}

.history-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.history-list a{
    display:block;
    padding:13px;
    border-radius:15px;
    color:#e2e8f0;
    background:rgba(148,163,184,.08);
    border:1px solid rgba(148,163,184,.11);
}

.history-list span,
.history-list small{
    display:block;
    color:var(--muted);
    margin-top:4px;
    line-height:1.4;
}

@media(max-width:1100px){
    .layout{
        grid-template-columns:1fr;
    }
}

@media(max-width:760px){
    .topbar{
        align-items:flex-start;
        flex-direction:column;
    }

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

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

    .container{
        padding:16px;
    }
}

@media(max-width:480px){
    .stats-grid{
        grid-template-columns:1fr;
    }
}
