/* =========================================
   RESET
========================================= */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#eef2f7;
    color:#1e293b;
}

/* =========================================
   LOGIN
========================================= */
.login-body{
    background:linear-gradient(135deg,#0f172a,#1e293b);
    height:100vh;
}

.login-container{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-box{
    width:400px;
    background:#fff;
    padding:35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.2);
}

.login-logo{
    text-align:center;
    margin-bottom:25px;
}

.login-logo i{
    font-size:55px;
    color:#2563eb;
    margin-bottom:15px;
}

.login-logo h2{
    margin-bottom:5px;
}

.login-logo p{
    color:#64748b;
}

.login-box form{
    text-align:center;
}

.btn-login{
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    width:260px !important;
    height:52px !important;
    margin:25px auto 0 auto !important;
    background:#2563eb !important;
    color:#fff !important;
    border:none !important;
    border-radius:14px !important;
    font-size:18px !important;
    font-weight:bold !important;
    cursor:pointer !important;
    box-shadow:0 6px 14px rgba(37,99,235,.35);
    transition:.3s;
}

.btn-login i{
    margin-right:10px;
}
/* =========================================
   PEMBATAS LOGIN
========================================= */

.login-separator{
    margin:25px 0;
    text-align:center;
    position:relative;
}

.login-separator span{
    background:#fff;
    padding:0 15px;
    color:#64748b;
    font-weight:bold;
    position:relative;
    z-index:2;
}

.login-separator:before{
    content:'';
    position:absolute;
    left:0;
    right:0;
    top:50%;
    height:1px;
    background:#dbe2ea;
    z-index:1;
}

/* =========================================
   TOMBOL LIHAT PRODUK
========================================= */

.btn-lihat-produk{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    width:260px;
    height:52px;

    background:#16a34a;
    color:#fff;

    border-radius:14px;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;

    box-shadow:0 6px 14px rgba(22,163,74,.35);

    transition:.3s;
}

.btn-lihat-produk i{
    margin-right:10px;
}

.btn-lihat-produk:hover{
    background:#15803d;
    transform:translateY(-2px);
}
.btn-login:hover{
    background:#1d4ed8 !important;
    transform:translateY(-2px);
}

/* =========================================
   ALERT
========================================= */
.alert-success{
    background:#16a34a;
    color:#fff;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
}

.alert-error{
    background:#dc2626;
    color:#fff;
    padding:15px;
    border-radius:10px;
    margin-bottom:20px;
}

/* =========================================
   LAYOUT
========================================= */
.container{
    display:flex;
    min-height:100vh;
}

/* =========================================
   SIDEBAR FIXED
========================================= */

.sidebar{
    position:fixed;
    top:0;
    left:0;

    width:260px;
    height:100vh;

    background:#0f172a;
    color:#fff;

    overflow-y:auto;
    z-index:999;
}

/* AREA KONTEN BERGESER KE KANAN */
.main-content{
    margin-left:260px;
    flex:1;
}

/* SCROLLBAR SIDEBAR */

.sidebar::-webkit-scrollbar{
    width:6px;
}

.sidebar::-webkit-scrollbar-track{
    background:#0f172a;
}

.sidebar::-webkit-scrollbar-thumb{
    background:#334155;
    border-radius:10px;
}

.sidebar::-webkit-scrollbar-thumb:hover{
    background:#475569;
}

.sidebar-logo{
    padding:25px 20px;
    border-bottom:1px solid rgba(255,255,255,.1);
}

.sidebar-menu{
    list-style:none;
    padding:20px 0;
}

.sidebar-menu li a{
    display:block;
    padding:14px 20px;
    color:#fff;
    text-decoration:none;
    transition:.3s;
}

.sidebar-menu li a:hover{
    background:#1e293b;
    border-left:4px solid #3b82f6;
}

.main-content{
    flex:1;
}

.topbar{
    height:70px;
    background:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 25px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.content{
    padding:20px;
}

.card{
    background:#fff;
    padding:20px;
    border-radius:15px;
    box-shadow:0 5px 15px rgba(0,0,0,.05);
}

.card-header{
    margin-bottom:20px;
}

/* =========================================
   DASHBOARD STATISTIK
========================================= */
.dashboard-box{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-top:20px;
}

.dashboard-box .box{
    min-height:150px;
    padding:25px;
    border-radius:18px;
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 10px 25px rgba(0,0,0,.18);
    transition:.3s;
}

.dashboard-box .box:hover{
    transform:translateY(-5px);
}

.dashboard-box .box-info h3{
    font-size:17px;
    margin-bottom:10px;
    color:#fff;
}

.dashboard-box .box-info h1{
    font-size:38px;
    font-weight:bold;
    color:#fff;
}

.dashboard-box .box-icon i{
    font-size:48px;
    opacity:.9;
    color:#fff;
}

.dashboard-box .blue{
    background:linear-gradient(135deg,#2563eb,#1d4ed8) !important;
}

.dashboard-box .green{
    background:linear-gradient(135deg,#16a34a,#15803d) !important;
}

.dashboard-box .orange{
    background:linear-gradient(135deg,#f97316,#ea580c) !important;
}

/* =========================================
   FORM
========================================= */
.form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
}

.form-group{
    margin-bottom:18px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:bold;
}

.form-group input,
.form-group select,
.form-group textarea{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    outline:none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus{
    border-color:#2563eb;
}

/* =========================================
   BUTTON
========================================= */
.btn-primary,
.btn-success,
.btn-warning,
.btn-danger{
    border:none;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
}

.btn-primary{
    background:#2563eb;
    color:#fff;
    padding:12px 20px;
    border-radius:10px;
}

.btn-success{
    background:#16a34a;
    color:#fff;
    padding:12px 20px;
    border-radius:10px;
}

.btn-warning{
    background:#f59e0b;
    color:#fff;
    padding:10px 12px;
    border-radius:8px;
}

.btn-danger{
    background:#dc2626;
    color:#fff;
    padding:10px 12px;
    border-radius:8px;
}

.btn-block{
    display:block;
    width:100%;
    text-align:center;
}

/* =========================================
   TABLE
========================================= */
.table-responsive{
    overflow:auto;
}

.table{
    width:100%;
    border-collapse:collapse;
}

.table thead{
    background:#0f172a;
    color:#fff;
}

.table th,
.table td{
    padding:14px;
    border:1px solid #e2e8f0;
}

.table tbody tr:nth-child(even){
    background:#f8fafc;
}

.table-center th,
.table-center td{
    text-align:center;
    vertical-align:middle;
}

.aksi-table{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
}

/* =========================================
   BADGE
========================================= */
.badge{
    padding:7px 12px;
    border-radius:20px;
    color:#fff;
    font-size:13px;
}

.badge-blue{
    background:#2563eb;
}

.badge-green{
    background:#16a34a;
}

.badge-red{
    background:#dc2626;
}

/* =========================================
   PRODUK ADMIN
========================================= */
.img-produk{
    width:80px;
    height:80px;
    object-fit:cover;
    border-radius:10px;
}

.search-input{
    width:300px;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    margin-bottom:20px;
}

/* =========================================
   RAK PRODUK DASHBOARD
========================================= */
.dashboard-rak{

    display:grid;

    grid-template-columns:
        repeat(auto-fill,minmax(250px,1fr));

    gap:20px;

    width:100%;

    margin-top:20px;

}

.card{

    width:100%;

    box-sizing:border-box;

}

.rak-item{
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    transition:.3s;
}

.rak-item:hover{
    transform:translateY(-5px);
}

.rak-img-box{
    height:220px;
    background:#f8fafc;
    display:flex;
    justify-content:center;
    align-items:center;
}

.rak-img{
    width:100%;
    height:100%;
    object-fit:cover;
    cursor:pointer;
}

.rak-info{
    padding:18px;
}

.rak-info h4{
    font-size:18px;
    margin-bottom:10px;
    color:#1e293b;
}

.produk-meta{
    display:inline-block;
    background:#dbeafe;
    color:#2563eb;
    padding:6px 12px;
    border-radius:20px;
    font-size:13px;
    margin-bottom:12px;
}

.produk-harga{
    font-size:20px;
    font-weight:bold;
    color:#16a34a;
    margin-bottom:8px;
}

.produk-stok{
    color:#64748b;
    margin-bottom:15px;
}

.btn-tambah{
    display:block;
    width:100%;
    text-align:center;
    background:#2563eb;
    color:#fff;
    padding:12px;
    border-radius:12px;
    text-decoration:none;
    font-weight:bold;
}

.btn-tambah:hover{
    background:#1d4ed8;
}

/* =========================================
   MODAL DETAIL PRODUK
========================================= */
.modal-produk{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(15,23,42,.75);
    z-index:9999;
    justify-content:center;
    align-items:center;
}

.modal-content-produk{
    width:450px;
    max-width:90%;
    background:#fff;
    border-radius:18px;
    padding:25px;
    position:relative;
    box-shadow:0 10px 30px rgba(0,0,0,.25);
}

.modal-close{
    position:absolute;
    top:15px;
    right:20px;
    font-size:30px;
    font-weight:bold;
    color:#64748b;
    cursor:pointer;
}

.modal-close:hover{
    color:#dc2626;
}

.modal-img-produk{
    width:100%;
    height:260px;
    object-fit:cover;
    border-radius:15px;
    margin-bottom:20px;
}

.modal-info-produk h2{
    margin-bottom:15px;
    color:#1e293b;
}

.modal-info-produk p{
    margin-bottom:10px;
    color:#334155;
    font-size:15px;
}

/* =========================================
   LAPORAN
========================================= */
.laporan-menu{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:20px;
    margin-top:20px;
}

.laporan-card{
    padding:25px;
    border-radius:18px;
    color:#fff;
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:20px;
    box-shadow:0 6px 18px rgba(0,0,0,.1);
    transition:.3s;
}

.laporan-card:hover{
    transform:translateY(-5px);
}

.laporan-icon{
    width:70px;
    height:70px;
    background:rgba(255,255,255,.2);
    border-radius:15px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:35px;
}

.laporan-action{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:20px;
}

.table-laporan{
    width:100%;
    table-layout:auto;
    border-collapse:collapse;
}

.table-laporan th,
.table-laporan td{
    text-align:center;
    vertical-align:middle;
    padding:14px;
    font-size:15px;
    white-space:normal;
    word-break:normal;
}

.table-laporan thead{
    background:#0f172a;
    color:#fff;
}

.table-laporan td:nth-child(2){
    min-width:150px;
}

.table-laporan td:nth-child(4){
    min-width:160px;
}

/* =========================================
   UTILITIES
========================================= */
.mt-20{
    margin-top:20px;
}

.mb-20{
    margin-bottom:20px;
}

.no-print{
    display:block;
}

/* =========================================
   PRINT LAPORAN
========================================= */
@media print{

    body{
        background:#fff !important;
        color:#000 !important;
    }

    .sidebar,
    .topbar,
    header,
    .btn-primary,
    .btn-warning,
    .btn-danger,
    .btn-success,
    .no-print{
        display:none !important;
    }

    .container{
        display:block !important;
        min-height:auto !important;
    }

    .main-content{
        width:100% !important;
        margin:0 !important;
        padding:0 !important;
    }

    .content{
        padding:0 !important;
    }

    .card{
        box-shadow:none !important;
        border:none !important;
        padding:0 !important;
        margin:0 !important;
    }

    .table-responsive{
        overflow:visible !important;
    }

    table{
        width:100% !important;
        border-collapse:collapse !important;
    }

    table th,
    table td{
        border:1px solid #000 !important;
        color:#000 !important;
        padding:8px !important;
    }

    table thead{
        background:#fff !important;
        color:#000 !important;
    }
}

/* =========================================
   RESPONSIVE
========================================= */
@media(max-width:768px){

    .container{
        flex-direction:column;
    }

    .sidebar{
        width:100%;
    }

    .search-input,
    .search-produk,
    .filter-kategori{
        width:100%;
        min-width:100%;
    }

    .topbar{
        padding:0 15px;
    }

    .content{
        padding:15px;
    }

    .dashboard-box{
        grid-template-columns:1fr;
    }
}

/* =========================================
   CHECKBOX PRODUK
========================================= */

.aksi-checkbox-produk{
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:15px;
}

.checkbox-all-produk{
    display:flex;
    align-items:center;
    gap:8px;
    background:#f1f5f9;
    padding:10px 14px;
    border-radius:10px;
    border:1px solid #cbd5e1;
    font-weight:bold;
}

.checkbox-all-produk input,
.checkProduk{
    width:18px;
    height:18px;
    cursor:pointer;
}

/* =========================================
   STICKY KATALOG PRODUK
========================================= */

.sticky-katalog{
    position:sticky;
    top:0;
    z-index:1000;
    background:#eef2f7;
    padding-bottom:10px;
}

/* Header katalog */
.sticky-katalog .card{
    box-shadow:0 3px 10px rgba(0,0,0,.08);
}

/* Saat scroll */
.sticky-katalog .card:first-child{
    margin-bottom:15px;
}

/* =========================================
   STICKY FILTER DASHBOARD DAN PRODUK
========================================= */

.sticky-filter,
.sticky-filter-produk{
    position:sticky;
    top:15px;
    z-index:900;
    background:#fff;
}

.sticky-filter{
    box-shadow:0 4px 12px rgba(0,0,0,.08);
}

.sticky-filter-produk{
    padding:15px 0;
    margin-bottom:15px;
    background:#fff;
}

/* ===================================================
   HALAMAN GUEST
=================================================== */

body{
    margin:0;
    padding:0;
    background:#f4f6f9;
}

.guest-wrapper{

    width:100%;
    min-height:100vh;

    margin:0;
    padding:0;

}

.guest-content{

    width:100%;
    max-width:100%;

    margin:0;
    padding:20px 30px;

    box-sizing:border-box;

}

button:disabled{
    background:#bdbdbd;
    cursor:not-allowed;
    opacity:.7;
}

