* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

h2{font-size:20px;}
p{font-size: 14px;}

body {
    background: #f4f6fb;
     background: linear-gradient(135deg, #00bcd430, #dbeafe, #9c27b026);
    min-height: 100vh;
}

/* SIDEBAR */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;

  background: linear-gradient(135deg, #14213d 0%, #1f3b73 50%, #2c65c7 100%);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow-y: auto;
}
/* LOGO */
.logo {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 25px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* MENU BUTTON */
.menu-btn {
    display: none;
    background: transparent;
    color: white;
    border: none;
    font-size: 22px;
    padding: 15px 20px;
    cursor: pointer;
}

/* MENU */
.menu-dropdown {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 10px;
}

/* MENU LINKS */
.menu-dropdown a {
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    font-size: 14px;
    border-bottom: 1px solid #f9f9f91f;
    transition: 0.3s;
    margin-bottom: 2px;
}

.menu-dropdown a:hover {
    background: rgba(255,255,255,0.08);
    border-left: 4px solid #3b82f6;
}


.menu-dropdown a i{
    width: 22px;
    margin-right: 0px;
    font-size: 15px;
}



/* MAIN WRAPPER */
.pf-wrapper {
    display: flex;
    gap: 20px;
    margin-left: 260px;
    padding: 20px;
}

/* LEFT FORM */
.pf-form-card {
    flex: 0.6;
    background: #fff;
    padding: 8px 14px;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: fit-content;
    font-size: 14px;
}

/* RIGHT TABLE */
.pf-table-card {
    flex: 1.4;
    background: #fff;
    padding: 8px 14px;
    border-radius: 9px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow-x: auto;
}

/* FORM ROW */
.pf-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    margin-bottom: 9px
}

label {
    font-weight: 600;
    color: #333;
}

input,
select,
textarea {
    width: 100%;
    padding: 5px 7px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

textarea {
    min-height: 80px;
    resize: vertical;
}

/* BUTTON */
button {
    /*width: 100%;*/
    padding: 8px;
    background: #2856a9;
    color: white;
    border: none;
    border-radius: 7px;
    cursor: pointer;
    margin-top: 10px;
    display:block; 
    margin-left:auto;
}

/*button:hover {
    background: #000;
}*/

/* TABLE */
table {
    width: 60%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}




th,
td {
    padding: 7px 6px;
    text-align: left;
    border: 1px solid #eee;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

th {
    background: #f9fafb;
}



/* MOBILE TABLE RESPONSIVE */
@media (max-width: 768px) {

    .pf-table-card {
        width: 100%;
        overflow-x: auto;
        padding: 15px;
    }

    table {
        min-width: 400px;
    }

    th,
    td {
        white-space: nowrap;
    }
}




/* SMALL WIDTH COLUMNS */


table th:nth-child(1),
table td:nth-child(1) {
    width: 18%;
}

table th:nth-child(2),
table td:nth-child(2) {
    width: 11%;
}

table th:nth-child(3),
table td:nth-child(3) {
    width: 5%;
}

table th:nth-child(4),
table td:nth-child(4) {
    width: 6%;
}

table th:nth-child(5),
table td:nth-child(5) {
    width: 9%;
}




select,
select option{
    text-transform: capitalize;
}

h3{
    text-transform: capitalize;
}


/* MOBILE */
@media (max-width: 900px) {




    .topbar {
        width: 100%;
        height: 70px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 15px;
        overflow: visible;
    }

    .logo {
        height: 60px;
        border: none;
        padding: 0;
        font-size: 20px;
    }

    .menu-btn {
        display: block;
        width: auto;
        margin-top: 0;
        padding: 0px 12px;
        border-radius: 6px;
        background: #fff;
        color: #111827;
    }

    .menu-dropdown {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 260px;
        height: calc(100vh - 60px);
        background: #111827;
        transition: 0.3s;
        margin-top: 0;
    }

    .menu-dropdown.active {
        left: 0;
    }

    .pf-wrapper {
        flex-direction: column;
        margin-left: 0;
        padding: 80px 15px 15px;
    }

    .pf-form-card,
    .pf-table-card {
        flex: 1;
    }

    .pf-row {
        grid-template-columns: 1fr;
    }
}




