/* =========================================================
   GLOBAL CSS
========================================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins',sans-serif;
    background:#eef2f7;
    color:#111827;
    overflow-x:hidden;
}

a{
    text-decoration:none;
}

img{
    max-width:100%;
}

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:#cfd8ea;
    border-radius:20px;
}


/* =========================================================
   MAIN LAYOUT
========================================================= */

.main-container{
    display:flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar{
    width:280px;
    height:100vh;
    background:rgb(1,28,100);
    position:fixed;
    left:0;
    top:0;
    overflow-y:auto;
    padding:25px 20px;
    z-index:999;
}

.sidebar-logo{
    width:150px;
    background:white;
    padding:12px;
    border-radius:18px;
    margin-bottom:18px;
}

.logo-area{
    text-align:center;
    margin-bottom:35px;
    padding-bottom:25px;
    border-bottom:1px solid rgba(255,255,255,0.15);
}

.logo-area h2{
    color:white;
    font-size:34px;
    margin-bottom:6px;
}

.logo-area p{
    color:rgb(254,89,3);
    font-size:15px;
    font-weight:600;
}


/* =========================================================
   SIDEBAR MENU
========================================================= */

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:14px;
}

.menu li a{
    display:flex;
    align-items:center;
    gap:12px;
    background:rgba(255,255,255,0.08);
    color:white;
    padding:15px 18px;
    border-radius:16px;
    transition:0.3s;
    font-size:15px;
    font-weight:500;
}

.menu li a:hover{
    background:rgba(255,255,255,0.15);
    transform:translateX(4px);
}

.active a{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7b30
    ) !important;

    box-shadow:0 8px 20px rgba(254,89,3,0.25);
}

.logout-btn{
    margin-top:35px;
}

.logout-btn a{
    background:#ffeded !important;
    color:#d60000 !important;
    font-weight:700;
}

.logout-btn a:hover{
    background:#ff3c3c !important;
    color:white !important;
}


/* =========================================================
   CONTENT AREA
========================================================= */

.content-area{
    margin-left:280px;
    width:calc(100% - 280px);
    padding:25px;
}


/* =========================================================
   TOPBAR
========================================================= */

.topbar{
    background:white;
    border-radius:24px;
    padding:20px 24px;
    margin-bottom:25px;

    display:flex;
    justify-content:space-between;
    align-items:center;

    box-shadow:0 6px 20px rgba(0,0,0,0.05);
}

.topbar h2{
    color:rgb(1,28,100);
    font-size:30px;
}

.cashier-name{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:13px 22px;
    border-radius:16px;
    font-weight:600;
}


/* =========================================================
   PAGE HEADER
========================================================= */

.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.page-header h2{
    color:rgb(1,28,100);
    font-size:34px;
    margin-bottom:5px;
}

.page-header p{
    color:#6b7280;
    font-size:15px;
}


/* =========================================================
   DASHBOARD CARDS
========================================================= */

.dashboard-cards{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
    margin-bottom:28px;
}

.card{
    background:#f7f7f7;
    padding:28px;
    border-radius:24px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);

    border-left:6px solid rgb(254,89,3);
}

.card h3{
    color:#6b7280;
    margin-bottom:10px;
    font-size:15px;
}

.card h2{
    color:rgb(1,28,100);
    font-size:34px;
    font-weight:700;
}


/* =========================================================
   TABLE SECTION
========================================================= */

.table-section{
    background:#f7f7f7;
    border-radius:24px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.box-title{
    margin-bottom:20px;
    padding-bottom:15px;
    border-bottom:1px solid #e5e7eb;
}

.box-title h3{
    color:rgb(1,28,100);
    font-size:22px;
}


/* =========================================================
   TABLE
========================================================= */

table{
    width:100%;
    border-collapse:collapse;
}

table thead{
    background:rgb(1,28,100);
    color:white;
}

table th{
    padding:16px;
    text-align:left;
    font-size:14px;
    font-weight:600;
}

table td{
    padding:16px;
    border-bottom:1px solid #e5e7eb;
    font-size:14px;
}

table tbody tr:hover{
    background:#edf2ff;
}

.active-status{
    background:#dcffe8;
    color:green;
    padding:8px 14px;
    border-radius:30px;
    font-size:12px;
    font-weight:700;
}


/* =========================================================
   BILLING PRODUCT CARD
========================================================= */

.billing-product-card{
    display:flex;
    gap:15px;
    align-items:center;

    background:#f8f9ff;
    padding:18px;
    border-radius:18px;
    margin-bottom:18px;

    transition:0.3s;
}

.billing-product-card:hover{
    transform:translateY(-3px);
}

.billing-product-card img{
    width:80px;
    height:80px;
    object-fit:contain;
}

.billing-product-card h4{
    color:rgb(1,28,100);
    margin-bottom:6px;
}

.billing-product-card p{
    color:#6b7280;
    margin-bottom:4px;
}


/* =========================================================
   ANALYTICS GRID
========================================================= */

.analytics-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-bottom:25px;
}

