/* =====================================
   BODY
===================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,sans-serif;
}

body{
    background:#f4f6f9;
    min-height:100vh;
    zoom: 80%;
}

/* =====================================
   LOGIN
===================================== */

.login-container{
    width:100%;
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

.login-box{
    width:400px;
    background:#fff;
    padding:30px;
    border-radius:12px;
    box-shadow:0 0 20px rgba(0,0,0,.1);
}

.login-box h2{
    text-align:center;
    margin-bottom:25px;
    color:#14213d;
}

.login-box input,
.login-box select{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #ddd;
    border-radius:8px;
}

.login-box button{
    width:100%;
    padding:12px;
    border:none;
    background:#14213d;
    color:#fff;
    border-radius:8px;
    cursor:pointer;
}

.login-box button:hover{
    background:#1d3557;
}

/* =====================================
   DASHBOARD
===================================== */

.dashboard{
    padding:25px;
}

.topbar{
    background:#14213d;
    color:#fff;
    padding:15px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logout-btn{
    background:#e63946;
    color:#fff;
    padding:10px 18px;
    border:none;
    border-radius:6px;
    text-decoration:none;
}

.card-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:20px;
    margin-top:25px;
}

.card{
    background:#fff;
    border-radius:10px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,.08);
}

.card h3{
    color:#14213d;
    margin-bottom:10px;
}

.card p{
    font-size:30px;
    font-weight:bold;
}

/* =====================================
   TABLE
===================================== */

.table-wrapper{
    background:#fff;
    margin-top:20px;
    border-radius:10px;
    overflow:auto;
}

.user-table{
    width:100%;
    border-collapse:collapse;
}

.user-table th{
    background:#14213d;
    color:#fff;
    padding:12px;
}

.user-table td{
    padding:12px;
    border-bottom:1px solid #eee;
}

/* =====================================
   BUTTONS
===================================== */

.create-btn{
    background:#28a745;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
}

.edit-btn{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

.disable-btn{
    background:#dc2626;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

.reset-btn{
    background:#7c3aed;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

.enable-btn{
    background:#16a34a;
    color:#fff;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
}

/* =====================================
   MODAL
===================================== */

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.5);

    justify-content:center;

    align-items:center;

    z-index:99999;

    overflow-y: scroll;
    zoom: 80%;

}

.modal-content
{
    width:600px;

    max-width:95%;

    max-height:100vh;

    overflow-y:auto;

    padding:20px;

    border-radius:10px;
}

.form-group
{
    margin-bottom:12px;
}

.form-group label
{
    display:block;

    margin-bottom:5px;

    font-weight:600;
}

.form-group input,
.form-group select
{
    width:100%;

    padding:10px;

    border:1px solid #d1d5db;

    border-radius:6px;
}


.save-btn{
    width:100%;
    padding:12px;
    border:none;
    background:#14213d;
    color:#fff;
    border-radius:6px;
}

/* =====================================
   LOADER
===================================== */

.loader-overlay{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.7);
    justify-content:center;
    align-items:center;
}

.loader{
    width:50px;
    height:50px;
    border:5px solid #ddd;
    border-top:5px solid #14213d;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

/* =====================================
   TOAST
===================================== */

.toast{
    display:none;
    position:fixed;
    right:20px;
    top:20px;
    background:#14213d;
    color:#fff;
    padding:15px 20px;
    border-radius:8px;
}

.sidebar{
    width:260px;
    height:120vh;
    position:fixed;
    left:0;
    top:0;
    background:#0f172a;
    overflow:auto;
    overflow-y: scroll;
}

.sidebar h2{
    color:#fff;
    text-align:center;
    padding:20px;
}

.sidebar a{
    display:block;
    color:#fff;
    padding:15px 20px;
    text-decoration:none;
}

.sidebar a:hover{
    background:#1e293b;
}

.main-content{
    margin-left:260px;
    padding:25px;
}


/* =====================================
   SEARCH SECTION
===================================== */

.search-section{
    display:flex;
    gap:15px;
    margin:20px 0;
    flex-wrap:wrap;
}

.search-section input,
.search-section select{
    min-width:220px;
    padding:12px;
    border:1px solid #d1d5db;
    border-radius:8px;
    background:#fff;
}

.search-section input:focus,
.search-section select:focus{
    outline:none;
    border-color:#2563eb;
}

/* =====================================
   DASHBOARD GRID
===================================== */

.dashboard-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
    gap:20px;
    margin-bottom:25px;
}

.stat-card{
    background:#fff;
    border-radius:12px;
    padding:25px;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
    transition:.3s;
}

.stat-card:hover{
    transform:translateY(-3px);
}

.stat-card h3{
    font-size:15px;
    color:#6b7280;
    margin-bottom:12px;
}

.stat-card span{
    font-size:28px;
    font-weight:700;
    color:#0f172a;
}

/* =====================================
   TABLE WRAPPER
===================================== */

.table-wrapper{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,.08);
}

.user-table{
    width:100%;
    border-collapse:collapse;
}

.user-table th{
    background:#0f172a;
    color:#fff;
    font-size:14px;
    padding:14px;
}

.user-table td{
    padding:14px;
    border-bottom:1px solid #f1f5f9;
}

.user-table tr:hover{
    background:#f8fafc;
}

/* =====================================
   PAGINATION
===================================== */

.pagination-container{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:15px;
    margin-top:20px;
}

.pagination-container span{
    font-weight:600;
}

/* =====================================
   BUTTONS
===================================== */

.create-btn,
.edit-btn,
.disable-btn,
.reset-btn,
.enable-btn{
    border:none;
    border-radius:8px;
    cursor:pointer;
    transition:.3s;
    font-size:14px;
}

