/* ===========================================
   OCR LIVE DATA TRACKER
   File : style.css
   Theme : Blue + White Professional
=========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#eef4ff;
    color:#1f2937;
    min-height:100vh;
}

.hidden{
    display:none;
}

/* ---------- LOGIN PAGE ---------- */

.login-page{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
    background:linear-gradient(135deg,#2563eb,#1d4ed8);
}

.login-card{
    width:100%;
    max-width:390px;
    background:#ffffff;
    border-radius:25px;
    padding:35px 25px;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.logo-area{
    text-align:center;
    margin-bottom:30px;
}

.logo-circle{
    width:80px;
    height:80px;
    margin:auto;
    margin-bottom:15px;
    border-radius:50%;
    overflow:hidden;              /* Image circle-এর ভিতরে clip হবে */
    background:#2563eb;
    display:flex;
    justify-content:center;
    align-items:center;
}

.logo-circle img{
    width:100%;
    height:100%;
    object-fit:cover;             /* পুরো circle fill করবে */
    border-radius:50%;
    display:block;
}
.logo-area h1{
    color:#2563eb;
    font-size:23px;
    font-weight:700;
}

.logo-area p{
    color:#64748b;
    font-size:14px;
}



/* ---------- INPUT ---------- */

.input-box{
    background:#f1f5ff;
    border:2px solid transparent;
    border-radius:15px;
    display:flex;
    align-items:center;
    padding:14px 15px;
    margin-bottom:18px;
    transition:.3s;
}

.input-box:focus-within{
    border-color:#2563eb;
}

.input-box i{
    color:#2563eb;
    margin-right:10px;
    font-size:16px;
}

.input-box input{
    flex:1;
    border:none;
    outline:none;
    background:none;
    font-size:15px;
}

.togglePassword{
    cursor:pointer;
}

/* ---------- REMEMBER ---------- */

.remember-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
    font-size:14px;
}

.remember-row label{
    color:#475569;
}

.remember-row input{
    margin-right:5px;
}

.remember-row a{
    color:#2563eb;
    text-decoration:none;
    font-weight:500;
}

/* ---------- BUTTONS ---------- */

.primary-btn,
.secondary-btn,
.install-btn,
.submit-btn{
    width:100%;
    border:none;
    border-radius:15px;
    padding:14px;
    font-size:15px;
    cursor:pointer;
    transition:.25s;
    font-weight:600;
}

.primary-btn{
    background:#2563eb;
    color:#fff;
}

.primary-btn:hover{
    background:#1d4ed8;
}

.secondary-btn{
    margin-top:12px;
    background:#fff;
    border:2px solid #2563eb;
    color:#2563eb;
}

.secondary-btn:hover{
    background:#2563eb;
    color:#fff;
}

.install-btn{
    margin-top:25px;
    background:#16a34a;
    color:#fff;
}

.install-btn:hover{
    background:#15803d;
}

/* ---------- DASHBOARD ---------- */

.dashboard-page{
    padding:20px;
    max-width:700px;
    margin:auto;
}


/* ===== Dashboard Animation ===== */

.login-page,
.dashboard-page{
    transition: opacity .35s ease, transform .35s ease;
}

.hidden{
    display:none !important;
}

.dashboard-page{
    opacity:1;
    transform:translateY(0);
}





/* ---------- TOP BAR ---------- */

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.welcome h2{
    color:#2563eb;
    font-size:24px;
}

.welcome p{
    color:#64748b;
}

#logoutBtn{
    width:48px;
    height:48px;
    border:none;
    border-radius:50%;
    background:#ef4444;
    color:#fff;
    cursor:pointer;
    font-size:18px;
}

/* ---------- STATUS CARD ---------- */

.status-card{
    background:linear-gradient(135deg,#2563eb,#1e40af);
    color:#fff;
    border-radius:20px;
    padding:22px;
    margin-bottom:20px;
    box-shadow:0 10px 25px rgba(37,99,235,.35);
}

.status-card h3{
    font-size:17px;
    margin-bottom:8px;
}

.status-card span{
    font-size:28px;
    font-weight:700;
    display:block;
    margin-bottom:8px;
}

.status-card p{
    font-size:14px;
    color:#dbeafe;
}

/* ---------- CARD ---------- */

.upload-card,
.history-card{
    background:#fff;
    border-radius:20px;
    padding:20px;
    margin-bottom:20px;
    box-shadow:0 8px 25px rgba(15,23,42,.08);
}

.upload-card h2,
.history-card h2{
    color:#2563eb;
    margin-bottom:18px;
}

/* ---------- FORM ---------- */

.upload-card label{
    display:block;
    margin-bottom:8px;
    margin-top:14px;
    font-weight:600;
}

.upload-card select,
.upload-card input[type=text]{
    width:100%;
    padding:14px;
    border-radius:14px;
    border:2px solid #dbeafe;
    background:#f8fbff;
    outline:none;
    font-size:15px;
    transition:.3s;
}

.upload-card select:focus,
.upload-card input[type=text]:focus{
    border-color:#2563eb;
}

/* ---------- CAMERA BUTTON ---------- */

.upload-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-top:8px;
}

.upload-buttons button{
    border:none;
    border-radius:15px;
    padding:14px;
    cursor:pointer;
    font-weight:600;
    color:#fff;
}

#cameraBtn{
    background:#16a34a;
}

#galleryBtn{
    background:#2563eb;
}

/* ---------- IMAGE PREVIEW ---------- */


.image-preview{
    margin-top:18px;
    border:2px dashed #bfdbfe;
    border-radius:18px;
    height:220px;
    background:#f8fbff;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
    position:relative;
}

.image-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:none;
}

.image-preview span{
    color:#64748b;
    font-size:14px;
    text-align:center;
    padding:20px;
    position:absolute;
}
/* ---------- SUBMIT ---------- */

/* ===== Submit Button Loading ===== */

.submit-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
}

.submit-btn:disabled{
    opacity:.7;
    cursor:not-allowed;
}

.submit-btn:hover{
    transform:translateY(-2px);
}

/* ---------- HISTORY ---------- */

.history-title{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}

#refreshHistory{
    border:none;
    background:#eff6ff;
    color:#2563eb;
    width:40px;
    height:40px;
    border-radius:12px;
    cursor:pointer;
}

/* ===== Upload History Card ===== */

.history-item{
    background:#ffffff;
    border:1px solid #dbeafe;
    border-left:5px solid #2563eb;
    border-radius:14px;
    padding:15px;
    margin-bottom:12px;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
}

.history-item h4{
    color:#1d4ed8;
    font-size:16px;
    margin-bottom:4px;
}

.history-item p{
    font-size:13px;
    color:#64748b;
    margin:2px 0;
}

/* ---------- TOAST ---------- */

#toast{
    position:fixed;
    bottom:20px;
    left:50%;
    transform:translateX(-50%);
    background:#16a34a;
    color:#fff;
    padding:14px 24px;
    border-radius:50px;
    font-size:14px;
    display:none;
    z-index:999;
    box-shadow:0 10px 25px rgba(0,0,0,.2);
}

/* ---------- MOBILE ---------- */

/* ===== Mobile Fix ===== */

@media (max-width:480px){

    .upload-card,
    .history-card,
    .status-card{
        padding:16px;
    }

    .top-bar{
        margin-bottom:16px;
    }

    .welcome h2{
        font-size:20px;
    }

    .status-card span{
        font-size:20px;
    }

}