.analytics-card{
    background:#f7f7f7;
    border-radius:24px;
    padding:25px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.analytics-header{
    margin-bottom:25px;
}

.analytics-header h3{
    color:rgb(1,28,100);
    font-size:22px;
}

.analytics-card canvas{
    width:100% !important;
    height:350px !important;
}


/* =========================================================
   LARGE CARD
========================================================= */

.large-card{
    margin-top:25px;
}


/* =========================================================
   BUTTONS
========================================================= */

.primary-btn{
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    border:none;
    padding:14px 22px;
    border-radius:16px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.primary-btn:hover{
    transform:translateY(-2px);
}


/* =========================================================
   LOGIN PAGE
========================================================= */

.login-body{
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    background:#eef2f7;
}

.login-box{
    width:420px;
    background:white;
    padding:45px;
    border-radius:28px;
    text-align:center;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
}

.login-logo{
    width:180px;
    margin-bottom:25px;
}

.login-box h2{
    color:rgb(1,28,100);
    margin-bottom:10px;
    font-size:32px;
}

.login-box p{
    color:#6b7280;
    margin-bottom:30px;
}

.login-box input{
    width:100%;
    padding:16px;
    border:none;
    background:#f4f7fb;
    border-radius:14px;
    margin-bottom:16px;
    outline:none;
    font-size:15px;
}

.login-box input:focus{
    border:2px solid rgb(254,89,3);
}

.login-box button{
    width:100%;
    border:none;

    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    color:white;
    padding:16px;
    border-radius:16px;
    cursor:pointer;
    font-size:16px;
    font-weight:600;
    transition:0.3s;
}

.login-box button:hover{
    transform:translateY(-2px);
}


/* =========================================================
   PROFILE SECTION
========================================================= */

.profile-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:25px;
}

.profile-card{
    background:#f7f7f7;
    border-radius:24px;
    padding:30px;
    text-align:center;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.profile-card img{
    width:120px;
    height:120px;
    border-radius:50%;
    object-fit:cover;
    margin-bottom:18px;
}

.profile-card h3{
    color:rgb(1,28,100);
    margin-bottom:6px;
}

.profile-card p{
    color:#6b7280;
}


/* =========================================================
   TARGET BOX
========================================================= */

.target-box{
    background:#f7f7f7;
    border-radius:24px;
    padding:28px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.target-progress{
    width:100%;
    height:18px;
    background:#dbe3f3;
    border-radius:30px;
    overflow:hidden;
    margin-top:18px;
}

.target-progress div{
    height:100%;
    width:84%;
    background:linear-gradient(
        135deg,
        rgb(254,89,3),
        #ff7a2f
    );

    border-radius:30px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:1400px){

    .dashboard-cards{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:1100px){

    .analytics-grid{
        grid-template-columns:1fr;
    }

    .profile-grid{
        grid-template-columns:1fr;
    }

}

@media(max-width:900px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .content-area{
        margin-left:0;
        width:100%;
    }

    .main-container{
        flex-direction:column;
    }

}

@media(max-width:700px){

    .dashboard-cards{
        grid-template-columns:1fr;
    }

    .topbar{
        flex-direction:column;
        gap:16px;
        align-items:flex-start;
    }

    .page-header{
        flex-direction:column;
        align-items:flex-start;
        gap:14px;
    }

    .content-area{
        padding:18px;
    }

    .analytics-card canvas{
        height:280px !important;
    }

    .login-box{
        width:95%;
        padding:30px;
    }

}