/*=====================================================
  Inventory Taking v2
  style.css
=====================================================*/


/*=====================================================
  01. RESET
=====================================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', Arial, sans-serif;
}

html,
body{
    width:100%;
    height:100%;
}


/*=====================================================
  02. BODY
=====================================================*/

body{
    display:flex;
    justify-content:center;

    /* HAPUS BARIS INI */
    /* align-items:center; */

    align-items:flex-start;

    background:linear-gradient(135deg,#2563EB,#1E3A8A);

    padding-top:90px;
    padding-bottom:30px;
}


/*=====================================================
  03. HEADER
=====================================================*/

.header{

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:70px;

    background:#1E3A8A;

    color:#fff;

    display:flex;

    align-items:center;

    padding:0 20px;

    box-shadow:0 3px 10px rgba(0,0,0,.2);

    z-index:1000;

}

.menu-btn{

    width:42px;

    height:42px;

    border:none;

    border-radius:10px;

    background:rgba(255,255,255,.15);

    color:#fff;

    font-size:22px;

    cursor:pointer;

}

.header-title{

    flex:1;

    text-align:center;

}

.header-title h2{

    font-size:20px;

    margin:0;

}

.header-title span{

    font-size:12px;

    opacity:.8;

}


/*=====================================================
  04. CONTAINER
=====================================================*/

.container{

    width:100%;
    max-width:460px;

    padding:20px;

}

.card{

    background:#fff;

    border-radius:24px;

    padding:28px 24px;

    box-shadow:0 20px 40px rgba(0,0,0,.25);

    animation:fadeIn .4s ease;

}


/*=====================================================
  05. TYPOGRAPHY
=====================================================*/

.logo{

    font-size:60px;

    text-align:center;

    margin-bottom:20px;

}

.title{

    text-align:center;

    font-size:34px;

    font-weight:bold;

    color:#1E3A8A;

    margin-bottom:10px;

}

.subtitle{

    text-align:center;

    color:#6B7280;

    margin-bottom:35px;

}

.version{

    text-align:center;

    margin-top:25px;

    color:#9CA3AF;

}


/*=====================================================
  06. FORM
=====================================================*/

.form-group{

    margin-bottom:18px;

}

.form-group label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

}

select{

    width:100%;

    height:50px;

    border:1px solid #D1D5DB;

    border-radius:12px;

    padding:0 15px;

    font-size:15px;

}


/*=====================================================
  07. BUTTON
=====================================================*/

.btn-primary{

    width:100%;

    height:52px;

    border:none;

    border-radius:12px;

    background:#217346;

    color:#fff;

    font-size:17px;

    font-weight:bold;

    cursor:pointer;

    transition:0.2s;

}

.btn-primary:hover{

    background:#185C37;

}

/*=====================================================
  08. SAMPLE PART
=====================================================*/

.sample-part{

    min-height:55px;

    display:flex;

    align-items:center;

    padding:12px 15px;

    border:2px solid #D1D5DB;

    border-radius:10px;

    background:#F8FAFC;

    font-size:18px;

    font-weight:700;

    color:#1E3A8A;

    transition:.2s;

}


/*=====================================================
  09. STATUS
=====================================================*/

.status-gray{

    color:#6B7280;

    font-weight:bold;

}

.status-green{

    color:#16A34A;

    font-weight:bold;

}

.status-red{

    color:#DC2626;

    font-weight:bold;

}


/*=====================================================
  10. TOM SELECT
=====================================================*/

.ts-control{

    min-height:50px;

    border-radius:12px !important;

    border:1px solid #D1D5DB !important;

    box-shadow:none !important;

    padding:10px 12px !important;

    font-size:15px;

}

.ts-control.focus{

    border-color:#2563EB !important;

}

.ts-dropdown{

    border-radius:12px;

    border:1px solid #D1D5DB;

    overflow:hidden;

}

.ts-dropdown .active{

    background:#2563EB;

    color:#fff;

}


/*=====================================================
  11. INPUT PAGE
=====================================================*/

/* Area untuk CSS halaman Input */

/*
#lblLineName{

}

#lblStatus{

}

#lblSamplePart{

}

#cmbAddress{

}

#cmbPIC1{

}

#cmbPIC2{

}
*/


/*=====================================================
  12. HOME PAGE
=====================================================*/

/* Area CSS halaman Home */


/*=====================================================
  13. DASHBOARD
=====================================================*/

/* Area CSS Dashboard */


/*=====================================================
  14. RESPONSIVE
=====================================================*/

@media (max-width:480px){

    .container{

        padding:16px;

    }

    .card{

        padding:30px 20px;

    }

    .title{

        font-size:28px;

    }

}


/*=====================================================
  15. ANIMATION
=====================================================*/

@keyframes fadeIn{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

@keyframes pageFade{

    from{

        opacity:0;
        transform:translateY(20px);

    }

    to{

        opacity:1;
        transform:translateY(0);

    }

}

/* ===========================================
  16. LOGO
  =========================================*/
  
.logo{

    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:20px;

}

.logo-img{

    width:130px;
    height:auto;
    display:block;

}

/* =======================================
   SIDE MENU
======================================= */

.menu-overlay{

    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);

    opacity:0;
    visibility:hidden;

    transition:.25s;

    z-index:998;

}

.menu-overlay.show{

    opacity:1;
    visibility:visible;

}

.side-menu{

    position:fixed;

    top:0;
    left:-280px;

    width:260px;

    height:100dvh;

    background:#fff;

    display:flex;
    flex-direction:column;

    transition:left .25s;

    z-index:999;

}

.side-menu.show{

    left:0;

}

