/* =========================================================
   LKS SUBSATGAS SIBER - TACTICAL UI CLEAN
   File: assets/css/style.css
========================================================= */

*{
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    margin:0;
    font-family:Arial,Helvetica,sans-serif;
    background:#080b0c;
    color:#e5e7eb;
    min-height:100vh;
}

/* BACKGROUND TACTICAL */
body:before{
    content:"";
    position:fixed;
    inset:0;
    background:
        linear-gradient(135deg,rgba(8,11,12,.96),rgba(40,6,8,.92)),
        radial-gradient(circle at top right,rgba(255,202,44,.14),transparent 35%),
        radial-gradient(circle at bottom left,rgba(153,27,27,.16),transparent 32%);
    z-index:-2;
}

body:after{
    content:"";
    position:fixed;
    inset:0;
    background-image:
        repeating-linear-gradient(45deg,rgba(255,255,255,.025) 0,rgba(255,255,255,.025) 1px,transparent 1px,transparent 14px);
    z-index:-1;
}

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

/* =========================================================
   LOGIN
========================================================= */

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

.login-card{
    width:400px;
    background:linear-gradient(180deg,#111827,#050505);
    border:1px solid rgba(255,202,44,.25);
    border-radius:22px;
    padding:30px;
    box-shadow:0 25px 80px rgba(0,0,0,.55);
}

.login-card h1{
    margin:0 0 8px;
    color:#ffca2c;
    font-size:30px;
    font-weight:950;
}

.login-card p{
    color:#9ca3af;
    margin-top:0;
}

/* =========================================================
   FORM & BUTTON
========================================================= */

.form-group{
    margin-bottom:14px;
}

.form-group label{
    display:block;
    font-weight:900;
    font-size:13px;
    margin-bottom:6px;
    color:#ffca2c;
}

.form-control{
    width:100%;
    padding:12px 13px;
    background:#0b0f12;
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    border-radius:12px;
    outline:none;
}

.form-control:focus{
    border-color:rgba(255,202,44,.55);
    box-shadow:0 0 0 3px rgba(255,202,44,.12);
}

textarea.form-control{
    resize:vertical;
}

.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    padding:10px 14px;
    border-radius:12px;
    border:0;
    font-weight:900;
    cursor:pointer;
    font-size:14px;
    transition:.18s ease;
}

.btn:hover{
    transform:translateY(-1px);
    filter:brightness(1.08);
}

.btn-primary{
    background:#b91c1c;
    color:#fff;
}

.btn-success{
    background:#16a34a;
    color:#fff;
}

.btn-danger{
    background:#dc2626;
    color:#fff;
}

.btn-warning{
    background:#ffca2c;
    color:#111;
}

.btn-light{
    background:#1f2937;
    color:#fff;
    border:1px solid rgba(255,255,255,.12);
}

.btn-block{
    width:100%;
}

/* =========================================================
   ALERT
========================================================= */

.alert{
    padding:12px;
    border-radius:12px;
    margin-bottom:14px;
    font-weight:800;
}

.alert-danger{
    background:#450a0a;
    color:#fecaca;
    border:1px solid rgba(220,38,38,.45);
}

/* =========================================================
   SIDEBAR LKS SUBSATGAS SIBER
========================================================= */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:260px;
    min-height:100vh;
    background:linear-gradient(180deg,#080404,#140606 50%,#050505);
    border-right:1px solid rgba(255,202,44,.15);
    display:flex;
    flex-direction:column;
    padding:14px;
    box-shadow:12px 0 40px rgba(0,0,0,.35);
    z-index:10;
}

.sidebar-logo{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 8px 14px;
    border-bottom:1px solid rgba(255,202,44,.12);
    margin-bottom:12px;
}

.sidebar-logo img{
    width:42px;
    height:42px;
    object-fit:contain;
    border-radius:50%;
    background:#020617;
    border:1px solid rgba(255,202,44,.20);
    padding:3px;
    flex:0 0 auto;
}

.logo-text h2{
    margin:0;
    color:#ffca2c;
    font-size:21px;
    font-weight:950;
    line-height:1;
    letter-spacing:.5px;
}

.logo-text span{
    color:#cbd5e1;
    font-size:10px;
    font-weight:800;
    letter-spacing:.7px;
    text-transform:uppercase;
}

/* old brand support */
.brand{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:18px;
    font-weight:950;
    color:#ffca2c;
    margin-bottom:24px;
}

.brand-icon{
    width:42px;
    height:42px;
    border-radius:14px;
    background:#b91c1c;
    display:flex;
    align-items:center;
    justify-content:center;
}

.menu{
    padding:8px 0;
}

