/* =========================================
GLOBAL
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    background:#f4f6f9;
    font-family:Arial, Helvetica, sans-serif;
    overflow-x:hidden;
}

/* =========================================
SIDEBAR
========================================= */

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:220px;
    height:100%;
    background:#001845;
    overflow-y:auto;
    z-index:999;
}

.logo{
    color:#fff;
    text-align:center;
    padding:22px 10px;
    font-size:28px;
    font-weight:bold;
    border-bottom:1px solid rgba(255,255,255,0.1);
}

.logo i{
    margin-right:10px;
}

.sidebar a{
    display:block;
    color:#fff;
    text-decoration:none;
    padding:18px 20px;
    font-size:17px;
    transition:0.3s;
    border-bottom:1px solid rgba(255,255,255,0.05);
}

.sidebar a i{
    width:25px;
}

.sidebar a:hover{
    background:#023e8a;
    padding-left:28px;
}

/* =========================================
MAIN CONTENT
========================================= */

.main-content{
    margin-left:220px;
    padding:20px;
    min-height:100vh;
}

/* =========================================
TOP HEADER
========================================= */

.top-header{
    background:#4090cb;
    color:white;
    padding:20px;
    border-radius:12px;
    font-size:24px;
    font-weight:bold;
    margin-bottom:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.1);
}

/* =========================================
CARD SECTION
========================================= */

.card-container{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:20px;
}

.card{
    flex:1;
    min-width:220px;
    padding:25px;
    border-radius:14px;
    text-align:center;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.card h3{
    font-size:18px;
    color:#444;
    margin-bottom:15px;
}

.card h1{
    font-size:40px;
    color:#1565c0;
}

.card1{
    background:#dce7f8;
}

.card2{
    background:#d8f3dc;
}

.card3{
    background:#fff3cd;
}

.card4{
    background:#f8d7da;
}

/* =========================================
TABLE BOX
========================================= */

.table-box{
    background:white;
    padding:20px;
    border-radius:14px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
}

.table-title{
    font-size:28px;
    font-weight:bold;
    margin-bottom:20px;
    color:#222;
}

/* =========================================
FILTER ROW
========================================= */

.filter-row{
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    margin-bottom:20px;
}

.filter-row input,
.filter-row select{
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    min-width:180px;
    font-size:15px;
}

.filter-row input:focus,
.filter-row select:focus{
    outline:none;
    border-color:#4090cb;
}

/* =========================================
BUTTONS
========================================= */

.btn{
    background:#198754 !important;
    color:white !important;
    border:none !important;
    padding:12px 22px;
    border-radius:8px;
    cursor:pointer;
    font-size:15px;
    transition:0.3s;
}

.btn:hover{
    background:#146c43 !important;
}

.btn-blue{
    background:#0d6efd !important;
    color:white !important;
}

.btn-blue:hover{
    background:#0b5ed7 !important;
}

.btn-red{
    background:#dc3545 !important;
    color:white !important;
}

.btn-red:hover{
    background:#bb2d3b !important;
}

/* =========================================
TABLE
========================================= */

.table-responsive{
    overflow-x:auto;
}

table{
    width:100%;
    border-collapse:collapse;
    min-width:1200px;
}

table th{
    background:#f1f3f5;
    color:#222;
    padding:12px;
    border:1px solid #ddd;
    text-align:center;
    font-size:15px;
}

table td{
    border:1px solid #ddd;
    padding:6px;
    text-align:center;
}

table tr:nth-child(even){
    background:#fafafa;
}

table tr:hover{
    background:#f3f7ff;
}

/* =========================================
TABLE INPUTS
========================================= */

table input{
    width:100%;
    padding:8px;
    border:1px solid #ccc;
    border-radius:5px;
    text-align:center;
    font-size:14px;
}

table input:focus{
    outline:none;
    border-color:#4090cb;
}

/* =========================================
RESPONSIVE
========================================= */

@media(max-width:768px){

    .sidebar{
        width:100%;
        height:auto;
        position:relative;
    }

    .main-content{
        margin-left:0;
    }

    .card{
        min-width:100%;
    }

}