/* =====================================================
   MISHPA STITCHING STUDIO
   Premium Boutique Theme
   Deep Crimson + Cream
===================================================== */

:root{

    --primary:#7B1E3A;
    --primary-dark:#5C162C;
    --primary-light:#A12C4F;

    --cream:#FFF8F0;
    --cream-dark:#F6EBDD;

    --white:#FFFFFF;

    --gold:#C9A227;

    --text:#3A2C2A;

    --gray:#6F6F6F;

    --border:#E8DCCB;

    --success:#2E7D32;

    --danger:#C62828;

    --shadow:
    0 12px 30px rgba(123,30,58,.12);

}

*{

    margin:0;
    padding:0;

    box-sizing:border-box;

}

body{

    font-family:
    "Poppins",
    Arial,
    sans-serif;

    background:var(--cream);

    color:var(--text);

}

/* ==========================
      SIDEBAR
========================== */

.sidebar{

    position:fixed;

    top:0;
    left:0;

    width:250px;

    height:100vh;

    background:
    linear-gradient(
    180deg,
    var(--primary),
    var(--primary-dark)
    );

    padding:25px 18px;

    box-shadow:8px 0 25px rgba(0,0,0,.15);

}

.logo{

    color:white;

    text-align:center;

    font-size:28px;

    font-weight:bold;

    letter-spacing:1px;

    margin-bottom:8px;

}

.logo span{

    display:block;

    margin-top:6px;

    font-size:11px;

    letter-spacing:3px;

    color:#ffe8c4;

}

.sidebar a{

    display:flex;

    align-items:center;

    gap:12px;

    text-decoration:none;

    color:white;

    padding:14px 18px;

    border-radius:14px;

    margin:10px 0;

    transition:.3s;

    font-size:15px;

}

.sidebar a:hover{

    background:rgba(255,255,255,.15);

    border-left:4px solid var(--gold);

    transform:translateX(6px);

}

.sidebar a.active{

    background:rgba(255,255,255,.18);

    border-left:4px solid var(--gold);

}

/* ==========================
      MAIN
========================== */

.main{

    margin-left:250px;

    min-height:100vh;

}

/* ==========================
      TOPBAR
========================== */

.topbar{

    height:75px;

    background:var(--white);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:0 35px;

    border-bottom:1px solid var(--border);

    box-shadow:0 5px 18px rgba(0,0,0,.05);

}

.topbar h2{

    color:var(--primary);

    margin:0;

}

.topbar .user{

    display:flex;

    align-items:center;

    gap:15px;

}

.topbar img{

    width:45px;

    height:45px;

    border-radius:50%;

    border:3px solid var(--gold);

}

/* =====================================================
        PAGE CONTENT
===================================================== */

.page-content{

    padding:35px;

}

.title-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:30px;

}

h1{

    color:var(--primary);

    font-size:32px;

    margin-bottom:10px;

}

h2{

    color:var(--primary);

    margin:25px 0 15px;

}

p{

    color:var(--gray);

}

/* =====================================================
        DASHBOARD CARDS
===================================================== */

.cards{

    display:grid;

    grid-template-columns:repeat(4,1fr);

    gap:22px;

}

.stat-card{

    background:var(--white);

    border-radius:20px;

    padding:28px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    transition:.35s;

    position:relative;

    overflow:hidden;

}

.stat-card::before{

    content:"";

    position:absolute;

    top:0;

    left:0;

    width:100%;

    height:5px;

    background:linear-gradient(
    90deg,
    var(--primary),
    var(--gold)
    );

}

.stat-card:hover{

    transform:translateY(-8px);

}

.stat-card h3{

    color:var(--gray);

    font-size:15px;

    margin-bottom:15px;

}

.stat-card strong{

    font-size:32px;

    color:var(--primary);

}

/* =====================================================
        BUTTONS
===================================================== */

.quick-actions{

    display:flex;

    gap:15px;

    margin-top:30px;

    flex-wrap:wrap;

}

.btn,
button,
.quick-actions a{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    gap:8px;

    background:var(--primary);

    color:white;

    border:none;

    padding:13px 24px;

    border-radius:12px;

    cursor:pointer;

    text-decoration:none;

    transition:.3s;

    font-size:14px;

    font-weight:600;

}

.btn:hover,
button:hover,
.quick-actions a:hover{

    background:var(--primary-dark);

    transform:translateY(-3px);

}

.btn-gold{

    background:var(--gold);

    color:white;

}

.btn-gold:hover{

    opacity:.9;

}

/* =====================================================
        FORM CARD
===================================================== */

.form-card{

    max-width:850px;

    background:white;

    padding:30px;

    border-radius:20px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

}

.form-card label{

    display:block;

    margin-bottom:8px;

    font-weight:600;

    color:var(--text);

}

