:root {
    --primary: #1A2D42;
    --box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    --white: white;

    --input-label-1: 0.75rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: "Poppins", "Arial", "sams-serif";
}

a {
    text-decoration: none;
    color: black;
}

button {
    cursor: pointer;
}


/* grid-style */
.grid {
    display: grid;
    gap: 1rem;
}

.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gap-2 {
    gap: 2%;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    border: 1px solid #888;
    width: 60rem;
    height: auto;
    overflow-y: auto;
    position: relative;
}

.modal-footer {
    padding: 0 1rem;
}

.small-modal {
    width: 30rem;
}

.close {
    color: #aaa;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    background: var(--primary);
    width: 100%;
    color: var(--white);

    padding: 1rem;
}

.modal-body {
    height: 100%;
    padding: 1rem;
}

.drop-section {
    padding: 1px;
}

.drop-header,
.drop-body {
    border: 1px solid black;
    font-size: 0.75rem;
}

.drop-header {
    padding: 0.25rem;
}
.drop-header:hover{
    cursor: pointer;
    background: var(--primary);
    color: white;
}
.drop-body {
    padding: 0.75rem 0.25rem;
    min-height: 15rem;
    max-height: 23rem;
    overflow-y: auto;
    display: none;
    padding: 1rem;
}

.drop-active {
    display: block;
}

.triangle {
    display: inline-block;
    width: 1.2em;
    text-align: center;
    margin-right: 0.5em;
}

.grid-cols-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.drop-body-1 {
    border: 1px solid black;
    padding: 0.5rem;

}

/* INPUT 1 STYLE */
.input-container-1 {
    background: var(--white);
    width: 100%;
    margin: 0.75rem auto 0;
    position: relative;
}

.input-container-1 input,
.input-container-1 textarea {
    width: 100%;
    color: var(--primary);
    font-size: var(--input-label-1);

    border: 1px solid var(--primary);
    background: 0 0;
    outline: 0;
    border-radius: 5px;
    padding: 0.5rem 8% 0.5rem 1rem;
}

textarea {
    height: 100%;
}

.input-container-1 input[type=date] {
    padding-left: 0.25rem;
}

.input-container-1 label {
    margin: auto;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 0.5rem;
    font-size: var(--input-label-1);
}

.label-1 {
    background: white;
}

.input-container-1 i {
    display: none;
    margin: auto;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    left: 5%;
    font-size: 20px;
    transition: 1s;
    color: var(--primary);
}

.input-container-1 textarea {
    padding: 1rem;
    font-size: 1rem;
    resize: none;
}

.input-container-1 input:focus~label,
.input-container-1 input:not(:placeholder-shown)~label,
.input-container-1 textarea:focus~label,
.input-container-1 textarea:not(:placeholder-shown)~label {
    top: 0;
    background: white;
    font-size: var(--input-label-1);
    padding: 0 0.1rem;
}

.input-container-1 input:focus {
    border: 2px solid var(--primary);
}

.input-container-1 input:focus~label,
.input-container-1 input:focus~i {
    font-weight: 700;
    color: var(--primary);
}

.input-container-1 input:focus~i,
.input-container-1 input:valid~i {
    display: block;
    transition: 0s;
}

/*NAVIGATION BAR*/
.navbar {
    list-style-type: none;
    margin: 0 0 5rem;
    padding: 0;
    height: 3.25rem;
    /*overflow: hidden;*/
    background-color: #333;
    position: fixed;
    width: 100%;
    z-index: 10;
}

.navbar li {
    float: left;
}

.navbar li a,
.navbar li p {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

.navbar li i {
    border: 2px solid white;
    padding: 2px;
    border-radius: 100%;
}

.navbar li .left {
    float: left;
}

.navbar .right {
    float: right
}

.navbar .logo-container {
    width: 5rem;
    height: 2.5rem;
    margin: .4rem 1rem;
}

.navbar .logo-container img {
    width: 100%;
    height: 100%;
}

.navbar .user-profile-pic {
    width: 2.5rem;
    height: 2.5rem;
    margin: .4rem 1rem;
}

.navbar .user-profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 100%;
}

.navbar li a:hover {
    background-color: #111;
}

.navbar li button {
    background: #333;
    height: 3.20rem;
}

.body-1 {
    padding: 1rem;
    padding-top: 4.5rem;
}

.body-2 {
    padding-top: 5.5rem;
    padding-left: 6rem;
    overflow-y: auto;
}

.body-header {
    padding: 0 2rem;
    font-size: 1.5rem;
}

/* CONTAINER STYLE */
.main-container {
    padding: 1rem;
    height: calc(100vh - 3.5rem);
}

.container {
    padding: 1rem;
}

.container-header {
    height: 3rem;
    background: var(--primary);
    color: white;
}

/*DASHBOARD (No sidebar)*/
.dashboard {
    padding: 0 4.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, 9rem);
    gap: 16px;
    justify-content: center;
    margin: auto;
}

/*DASHBOARD CARD CONTAINER*/
.card-container {
    display: inline-block;
    --shadowColor: 187 60% 40%;
    border: 1px solid lightgrey;
    width: 9rem;
    height: 9rem;
    margin: 0 auto;
    padding: 20px;
    box-shadow: var(--box-shadow);
}

.card-container:hover {
    border: 2px solid var(--primary);
    transform: scale(1.04);
}

.card-container .icon {
    width: 2.5rem;
    height: 2.5rem;
    margin: auto;
    margin-bottom: 1rem;
}

.card-container .icon img {
    width: 100%;
    height: 100%;
}

.card-container .description {
    text-align: center;
    font-size: 0.8rem;
}

/*SIDE BAR*/
.sidebar {
    margin: 3.25rem 0;
    list-style-type: none;
    width: 5rem;
    background-color: #f1f1f1;
    position: fixed;
    height: 100%;
    overflow: auto;
}

