/* RESET */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI', sans-serif;
}

body{
    background:#f1f5f9;
    color:#1e293b;
}

/* SIDEBAR */

.sidebar{
    width:260px;
    height:100vh;
    position:fixed;
    left:0;
    top:0;
    background:linear-gradient(
    180deg,
    #0f172a,
    #1e293b
    );
    overflow:auto;
    box-shadow:4px 0 15px rgba(0,0,0,0.1);
}

.logo{
    padding:28px 20px;
    text-align:center;
    color:white;
    font-size:28px;
    font-weight:bold;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.logo span{
    display:block;
    font-size:13px;
    color:#cbd5e1;
    margin-top:6px;
    font-weight:normal;
}

.menu{
    padding:20px 0;
}

.menu-title{
    padding:14px 25px 8px;
    color:#94a3b8;
    font-size:12px;
    letter-spacing:2px;
    font-weight:bold;
}

.menu a{
    display:flex;
    align-items:center;
    padding:14px 25px;
    color:#f1f5f9;
    text-decoration:none;
    transition:0.3s;
    font-size:15px;
    border-left:4px solid transparent;
}

.menu a:hover{
    background:rgba(255,255,255,0.08);
    border-left:4px solid #38bdf8;
    padding-left:30px;
}

.menu a.active{
    background:rgba(255,255,255,0.08);
    border-left:4px solid #22c55e;
}

/* MAIN */

.main{
    margin-left:260px;
    padding:30px;
    min-height:100vh;
}

/* PAGE TITLE */

.page-title{
    font-size:32px;
    font-weight:bold;
    margin-bottom:25px;
    color:#0f172a;
}

/* CARD DASHBOARD */

.card-container{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.dashboard-card{
    padding:25px;
    border-radius:18px;
    color:white;
    position:relative;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
}

.dashboard-card h3{
    font-size:15px;
    margin-bottom:10px;
    opacity:0.9;
}

.dashboard-card h1{
    font-size:38px;
    font-weight:bold;
}

.bg1{
    background:linear-gradient(
    135deg,
    #4f46e5,
    #6366f1
    );
}

.bg2{
    background:linear-gradient(
    135deg,
    #0ea5e9,
    #38bdf8
    );
}

.bg3{
    background:linear-gradient(
    135deg,
    #f59e0b,
    #fbbf24
    );
}

.bg4{
    background:linear-gradient(
    135deg,
    #22c55e,
    #4ade80
    );
}

/* TABLE CARD */

.table-card,
.chart-card,
.form-card{
    background:white;
    border-radius:18px;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    overflow:hidden;
    margin-bottom:25px;
}

.table-header,
.chart-title{
    padding:18px 25px;
    font-size:18px;
    font-weight:bold;
    background:#0f172a;
    color:white;
}

/* TABLE */

table{
    width:100%;
    border-collapse:collapse;
}

table th{
    background:#1e293b;
    color:white;
    padding:14px;
    text-align:left;
    font-size:14px;
}

table td{
    padding:14px;
    border-bottom:1px solid #e2e8f0;
    font-size:14px;
    vertical-align:middle;
}

table tr:hover{
    background:#f8fafc;
}

/* BUTTON */

.btn{
    display:inline-block;
    padding:8px 14px;
    border:none;
    border-radius:8px;
    text-decoration:none;
    color:white;
    font-size:13px;
    font-weight:600;
    transition:0.3s;
}

.btn:hover{
    opacity:0.9;
    transform:translateY(-1px);
}

.btn-success{
    background:#22c55e;
}

.btn-warning{
    background:#f59e0b;
}

.btn-danger{
    background:#ef4444;
}

.btn-primary{
    background:#3b82f6;
}

/* ACTION BUTTON */

.action-btn{
    display:flex;
    gap:6px;
}

.action-btn .btn{
    padding:6px 10px;
    font-size:12px;
}

/* FORM */

.form-card{
    padding:25px;
}

.form-group{
    margin-bottom:20px;
}

.form-group label{
    display:block;
    margin-bottom:8px;
    font-weight:600;
    color:#334155;
}

.form-control{
    width:100%;
    padding:12px;
    border:1px solid #cbd5e1;
    border-radius:10px;
    font-size:14px;
    transition:0.3s;
}

.form-control:focus{
    outline:none;
    border-color:#3b82f6;
    box-shadow:0 0 0 3px rgba(59,130,246,0.15);
}

/* IMAGE */

.medicine-img{
    width:70px;
    height:70px;
    object-fit:cover;
    border-radius:12px;
    border:2px solid #e2e8f0;
}

.empty-img{
    width:70px;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f1f5f9;
    border-radius:12px;
    font-size:11px;
    color:#64748b;
    border:1px dashed #cbd5e1;
}

/* CHART */

.chart-card{
    padding-bottom:20px;
}

.chart-card canvas{
    padding:20px;
}

/* SCROLLBAR */

::-webkit-scrollbar{
    width:8px;
    height:8px;
}

::-webkit-scrollbar-thumb{
    background:#94a3b8;
    border-radius:10px;
}

::-webkit-scrollbar-track{
    background:#e2e8f0;
}

/* RESPONSIVE */

@media(max-width:900px){

    .sidebar{
        width:220px;
    }

    .main{
        margin-left:220px;
    }

    .card-container{
        grid-template-columns:repeat(2,1fr);
    }
}

@media(max-width:700px){

    .sidebar{
        position:relative;
        width:100%;
        height:auto;
    }

    .main{
        margin-left:0;
    }

    .card-container{
        grid-template-columns:1fr;
    }

    table{
        min-width:700px;
    }
}
/* ================= LOGIN ================= */

.login-body{

    height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    background:linear-gradient(
    135deg,
    #0f172a,
    #1e293b,
    #334155
    );

}

.login-box{

    width:400px;

    background:white;

    padding:40px;

    border-radius:20px;

    box-shadow:
    0 15px 40px rgba(0,0,0,0.25);

    animation:fadeIn 0.5s ease;

}

.login-logo{

    width:90px;
    height:90px;

    margin:0 auto 20px;

    border-radius:50%;

    background:linear-gradient(
    45deg,
    #2563eb,
    #3b82f6
    );

    display:flex;
    justify-content:center;
    align-items:center;

    color:white;

    font-size:40px;
    font-weight:bold;

}

.login-title{

    text-align:center;

    font-size:30px;
    font-weight:bold;

    color:#0f172a;

    margin-bottom:10px;

}

.login-subtitle{

    text-align:center;

    color:#64748b;

    margin-bottom:30px;

    font-size:14px;

}

.login-box label{

    display:block;

    margin-bottom:8px;
    margin-top:15px;

    font-weight:600;

    color:#334155;

}

.login-box .form-control{

    width:100%;

    padding:14px;

    border:1px solid #cbd5e1;

    border-radius:10px;

    font-size:14px;

    transition:0.3s;

}

.login-box .form-control:focus{

    outline:none;

    border-color:#3b82f6;

    box-shadow:
    0 0 0 4px rgba(59,130,246,0.2);

}

.login-box .btn{

    width:100%;

    padding:14px;

    margin-top:25px;

    border:none;

    border-radius:10px;

    background:linear-gradient(
    45deg,
    #2563eb,
    #3b82f6
    );

    color:white;

    font-size:15px;
    font-weight:bold;

    cursor:pointer;

    transition:0.3s;

}

.login-box .btn:hover{

    transform:translateY(-2px);

    box-shadow:
    0 10px 20px rgba(37,99,235,0.3);

}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(20px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}
/* ================= REPORT ================= */

.report-company{

    background:white;

    padding:25px;

    border-radius:15px;

    margin-bottom:20px;

    box-shadow:
    0 5px 15px rgba(0,0,0,0.08);

}

.report-company h1{

    color:#0f172a;

    margin-bottom:10px;

    font-size:30px;

}

.report-company p{

    color:#64748b;

    line-height:1.7;

}

.print-btn{

    margin-bottom:20px;

}

/* PRINT PDF */

@media print{

    .sidebar,
    .print-btn{

        display:none;

    }

    .main{

        margin-left:0;

        padding:0;

    }

    body{

        background:white;

    }

}