.menu-header{

    background:#284191;
    color:#fff;

    font-size:22px;
    font-weight:bold;

    padding:24px;

}

.menu-item{

    width:100%;

    border:none;
    background:none;

    text-align:left;

    padding:18px 24px;

    font-size:17px;

    cursor:pointer;

    transition:.2s;

}

.menu-item:hover{

    background:#eef3ff;

}

.menu-footer{

    margin-top:auto;

    padding:20px 24px;

    font-size:13px;

    color:#888;

    border-top:1px solid #ddd;

}

/* =======================================
   EXPORT PAGE
======================================= */

#page-export{

    position:fixed;

    top:90px;
    left:0;

    width:100%;

    height:calc(100vh - 90px);

    display:none;

}

.export-container{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    padding:30px 20px 60px;

    transform:none;

}

.export-card{

    width:90%;
    max-width:430px;

    background:#fff;

    border-radius:24px;

    padding:40px 28px;

    box-shadow:0 20px 40px rgba(0,0,0,.25);

}

.page-show{

    animation:pageFade .30s ease;

}

/* =======================================
   PROGRESS PAGE
======================================= */

#page-progress,
#page-progress-detail{

    position:fixed;

    top:90px;
    left:0;

    width:100%;

    height:calc(100vh - 90px);

    display:none;

    overflow-y:auto;

}

/* =======================================
   PROGRESS CARD
======================================= */

.progress-card{

    width:100%;
    max-width:860px;

    background:#fff;

    border-radius:18px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

    margin:auto;

}

/* =======================================
   PROGRESS SUMMARY
======================================= */

.progress-summary{

    display:flex;
    gap:18px;
    margin:25px 0;
    flex-wrap:wrap;

}

.summary-box{

    flex:1;
    min-width:180px;

    background:#f8f9fb;

    border-radius:15px;

    padding:22px;

    text-align:center;

    box-shadow:0 4px 12px rgba(0,0,0,.05);

}

.summary-value{

    font-size:36px;

    font-weight:700;

    color:#1976d2;

    line-height:1;

}

.summary-title{

    margin-top:10px;

    font-size:14px;

    color:#666;

    letter-spacing:1px;

    text-transform:uppercase;

}

/*====================================
  EXPORT INVENTORY
  File Name
====================================*/

#txtFileName{

    width:100%;
    height:58px;

    padding:0 18px;

    border:2px solid #222;
    border-radius:18px;

    font-size:15px;
    font-weight:600;

    background:#f5f5f5;
    color:#555;

    box-sizing:border-box;

    cursor:default;

}

#txtFileName:focus{

    outline:none;

}

/*====================================
  EXPORT BUTTON DISABLED
====================================*/

#btnExport:disabled{

    background:#BFC5D2;

    color:#FFFFFF;

    cursor:not-allowed;

    opacity:0.6;

    pointer-events:none;

}

#btnExport:disabled:hover{

    background:#BFC5D2;

}

/* ===========================
   PROGRESS
=========================== */

.progress-summary{

    line-height:32px;

    font-size:18px;

}

.remaining-title{

    margin:15px 0;

    font-size:18px;

    font-weight:bold;

}

.remaining-list{

    border:1px solid #dcdcdc;

    border-radius:10px;

    max-height:250px;

    overflow-y:auto;

    background:#fff;

}

.remaining-item{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:14px 16px;

    cursor:pointer;

    border-bottom:1px solid #eeeeee;

    transition:.2s;

}

.remaining-item:last-child{

    border-bottom:none;

}

.remaining-item:hover{

    background:#f3f8ff;

}

.arrow{

    color:#1f4ba5;

    font-weight:bold;

}

/* ===========================
   PROGRESS DASHBOARD
=========================== */

.progress-dashboard{
    width:100%;
}

#overallProgress{
    margin-bottom:20px;
}

#progressCards{

    display:flex;

    flex-direction:column;

    gap:18px;

}

.line-card{

    background:#fff;

    border-radius:12px;

    padding:18px;

    border:1px solid #ddd;

    box-shadow:0 2px 8px rgba(0,0,0,.08);

    transition:.2s;

    width:min(100%,520px);

    margin:0 auto;

}

/* =======================================
   OVERALL PROGRESS
======================================= */

.overall-card{

    background:linear-gradient(135deg,#1E4FB8,#2D6CDF);

    color:#fff;

    border:none;

    box-shadow:0 8px 20px rgba(30,79,184,.30);

}

.overall-card .progress-bar{

    background:rgba(255,255,255,.25);

}

.overall-card .progress-fill{

    background:#8CFF7A;

}

.overall-card .line-percent,
.overall-card .line-info{

    color:#fff;

}

.overall-card .line-title{

    color:#fff;

    font-weight:700;

}

.line-card:hover{

    transform:translateY(-2px);

    box-shadow:0 4px 12px rgba(0,0,0,.15);

}

.line-name{

    font-size:18px;

    font-weight:bold;

    margin-bottom:12px;

}

.progress-bar{

    width:100%;

    height:18px;

    background:#ececec;

    border-radius:20px;

    overflow:hidden;

    margin:10px 0;

}

.progress-fill{

    height:100%;

    width:0%;

    background:#4CAF50;

    transition:.4s;

}

.progress-info{

    display:flex;

    justify-content:space-between;

    font-size:14px;

    margin-top:10px;

}

.detail-btn{

    margin-top:15px;

    width:100%;

    padding:10px;

    border:none;

    border-radius:8px;

    background:#1565C0;

    color:white;

    font-weight:bold;

    cursor:pointer;

}

.detail-btn:hover{

    background:#0D47A1;

}