.form-card input,
.form-card select,
.form-card textarea{

    width:100%;

    padding:14px;

    margin-bottom:18px;

    border:1px solid var(--border);

    border-radius:12px;

    background:#fffdfb;

    transition:.3s;

    font-size:15px;

}

.form-card textarea{

    resize:vertical;

    min-height:120px;

}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 10px rgba(123,30,58,.15);

}

/* =====================================================
        TABLE
===================================================== */

.table-card{

    background:white;

    border-radius:20px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    overflow:hidden;

    overflow-x:auto;

}

table{

    width:100%;

    border-collapse:collapse;

}

thead{

    background:var(--primary);

    color:white;

}

th{

    padding:15px;

    text-align:left;

    font-size:14px;

    font-weight:600;

}

td{

    padding:15px;

    border-bottom:1px solid var(--border);

}

tbody tr:nth-child(even){

    background:#FFF9F3;

}

tbody tr:hover{

    background:#FFF2E6;

}

/* =====================================================
        STATUS BADGES
===================================================== */

.status{

    display:inline-block;

    padding:7px 15px;

    border-radius:30px;

    font-size:12px;

    font-weight:bold;

}

.status.pending{

    background:#FFF3CD;

    color:#856404;

}

.status.completed{

    background:#D4EDDA;

    color:#155724;

}

.status.cancelled{

    background:#F8D7DA;

    color:#721C24;

}

/* =====================================================
        PROFILE CARD
===================================================== */

.profile-card{

    max-width:800px;

    background:white;

    border:1px solid var(--border);

    border-radius:20px;

    padding:30px;

    box-shadow:var(--shadow);

}

.profile-card p{

    margin:12px 0;

    font-size:15px;

}

/* =====================================================
        MEASUREMENTS
===================================================== */

.measurement-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-top:20px;

}

.measurement-grid div{

    background:white;

    border:1px solid var(--border);

    border-radius:15px;

    padding:18px;

    box-shadow:0 5px 15px rgba(0,0,0,.04);

    transition:.3s;

}

.measurement-grid div:hover{

    transform:translateY(-4px);

    border-color:var(--gold);

}

/* =====================================================
        BALANCE BOX
===================================================== */

.balance-box{

    background:#FFF4E8;

    border-left:6px solid var(--gold);

    padding:18px;

    border-radius:12px;

    font-size:18px;

    font-weight:bold;

    margin-bottom:20px;

}
/* =====================================================
        INVOICE DESIGN
===================================================== */

.invoice{

    max-width:900px;

    margin:40px auto;

    background:var(--white);

    border-radius:20px;

    border:1px solid var(--border);

    box-shadow:var(--shadow);

    overflow:hidden;

}

.invoice-header{

    background:linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
    );

    color:white;

    padding:35px;

    text-align:center;

}

.invoice-header h1{

    color:white;

    margin-bottom:10px;

    font-size:34px;

}

.invoice-header p{

    color:#F8EFD8;

}

.invoice-body{

    padding:35px;

}

.invoice-info{

    display:flex;

    justify-content:space-between;

    gap:25px;

    margin-bottom:30px;

    flex-wrap:wrap;

}

.invoice-info div{

    flex:1;

    min-width:250px;

}

.invoice-total{

    width:320px;

    margin-left:auto;

    margin-top:25px;

    border:1px solid var(--border);

    border-radius:12px;

    overflow:hidden;

}

.invoice-total table{

    width:100%;

}

.invoice-total td{

    padding:12px 18px;

}

.invoice-total tr:last-child{

    background:var(--primary);

    color:white;

    font-weight:bold;

    font-size:17px;

}

.thank-you{

    margin-top:40px;

    text-align:center;

    color:var(--primary);

    font-size:18px;

    font-weight:bold;

}

/* =====================================================
        LOGIN PAGE
===================================================== */

.login-body{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:
    linear-gradient(
    135deg,
    #F8EFE8,
    #FFF8F0
    );

}

.login-card{

    width:420px;

    background:white;

    border-radius:25px;

    padding:40px;

    border:1px solid var(--border);

    box-shadow:0 20px 50px rgba(0,0,0,.12);

    text-align:center;

}

.brand-logo{

    font-size:40px;

    color:var(--primary);

    font-weight:bold;

    margin-bottom:5px;

}

.login-card h2{

    color:var(--primary);

    margin-bottom:10px;

}

.login-card p{

    margin-bottom:25px;

    color:var(--gray);

}

.login-card input{

    width:100%;

    padding:15px;

    margin-bottom:18px;

    border:1px solid var(--border);

    border-radius:12px;

    background:#FFFDFC;

    transition:.3s;

}

.login-card input:focus{

    outline:none;

    border-color:var(--primary);

    box-shadow:0 0 10px rgba(123,30,58,.15);

}

.login-card button{

    width:100%;

}