.menu a{
    display:flex;
    align-items:center;
    gap:9px;
    padding:12px 14px;
    margin-bottom:8px;
    border-radius:14px;
    color:#e5e7eb;
    font-size:15px;
    font-weight:900;
    text-decoration:none;
    transition:.2s;
}

.menu a:hover{
    background:rgba(255,202,44,.08);
    color:#ffca2c;
}

.menu a.active{
    background:linear-gradient(135deg,#b91c1c,#7f1d1d);
    color:#fff;
    box-shadow:0 8px 22px rgba(193,18,31,.32);
}

.sidebar-footer{
    margin-top:auto;
    padding-top:12px;
}

.footer-box{
    background:linear-gradient(180deg,#111827,#050505);
    border:1px solid rgba(255,202,44,.15);
    border-radius:14px;
    padding:12px;
    text-align:center;
    margin-bottom:12px;
}

.footer-box small{
    display:block;
    color:#94a3b8;
    margin-bottom:4px;
    font-size:11px;
    font-weight:800;
}

.footer-box strong{
    color:#ffca2c;
    font-size:13px;
}

.logout-btn{
    display:block;
    width:100%;
    text-align:center;
    background:#7f1d1d;
    color:#fff;
    padding:12px;
    border-radius:14px;
    text-decoration:none;
    font-weight:900;
}

.logout-btn:hover{
    background:#991b1b;
}

/* =========================================================
   MAIN LAYOUT
========================================================= */

.main{
    margin-left:260px;
    padding:24px;
}

.topbar{
    background:linear-gradient(180deg,#111827,#090909);
    border:1px solid rgba(255,202,44,.18);
    border-radius:20px;
    padding:18px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    box-shadow:0 15px 40px rgba(0,0,0,.35);
    margin-bottom:18px;
}

.topbar h1{
    margin:0;
    color:#ffca2c;
    font-size:26px;
    font-weight:950;
}

.topbar small{
    color:#9ca3af;
}

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

.card,
.table-wrap,
.form-card,
.filter-box,
.task-card{
    background:linear-gradient(180deg,#101010,#050505);
    border:1px solid rgba(255,202,44,.16);
    border-radius:18px;
    padding:18px;
    box-shadow:0 15px 40px rgba(0,0,0,.28);
}

.card{
    position:relative;
    overflow:hidden;
}

.card:before{
    content:"";
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:2px;
    background:linear-gradient(90deg,transparent,#ffca2c,transparent);
    opacity:.55;
}

.stat-title{
    font-size:13px;
    color:#ffca2c;
    font-weight:900;
}

.stat-value{
    font-size:34px;
    font-weight:950;
    margin-top:8px;
    color:#fff;
}

/* =========================================================
   TABLE
========================================================= */

.table-wrap{
    overflow:auto;
}

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

th,
td{
    padding:11px;
    border-bottom:1px solid rgba(255,255,255,.10);
    text-align:left;
    font-size:14px;
    vertical-align:middle;
}

th{
    background:rgba(255,202,44,.10);
    color:#ffca2c;
    font-weight:950;
}

tr:hover td{
    background:rgba(255,255,255,.025);
}

/* =========================================================
   BADGE
========================================================= */

.badge{
    padding:6px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
    display:inline-block;
}

.badge-sudah_melaksanakan,
.badge-valid,
.badge-aktif{
    background:#14532d;
    color:#bbf7d0;
}

.badge-belum_lengkap,
.badge-belum_dicek{
    background:#713f12;
    color:#fef3c7;
}

.badge-revisi,
.badge-nonaktif{
    background:#7f1d1d;
    color:#fecaca;
}

.badge-selesai{
    background:#1e3a8a;
    color:#dbeafe;
}

/* =========================================================
   GENERAL COMPONENT
========================================================= */

.actions{
    display:flex;
    gap:7px;
    flex-wrap:wrap;
}

.form-row{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:14px;
}

.form-card{
    max-width:1050px;
}

.img-thumb{
    width:85px;
    height:60px;
    object-fit:cover;
    border-radius:10px;
    border:1px solid rgba(255,255,255,.15);
}

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

.platform-box{
    background:#090909;
    border:1px solid rgba(255,202,44,.16);
    border-radius:16px;
    padding:14px;
}

.platform-box h3{
    margin:0 0 10px;
    color:#ffca2c;
}

.footer-note{
    font-size:12px;
    color:#9ca3af;
    margin-top:18px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1000px){
    .sidebar{
        position:relative;
        width:100%;
        min-height:auto;
        height:auto;
        padding:12px;
    }

    .sidebar-logo{
        padding:8px;
    }

    .main{
        margin-left:0;
        padding:16px;
    }

    .grid,
    .platform-grid,
    .form-row{
        grid-template-columns:1fr;
    }

    .topbar{
        align-items:flex-start;
        flex-direction:column;
        gap:10px;
    }
}