.other-sidebar {
    display: none;
    z-index: 0;
}

.sidebar li a {
    display: block;
    color: #000;
    padding: 8px 8px;
    text-decoration: none;
}

.sidebar li button {
    display: block;
    width: 5rem;
    color: #000;
    padding: 8px 8px;
    text-decoration: none;
}

.sidebar li a.active {
    background-color: #04AA6D;
    color: white;
}

.sidebar li a:hover:not(.active) {
    background-color: #555;
    color: white;
}

.sidebar-container {
    height: 3rem;
}

.sidebar-icon {
    font-size: 1.5rem;
    text-align: center;
    color: var(--firstcolor);

}

.sidebar-description {
    font-size: 9px;
    padding: 0.1rem 0;
    color: var(--firstcolor);
    text-align: center;
}

.sidebar li a:hover .sidebar-description {
    color: white;
}

.sidebar li a:hover .sidebar-icon {
    color: white;
}

.sidebar li a:hover .sidebar-icon img {
    filter: brightness(0) invert(1);
}

/*Table Style*/
.table-1 {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background: #fff;
}

.sticky-table table thead tr th {
    position: sticky;
    z-index: 1;
}

.sticky-table
.table-1 th,
.table-1 td {
    border: 1px solid #ddd;
    padding: 0.25rem 8px;
}

.table-1 th {
    background: #f4f6fa;
    color: #222;
    font-weight: 600;
}

.table-1 thead tr th {
    text-align: center;
}

.table-1 tbody tr:nth-child(even) {
    background: #fafbfc;
}

.table-1 tbody tr:hover {
    background: #f0f4f8;
    transition: background 0.2s;
}

.table-1 button {
    background: #eee;
    color: #222;
    border: 1px solid #ccc;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 4px;
    font-size: 0.95em;
    transition: background 0.2s, border 0.2s;
}

.table-1 button:hover {
    background: #e0e7ef;
    border: 1px solid #bbb;
}

/* FILTERING STYLE */
.filter-search {
    display: grid;
    grid-template-columns: 15rem auto;
    padding: 0 1rem;
}

.filter-search .filter {
    padding: 0.5rem;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 500;
    text-align: center;
}

/*SEARCH BAR CSS */
.search {
    display: flex;
    width: 100%;
    position: relative;
}

.search-bar {
    width: 100%;
    margin: 0 0 0 1rem;
    border: 3px solid var(--primary);
    border-right: none;
    padding: 5px;
    border-radius: 5px 0 0 5px;
    outline: none;
    color: var(--primary);
    height: 100%;
}

.searchButton {
    width: 40px;
    height: 100%;
    border: 1px solid var(--primary);
    background: var(--primary);
    text-align: center;
    color: white;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 20px;
    align-items: center;
}

.wrap {
    width: 30%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hidden {
    display: none;
}

.button-right-1 {
    background: var(--primary);
    color: #fff;
    padding: 8px 18px;
    border: none;
    cursor: pointer;
    float: right;
    /* Float the button to the right */
    /* Optional: add margin if needed */
    margin-left: auto;
    display: block;
}

/* DELETE */
.del-header {
    background: darkred;
    color: white;
}

/*function input_autocomplete style*/
.autocomplete {
    position: relative;
}

.autocomplete button{
    background: white;
    color: var(--primary);
    padding: 0.25rem 0; 
    font-size: 0.75rem;
}
.autocomplete input[type="text"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.autocomplete-items {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    /* Make sure it's above modal content */
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.autocomplete-item {
    padding: 0.75rem;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: #e9e9e9;
}

/*SELECT_1 STYLE*/
.select-container-1 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 5px;
}

.select-title {
    padding-bottom: 0.25rem;
    font-size: 0.75rem;
}

.select-container-1 select {
    border: 1px solid var(--primary);
}

/* input 2 style */
.input-container-2 {
    display: grid;
    grid-template-columns: 7.5rem auto;
    gap: 1rem;
    margin: 0.5rem 0.5rem;
}

.input-container-2 input {
    border: 1px solid var(--primary);
}

.input-container-2 label,
.input-container-2 input {
    padding: 0.25rem;
}

/* LINES */
.line-s100 {
    width: 100%;
}

.line-s50-s10-s25 {
    display: grid;
    grid-template-columns: 50% 10% 25%;
}

.line-s25-s60 {
    display: grid;
    grid-template-columns: 25% 60%;
}

.line-s38-s60 {
    display: grid;
    grid-template-columns: 38% 60%;
}

.line-s24-s24-s24-s24 {
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
}

/* TEXT-ALIGN */
.txt-ctr {
    text-align: center;
}

.txt-lt {
    text-align: left;
}

.txt-rt {
    text-align: right;
}

.table-footer-page{
    padding: 1rem 0 ;
}

.paging button {
    padding: 0.25rem 0.5rem;
    color: var(--primary);
    border: 1px solid var(--primary);
    background: transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.paging button svg {
    fill: var(--primary);
    transition: fill 0.2s ease;
}

.paging button:hover {
    background: var(--primary);
    color: white;
}

.paging button:hover svg {
    fill: white;
}

.paging button[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

.paging button[disabled]:hover {
    background: transparent;
    color: var(--primary);
}

.paging button[disabled]:hover svg {
    fill: var(--primary);
}


.flex-left{
    display: flex;
    justify-content: left;
    align-items: center;
}
.flex-center{
    display: flex;
    justify-content: center;
    align-items: center;

}
.flex-right{
    display: flex;
    justify-content: right;
    align-items: center;
}

.submit-button{
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: white;
    font-weight: 500;
    text-align: center;
    width: 10rem;
}

/* ADDITIONAL FOR NAV BAR */