.error{

    background:#FDEAEA;

    color:var(--danger);

    padding:12px;

    border-radius:10px;

    margin-bottom:18px;

}

/* =====================================================
        SMALL BUTTON
===================================================== */

.small-btn{

    display:inline-block;

    padding:8px 14px;

    border-radius:8px;

    background:var(--primary);

    color:white;

    text-decoration:none;

    font-size:13px;

    transition:.3s;

}

.small-btn:hover{

    background:var(--primary-dark);

}

/* =====================================================
        SCROLLBAR
===================================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:var(--primary);

    border-radius:10px;

}

::-webkit-scrollbar-track{

    background:#F3ECE4;

}

/* =====================================================
        RESPONSIVE
===================================================== */

@media(max-width:992px){

    .cards{

        grid-template-columns:repeat(2,1fr);

    }

    .measurement-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:768px){

    .sidebar{

        position:relative;

        width:100%;

        height:auto;

    }

    .main{

        margin-left:0;

    }

    .topbar{

        padding:15px 20px;

        flex-direction:column;

        height:auto;

        gap:12px;

    }

    .invoice-info{

        flex-direction:column;

    }

}

@media(max-width:576px){

    .cards{

        grid-template-columns:1fr;

    }

    .measurement-grid{

        grid-template-columns:1fr;

    }

    .page-content{

        padding:20px;

    }

    .login-card{

        width:95%;

        padding:25px;

    }

    .invoice{

        margin:15px;

    }

}

/* =====================================================
        PRINT
===================================================== */

@media print{

    body{

        background:white;

    }

    .sidebar,
    .topbar,
    .quick-actions,
    .btn,
    button{

        display:none !important;

    }

    .main{

        margin:0;

    }

    .page-content{

        padding:0;

    }

    .invoice{

        margin:0;

        max-width:100%;

        box-shadow:none;

        border:none;

    }

}

/* =====================================================
        ANIMATION
===================================================== */

.card,
.stat-card,
.form-card,
.table-card,
.profile-card,
.invoice{

    animation:fadeUp .5s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(20px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}





/* ==========================================================
   MISHPA MEASUREMENT REPORT
========================================================== */

.measurement-card{

    background:#fffdf9;

    border:2px solid #7B1E3A;

    border-radius:18px;

    padding:30px;

    box-shadow:0 10px 30px rgba(0,0,0,.08);

}

.measurement-card h2{

    color:#7B1E3A;

    margin-bottom:20px;

    border-bottom:2px solid #F7E7CE;

    padding-bottom:10px;

}

.measurement-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-top:20px;

}

.measurement-grid div{

    background:#FDF5EE;

    border:1px solid #E7D7C9;

    border-radius:12px;

    padding:18px;

    transition:.3s;

}

.measurement-grid div:hover{

    transform:translateY(-3px);

    box-shadow:0 8px 20px rgba(0,0,0,.08);

}

.measurement-grid strong{

    display:block;

    color:#7B1E3A;

    margin-bottom:8px;

    font-size:14px;

}

.profile-card hr{

    margin:25px 0;

    border:none;

    border-top:1px solid #ddd;

}

.profile-card p{

    margin:12px 0;

    font-size:15px;

}

/* ==========================================================
   REPORT TABLE
========================================================== */

.table-card table{

    width:100%;

    border-collapse:collapse;

}

.table-card th{

    background:#7B1E3A;

    color:#fff;

    padding:14px;

    text-align:left;

}

.table-card td{

    padding:12px;

    border-bottom:1px solid #eee;

}

.table-card tr:hover{

    background:#FDF5EE;

}

/* ==========================================================
   PRINT
========================================================== */

@media print{

.sidebar,
.topbar,
.quick-actions{

display:none !important;

}

.main{

margin:0;

}

.page-content{

padding:0;

}

.profile-card,
.measurement-card{

box-shadow:none;

border:1px solid #000;

}

body{

background:#fff;

}

}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:768px){

.measurement-grid{

grid-template-columns:1fr;

}

.table-card{

overflow-x:auto;

}

.table-card table{

min-width:900px;

}

}



#installBtn{
    width:100%;
    padding:12px;
    margin-top:15px;
    background:#8B1E3F;
    color:#fff;
    border:none;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
}

#installBtn:hover{
    background:#6f1632;
}


/* Splash Screen */

#splash-screen{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:#ffffff;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

z-index:999999;

}

#splash-screen .logo{

width:120px;

height:120px;

animation:zoom 1.2s infinite alternate;

}

@keyframes zoom{

from{

transform:scale(.9);

}

to{

transform:scale(1);

}

}

#splash-screen h2{

margin-top:20px;

color:#8B1E3F;

}

#splash-screen p{

color:#777;

}

#networkStatus{

padding:10px;

text-align:center;

font-weight:bold;

}


html,
body{

overscroll-behavior:none;

touch-action:manipulation;

}

