:root {
    --primary: #1A2D42;
    --darkblue: linear-gradient(135deg, #1e293b 0%, #334155 100%);

    --box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    --white: white;

    --input-label-1: 0.9rem;

    /* COLORS */
    --dark-green: #1a3d2f;
    --light-green: #d8f3dc;
    --dark-orange: #b45309;
    --light-orange: #fff7ed;
    --dark-red: #7f1d1d;
    --light-red: #fecaca;

    --dark-blue: #1e293b;
}

* {
    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;
    box-shadow: var(--box-shadow);
}

/* select */
.select-no-label {
    margin-bottom: 0.5rem;
}

.select-no-label select {
    border: 1px solid var(--primary);
    padding: 0.5rem 0.25rem;
    font-size: 0.9rem;
}

.add-button {
    background: var(--dark-color);
    color: white;
}

.add-button:hover {
    background: white;
    color: var(--dark-color);
    border: 1px solid var(--dark-color);
    cursor: pointer;
}

.add-button i {
    font-weight: 1000;
}

/* 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: #F0F8FF;
    background-color: var(--bg-fifth);
    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(--dark-color);
    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;
    width: 100%;
}

/* 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;
}

.input-container-1 input {
    font-weight: 700;
    color: darkred;
    font-size: 0.9rem;
}

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: 0.9rem;
}

.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;
}

/*Input in Modal*/
.modal-content .input-container-1 label,
.modal-content .input-container-1,
.modal-content .autocomplete button {
    background: var(--bg-fifth);
}

.modal-content .input-container-1 input:focus~label,
.modal-content .input-container-1 input:not(:placeholder-shown)~label,
.modal-content .input-container-1 textarea:focus~label,
.modal-content .input-container-1 textarea:not(:placeholder-shown)~label {
    background: var(--bg-fifth);
}

.modal-content .input-container-1 input {
    background: var(--bg-fifth);
}

.modal-content .select-container-1 select {
    background: var(--bg-fifth);
}

.modal-content input {
    background: var(--bg-fifth);
}

.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 {
    display: grid;
    grid-template-columns: repeat(auto-fill, 9rem);
    gap: 16px;
    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(--dark-color);
    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;
}


/*Table Style*/
.res-table {
    overflow-x: auto;
}

.table-1 {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background: #fff;
    margin: 1rem 0;
    box-shadow: var(--box-shadow);
}

.sticky-table table thead tr th {
    position: sticky;
    z-index: 1;
}

.list-10-table {
    min-height: 60vh;
}

.sticky-table .table-1 th,
.table-1 td {
    border: 1px solid #ccc;
    padding: 0.25rem 8px;
}

td button {
    box-shadow: none;
}

.table-1 th {
    background: #f4f6fa;
    color: #222;
    font-weight: 400;
}

.table-1 thead tr th {
    text-align: center;
    text-transform: uppercase;
    background: #fafbfc;
    background: var(--bg-third);
    color: var(--primary);
}

.table-1 tbody tr:nth-child(even) {
    background: #fafbfc;
    background: #fef2f2;
    background: var(--bg-fifth);
}

.table-1 tbody tr:hover {
    background: #f0f4f8;
    background: var(--bg-fourth);
    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(--dark-color);
    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(--dark-color);
    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);
}

.select-container-2 {
    display: grid;
    grid-template-columns: 7.5rem calc(100% - 7.5rem);
    gap: 1rem;
    margin: 0.5rem 0.5rem;
}

.select-container-2 .select-title {
    font-size: 1rem;
}

/* SELECT_4 STYLE */
.select-container-4 {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}

.select-container-4 .select-title {
    font-size: 1rem;
    padding: 0;
}

.select-container-4 select {
    border: 1px solid var(--primary);
    padding: 0.5rem;

}

