

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

body{
    background:#f4f7fc;
    display:flex;
    min-height:100vh;
    color:#1c1c1c;
}

.sidebar{
    width:260px;
    background:#ffffff;
    border-right:1px solid #e5e7eb;
    padding:25px 18px;
    position:fixed;
    height:100vh;
    overflow:auto;
}

.logo{
    margin-bottom:40px;
}

.logo h2{
    color:#2563eb;
    font-size:24px;
    font-weight:700;
}

.menu-title{
    font-size:13px;
    color:#9ca3af;
    margin-bottom:15px;
    letter-spacing:1px;
    text-transform:uppercase;
}

.menu{
    list-style:none;
}

.menu li{
    margin-bottom:14px;
}

.menu a{
    text-decoration:none;
    display:flex;
    align-items:center;
    gap:14px;
    padding:15px;
    border-radius:16px;
    color:#374151;
    transition:0.3s;
    font-weight:500;
}

.menu a:hover,
.menu .active{
    background:#eef4ff;
    color:#2563eb;
    box-shadow:0 4px 12px rgba(37,99,235,0.12);
}

.icon{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#f3f4f6;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:18px;
}

.main{
    margin-left:260px;
    width:calc(100% - 260px);
    padding:30px;
}

.topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;
    gap:20px;
}

.topbar h1{
    font-size:36px;
    font-weight:700;
    color:#111827;
}

.btn{
    background:#2563eb;
    color:#fff;
    border:none;
    padding:12px 22px;
    border-radius:12px;
    cursor:pointer;
    font-weight:600;
    transition:0.3s;
}

.btn:hover{
    background:#1d4ed8;
}

.table-box{
    background:#fff;
    padding:25px;
    border-radius:22px;
    box-shadow:0 8px 24px rgba(0,0,0,0.05);
    overflow-x:auto;
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.table-header h2{
    font-size:24px;
    color:#111827;
        position: fixed;
}

table{
    width:100%;
    min-width:1400px;
    border-collapse:collapse;
}

table th{
    text-align:left;
    padding:16px 14px;
    background:#f9fafb;
    color:#6b7280;
    font-size:14px;
    font-weight:600;
    border-bottom:1px solid #e5e7eb;
    white-space:nowrap;
}

table td{
    padding:16px 14px;
    border-bottom:1px solid #f1f5f9;
    font-size:14px;
    color:#374151;
    white-space:nowrap;
}

.status{
    padding:7px 14px;
    border-radius:30px;
    font-size:12px;
    font-weight:600;
    display:inline-block;
}

.active-status{
    background:#dcfce7;
    color:#15803d;
}

.inactive-status{
    background:#fee2e2;
    color:#dc2626;
}


*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}

.popup{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.45);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
    padding:15px;
}

.popup-content{
    width:100%;
    max-width:420px;
    background:#fff;
    border-radius:18px;
    padding:22px;
    box-shadow:0 15px 40px rgba(0,0,0,0.15);
}

.popup-header{
    margin-bottom:20px;
}

.popup-header h2{
    font-size:22px;
    color:#111827;
    font-weight:700;
}

.form-group{
    margin-bottom:15px;
}

.form-group label{
    display:block;
    margin-bottom:6px;
    font-size:14px;
    font-weight:600;
    color:#374151;
}

.form-group label span{
    color:red;
}

.form-group input,
.form-group select{
    width:100%;
    height:42px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
    outline:none;
    background:#f9fafb;
}

.form-group input:focus,
.form-group select:focus{
    border-color:#2563eb;
    background:#fff;
}

.twoinone{
    display:flex;
    gap:12px;
}

.twoinone .form-group{
    width:50%;
}

.error{
    color:red;
    font-size:12px;
    margin-top:5px;
    display:block;
}

.btn-box{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:20px;
}

.cancel-btn{
    background:#ef4444;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
}

.submit-btn{
    background:#22c55e;
    color:#fff;
    border:none;
    padding:10px 18px;
    border-radius:10px;
    cursor:pointer;
    font-size:14px;
    font-weight:600;
}

.submit-btn:disabled{
    background:#d1d5db;
    color:#6b7280;
    cursor:not-allowed;
}

.reload-btn{
    width: 100px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: #6b7280;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;

    position: fixed;

    left: 85%;

    z-index: 999;
}
.reload-btn:hover{
    background:#1d4ed8;
 
}

@media(max-width:480px){

    .twoinone{
        flex-direction:column;
    }

    .twoinone .form-group{
        width:100%;
    }

    .btn-box{
        flex-direction:column;
    }

    .cancel-btn,
    .submit-btn{
        width:100%;
    }
}