.create-btn{
    background:#16a34a;
    color:#fff;
    padding:10px 18px;
}

.create-btn:hover{
    background:#15803d;
}

.edit-btn{
    background:#2563eb;
    color:#fff;
    padding:8px 16px;
}

.edit-btn:hover{
    background:#1d4ed8;
}

.disable-btn{
    background:#dc2626;
    color:#fff;
    padding:8px 16px;
}

.disable-btn:hover{
    background:#b91c1c;
}

.enable-btn{
    background:#16a34a;
    color:#fff;
    padding:8px 16px;
}

.reset-btn{
    background:#7c3aed;
    color:#fff;
    padding:8px 16px;
}

/* =====================================
   STATUS BADGES
===================================== */

.badge-success{
    background:#dcfce7;
    color:#166534;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.badge-danger{
    background:#fee2e2;
    color:#991b1b;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

.badge-warning{
    background:#fef3c7;
    color:#92400e;
    padding:6px 12px;
    border-radius:20px;
    font-size:12px;
    font-weight:600;
}

/* =====================================
   MODAL
===================================== */

.modal{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.5);
    z-index:9999;
}

.modal-content{
    width:650px;
    max-width:95%;
    background:#fff;
    border-radius:12px;
    padding:25px;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%,-50%);
}

.modal-content h3{
    margin-bottom:20px;
    color:#0f172a;
}

.modal-content input,
.modal-content select,
.modal-content textarea{
    width:100%;
    padding:12px;
    margin-bottom:15px;
    border:1px solid #d1d5db;
    border-radius:8px;
}

/* =====================================
   TOAST
===================================== */

.toast{
    display:none;
    position:fixed;
    right:20px;
    top:20px;
    background:#0f172a;
    color:#fff;
    padding:15px 20px;
    border-radius:10px;
    z-index:99999;
    box-shadow:0 4px 12px rgba(0,0,0,.2);
}

/* =====================================
   LOADER
===================================== */

.loader-overlay{
    display:none;
    position:fixed;
    left:0;
    top:0;
    width:100%;
    height:100%;
    background:rgba(255,255,255,.7);
    z-index:99999;
    justify-content:center;
    align-items:center;
}

.loader{
    width:60px;
    height:60px;
    border:5px solid #e5e7eb;
    border-top:5px solid #2563eb;
    border-radius:50%;
    animation:spin 1s linear infinite;
}

/* =====================================
   RESPONSIVE
===================================== */

@media(max-width:992px){

    .sidebar{
        width:80px;
    }

    .sidebar h2{
        display:none;
    }

    .sidebar a{
        text-align:center;
        padding:15px 5px;
        font-size:12px;
    }

    .main-content{
        margin-left:80px;
    }

}

@media(max-width:768px){

    .main-content{
        margin-left:0;
        padding:15px;
    }

    .sidebar{
        display:none;
    }

    .dashboard-grid{
        grid-template-columns:1fr;
    }

    .search-section{
        flex-direction:column;
    }

}

/*modal close button*/
.close-btn{
    position:absolute;
    top:15px;
    right:15px;
    background:#e5e7eb;
    color:#0f172a;
    border:none;
    border-radius:50%;
    width:30px;
    height:30px;
    font-size:16px;
    line-height:30px;
    text-align:center;
    cursor:pointer;
}

/* =====================================
   OU MODAL
===================================== */

.ou-modal{

    width:700px;

    max-width:95vw;

    max-height:90vh;

    overflow-y:auto;

}

.modal{

    display:none;

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.55);

    justify-content:center;

    align-items:center;

    z-index:99999;

    padding:20px;

}

.modal-content{

    background:#fff;

    border-radius:12px;

    padding:25px;

    position:relative;

}

.modal-close{

    position:absolute;

    top:15px;

    right:15px;

    width:35px;

    height:35px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:#ef4444;

    color:#fff;

    font-size:18px;

}

.policy-grid{

    display:grid;

    grid-template-columns:
    repeat(2,1fr);

    gap:10px;

    margin-top:15px;

}

.policy-grid label{

    background:#f8fafc;

    border:1px solid #dbe2ea;

    border-radius:10px;

    padding:12px 15px;

    display:flex;

    align-items:center;

    gap:12px;

    min-height:60px;

    cursor:pointer;

    transition:.3s;

}



.policy-grid input[type="checkbox"]{

    width:18px;

    height:18px;

    cursor:pointer;

    flex-shrink:0;

    margin:0;

}

.policy-grid label:hover{

    background:#eef4ff;

    border-color:#2563eb;

}

.policy-grid label:has(input:checked){

    background:#dbeafe;

    border-color:#2563eb;

}


.modal-buttons{

    display:flex;

    gap:10px;

    margin-top:20px;

}

.modal-buttons button{

    flex:1;

}



.modal-buttons{

    display:flex;

    gap:10px;

    margin-top:15px;

}

.modal-buttons button{

    flex:1;

}

.cancel-btn{

    background:#dc2626;

    color:#fff;

    border:none;

    border-radius:8px;

    padding:12px;

    cursor:pointer;

}

.cancel-btn:hover{

    background:#b91c1c;

}

.dashboard-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

}

.dashboard-header h1{

    color:#0f172a;

    margin-bottom:5px;

}

.dashboard-header p{

    color:#64748b;

}

@media(max-width:768px){

    .policy-grid{

        grid-template-columns:1fr;

    }

}


.delete-btn
{
    background:#ef4444;

    color:white;

    border:none;

    padding:8px 15px;

    border-radius:5px;

    cursor:pointer;

    font-size:13px;

    font-weight:500;
}

.delete-btn:hover
{
    background:#dc2626;
}

.user-table td button
{
    margin:2px;
    min-width:80px;
}