/* 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;
}

.input-container input {
    border: 1px solid var(--primary);
    width: 100%;
    padding: 0.25rem;
    margin: 0.5rem;
}

/* 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(--dark-color);
    border: 1px solid var(--dark-color);
    background: white;
    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(--dark-color);
    transition: fill 0.2s ease;
}

.paging button:hover {
    background: var(--dark-color);
    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(--dark-color);
}

.paging button[disabled]:hover svg {
    fill: var(--dark-color);
}


.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(--dark-color) !important;
    background: var(--dark-color) !important;
    color: white;
    font-weight: 500;
    text-align: center;
    width: 10rem;
}

/* ADDITIONAL FOR NAV BAR */



/* MODAL AND MSG */
.two-button {
    display: grid;
    grid-template-columns: 50% 50%;
}

.two-button input,
.two-button button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--dark-color);
    width: 7.5rem;
    margin: auto;
}

.modal-footer {
    padding-bottom: 1rem;
}

.msg-1 {
    text-align: center;
}

.msg-1 span {
    color: darkred;
    font-weight: 700;
}

.address-line {
    display: grid;
    grid-template-columns: 37% 23.5% 10% 23.5%;
    gap: 2%;
}

.input-name-line {
    display: grid;
    grid-template-columns: 42.5% 42.5% 11%;
    gap: 2%;
}


/* ALERT */
.alert {
    padding: 20px;
    background-color: #f44336;
    color: white;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover {
    color: black;
}

/* option list */
.option-modal {
    display: none;
    position: fixed;
    z-index: 1;
    width: 100%;
    height: 100%;
}

.manageContainer {
    position: absolute;
    margin: 3.25rem 0;
    right: 0;
    border: 2px solid var(--firstcolor);
    border-right: 0px;
    border-top: 0px;
    width: 25rem;
    height: auto;
    max-height: calc(100vh - 10rem);
    overflow-y: auto;
    background: whitesmoke;
    padding: 0 1rem 1rem;
}

.user-information-container {
    display: grid;
    grid-template-columns: 4rem auto;
    border: 1px solid black;
    width: 100%;
    height: auto;
    padding: .5rem;
    margin: 1rem 0;
}

.profile-picture {
    width: 4rem;
    height: 4rem;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
}

.user-information {
    padding: 0 1rem;
    margin: auto 0;
}

.user-id-name,
.user-position {
    width: auto;
    font-size: 1rem;
    margin: auto 0;
}

.user-id-name {
    border-bottom: 1px solid var(--firstcolor);
}

/* MANAGED CONTENT | OPTION CONTAINER */
.r-2_5rem {
    right: 2.5rem;
}

.option-container {
    width: 100%;

}

.option-container a {
    text-decoration: none;
}

.option-container .options a {
    display: grid;
    grid-template-columns: 3rem auto;
    width: 100%;
    height: 3.5rem;
    border: 1px solid gray;
    margin-top: .5rem;
    padding: .25rem;
}

.option-icon {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
}

.option-label {
    font-size: 1rem;
    margin: auto 0.5rem;
}

.responsive_manageContainer {
    display: none;
}

.options .option-icon i {
    font-size: 1.5rem;
}

/* image */
.image-input-container {
    color: transparent;
    transition: all .3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin-top: 1rem;
    width: 100%;
    height: 200px;
}

.image-input-container input {
    display: none;
}

.image-input-container img {
    position: absolute;
    object-fit: cover;
    width: 200px;
    height: 200px;
    box-shadow: 0 0 10px 0 rgba(255, 255, 255, .35);
    z-index: 0;
    border: 1px solid var(--firstcolor);
}

.image-input-container .-label {
    cursor: pointer;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-input-container:hover .-label {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .8);
    z-index: 10000;
    color: #fafafa;
    transition: background-color .2s ease-in-out;
    margin-bottom: 0;
}

.image-input-container:hover span {
    color: #fff;
}

.image-input-container span {
    display: inline-flex;
    padding: .2em;
    height: 2em;
    color: var(--firstcolor);
}



.image-info-grid {
    grid-template-columns: 225px auto;
}

.table-wrapper {
    max-height: 300px;
    /* Adjust based on row height */
    overflow-y: auto;
    display: block;
}

/* Make the table width consistent */
.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
}

/* Sticky header */
.table-wrapper thead {
    position: sticky;
    top: 0;
    background: #f9f9f9;
    z-index: 2;
}

/* Table cells */
.table-wrapper th,
.table-wrapper td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    font-size: 14px;
}

/* Optional: Highlight editable cells */
[contenteditable="true"] {
    background: #fff9e6;
}

/* Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #1e3a8a;
    /* Dark blue */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    color: green;
    font-weight: bold;
    margin-top: 10px;
    text-align: center;
}

/* Custom File Upload Styles for Modal */
.file-upload-wrapper {
    position: relative;
    margin: 15px 0;
}

.file-upload-input {
    width: 300px;
    color: var(--primary);
    font-size: 16px;
    padding: 11px 17px;
    border: 1px solid var(--primary);
    transition: all 0.2s ease-in;
    float: left;
}

.file-upload-button {
    cursor: pointer;
    display: inline-block;
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    padding: 11px 20px;
    border: 1px solid var(--dark-color);
    margin-left: -1px;
    background-color: var(--dark-color);
    transition: all 0.2s ease-in;
}

.button-right-1 {
    border: 1px solid var(--dark-color) !important;
    background-color: var(--dark-color) !important;
    margin-left: 1rem;
}

.custom-file-upload-hidden {
    display: none;
    visibility: hidden;
    position: absolute;
    left: -9999px;
}

/* BOX ICON */
.bx-edit {
    color: darkgreen;
}

.bx-trash {
    color: darkred;
}

.display {
    display: block;
}

#filePreviewContainer,
#swoFilePreviewContainer {
    height: 500px;
}

#filePreviewContainer iframe,
#swoFilePreviewContainer iframe {
    width: 100%;
    height: 450px;
}

#filePreviewContainer img,
#swoFilePreviewContainer img {
    max-width: 100%;
    height: 100%;
    border: 1px solid var(--primary);
}

.small-2 {
    margin: 0.2rem;
    padding: 0.2rem;
}

.controller-header {
    display: grid;
    grid-template-columns: repeat(6, 2fr);
    font-size: 0.9rem;
}

.controller-header .buttons {
    border: 1px solid gray;
    border-bottom: none;
    padding: 0.5rem;
    text-align: center;
    border-radius: 0 1rem 0 0;
    margin-right: 0.1rem;
    background: white;

}

.controller-header .buttons:hover {
    background: #F0F8FF;
    background: var(--bg-fifth);
    color: black;
    cursor: pointer;
}

.controller-header .active {
    background: #F0F8FF;
    background: var(--bg-fifth);
    color: black;
}

.controller-body {
    padding: 0.5rem;
    border: 1px solid var(--primary);
    width: 675px;
}

.controller-body .title {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.submit-button {
    width: 8.70rem;
}

.page-title {
    color: var(--dark-color);
}

/* NEW STYLE */
.a-link {
    text-decoration: underline;
    font-weight: 700;
}

.version {
    position: absolute;
    right: 1rem;
    bottom: 0.5rem;
    color: lightgray;
}

.main-content {
    height: calc(100vh - 70px);
}

.two-button {
    display: grid;
    grid-template-columns: 50% 50%;
}

.two-button input,
.two-button button {
    padding: 0.5rem 1rem;
    border: 1px solid var(--primary);
    width: 5rem;
    margin: auto;
}

.modal-footer {
    padding-bottom: 1rem;
}

.msg-1 {
    text-align: center;
}

.msg-1 span {
    color: darkred;
    font-weight: 700;
}

.label-data-1 {
    display: grid;
    grid-template-columns: 12.5rem auto;
    gap: 1rem;
    padding: 0.25rem 0;
}

.label-data-1 .label {
    font-weight: 600;
    color: var(--dark-color);
}

.container-2 {
    padding: 1rem;
    background: white;
    box-shadow: var(--box-shadow);
}

.container-2 .header {
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    box-shadow: none;
    border: 0px;
    margin-bottom: 1rem;
}