:root {
    --primary-color-lightest: #c6dbf7; /* Lightest shade of royal blue */
    --primary-color-lighter2: #92bbe7; /* Slightly lighter */
    --primary-color-lighter: #6499d7; /* Lighter shade of royal blue */
    --primary-color: #0d6efd; /* Base royal blue */
    --primary-color-darker: #4169e1; /* Darker royal blue */
    --primary-color-darker2: #2e53a1; /* Even darker */
    --primary-color-darkest: #1a3c7d; /* Darkest shade of royal blue */


    --color-lightgray: rgb(248,248,248);
    --color-text-gray: rgb(156,156,156);
    --color-main-blue: #007bff;
}
body, html {
    margin: 0px;
    padding: 0px;
    height: 100%;
    background-color: white;
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-family: 'Poppins', sans-serif;
}
header {

}
.main-container {
    padding-top: 100px;
    background-color:white;
    height:100%;
}
.width-50 {
    width:50%;
}
.width-25 {
    width: 25%;
}
.flex-column-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin:20px 15%;
}
.flex-column-container-nomargin {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.row-to-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.row-to-reverse-column {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}
.color-red {
    color: rgb(214,41,41);
}
.background-color-lightgray {
    background-color: rgb(242,242,242);
}
.background-color-white {
    background-color: white;
}
.margin-side-10percent {
    margin-left: 10%;
    margin-right: 10%;
}
.margin-side-15percent {
    margin-left:15%;
    margin-right:15%;
}
.margin-side-20percent {
    margin-left: 20%;
    margin-right: 20%;
}
.margin-left-15percent {
    margin-left: 15%;
}
.red-button {
    background-color: rgb(214,41,41);
    color: white;
    width: 180px;
    height: 35px;
    padding: 5px 10px;
    display: flex;
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
}
.keep-scrolling {
    color: rgb(159,160,159);
    font-size: 0.6rem;
    margin-top: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}
.we-got-this-button {
    text-decoration: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    width: 180px;
    height: 40px;
    padding: 5px 10px;
    display: flex;
    font-size: 0.7rem;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
    cursor: pointer;
    transition: background-color 0.4s;
}

    .we-got-this-button:hover {
        color: white;
        background-color: black;
    }

.lightRedBackground {
    background-color: rgb(242,103,90);
}

.lightGrayBackground {
    background-color: rgb(242,242,242);
}

.redText {
    color: rgb(214,41,41);
}

.formButton {
    background-color: rgb(242,242,242);
    color: black;
    padding: 20px 0;
    font-size: 0.8rem;
    margin: 2px;
    cursor: pointer;
    width: fit-content;
    text-align:center;
}

    .formButton.selected {
        background-color: black;
        color: white;
    }
    .formButton.defaultNotSelected {
        color:lightgray;
        background-color:white;
    }


.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    text-align: center;
}

.loading-gif {
    width: 200px; /* Adjust size as needed */
    height: 200px; /* Adjust size as needed */
    margin-bottom: 10px;
}

.loadingBarContainer {
    width: 100%;
}
.loadingBar {
    width: 0;
    height: 15px;
    background-color: #4caf50; /* Green color for the loading bar */
    transition: width 0.1s linear; /* Smooth transition */
    border-radius:10px;
    max-width:100%;
}
.site-button-one {
    display: inline-block;
    padding: 7px 14px;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 0.8rem;
}
    
.site-button-one:hover {
    background-color: black;
    color:white;
}
    /* Styles for disabled buttons */
    .site-button-one:disabled,
    .site-button-one[disabled] {
        background-color: #c0c0c0; /* Light gray background */
        color: #6c757d; /* Gray text */
        cursor: not-allowed; /* Disabled cursor style */
        opacity: 0.65; /* Slightly faded */
    }
.context-menu {
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px;
    z-index: 100;
    font-size: 14px;
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.3s ease, transform 0.3s ease; /* Smooth animation */
}
    .context-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .context-menu li {
        padding: 5px 10px;
        cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

        .context-menu li:hover {
            transform: scale(1.05);
            box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
        }

.button-blue-color {
    color: white !important;
    background-color: rgb(0,123,255) !important;
}
.button-white-color {
    color: rgb(0,123,255) !important;
    background-color: white !important;
    border: 1px solid rgb(0,123,255) !important;
}
.button-red-color {
    color: white !important;
    background-color: rgb(255,51,0) !important;
}

.button-green-color {
    color: white !important;
    background-color: rgb(40,167,69) !important;
}
.manual-task-complete:hover {
    color:green !important;
}
.manual-task-uncomplete:hover {
    color: red !important;
}
.draggable-container {
    width: 70vw;
    height: 85vh;
    border: 1px solid #ccc;
    overflow: hidden;
    position: absolute;
    top: 100px;
    left: 100px;
    background-color: white;
    transform: scale(0.75);
    transform-origin: top left;
    z-index: 3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.draggable-handle {
    background: #007bff;
    color: white;
    padding: 10px;
    cursor: move;
}

.condition-selected {
    background-color:rgb(157, 154, 154, 0.1) !important;
}

.notification-inner {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 24px;
    min-height: 24px;
    background-color: red;
    color: white;
    font-size: 14px;
    font-weight: bold;
    border-radius: 50%;
    line-height: 24px;
    padding-left:1px !important;
    padding-right:1px !important;
    text-align:center;
    cursor:pointer;
}

.arrow-container {
    position: fixed;
    bottom: 5px;
    left: 97%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    display: flex; /* Initially hidden */
    animation: colorChange 1.5s infinite;
}

.arrow {
    width: 78px;
    height: 78px;
}
.selected-user {
    color:black;
    border:1px dashed;
    margin:3px;
}
.loan-field-input-disabled {
    background-color: lightgray;
    pointer-events: none;
}
.temporary-element-disabled {
    background-color: lightgray !important;
    pointer-events: none !important;
}
/* Header row styling */
#userTable thead tr:first-child {
    background-color: #f8f9fa; /* Light gray for contrast */
    border-bottom: 2px solid #dee2e6;
}

#userTable thead th {
    padding: 8px 12px;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    color: #333;
    white-space: nowrap;
}

/* Filter row styling */
#userTable thead tr:nth-child(2) {
    background-color: #ffffff;
}

    #userTable thead tr:nth-child(2) th {
        padding: 4px 8px;
    }

/* Filter input styling */
#userTable thead input[type="text"] {
    width: 100%;
    padding: 4px 6px;
    font-size: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
}

    #userTable thead input[type="text"]:focus {
        border-color: #007BFF;
        box-shadow: 0 0 2px rgba(0, 123, 255, 0.4);
    }

/* Flex container for input + button */
.filter-sort {
    display: flex;
    align-items: center;
    gap: 0;
}

    /* Input styling */
    .filter-sort input {
        flex: 1;
        padding: 4px 6px;
        font-size: 12px;
        border: 1px solid #ccc;
        border-right: none; /* merges visually with button */
        border-radius: 4px 0 0 4px;
        outline: none;
        box-sizing: border-box;
    }

        .filter-sort input:focus {
            border-color: #007BFF;
            box-shadow: 0 0 2px rgba(0, 123, 255, 0.4);
        }

    /* Button styling */
    .filter-sort .admin-site-button-adjustment {
        padding: 4px 6px !important;
        font-size: 12px !important;
        background-color: #007BFF;
        color: white;
        border: 1px solid #007BFF;
        border-radius: 0 4px 4px 0;
        cursor: pointer;
        transition: background-color 0.3s ease;
    }

        .filter-sort .admin-site-button-adjustment:hover {
            background-color: #0056b3;
        }

/* Sort button styling */
.admin-site-button-adjustment {
    display: inline-block;
    color: white;
    background-color: #007BFF;
    border: none;
    border-radius: 4px;
    padding: 4px 6px !important;
    font-size: 12px !important;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 4px;
}

    .admin-site-button-adjustment:hover {
        background-color: #0056b3;
    }

.file-button-container {
    display: inline-block;
    position: relative;
    margin: 5px; /* spacing between buttons */
}

    .file-button-container .delete-condition-btn {
        position: absolute;
        top: 0px;
        right: 0px;
        width: 20px;
        height: 20px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
.white-space-wrap {
    white-space: normal !important
}
@keyframes colorChange {
    0% {
        color: var(--primary-color-lightest);
    }

    16.6% {
        color: var(--primary-color-lighter2);
    }

    33.3% {
        color: var(--primary-color-lighter);
    }

    50% {
        color: var(--primary-color);
    }

    66.6% {
        color: var(--primary-color-darker);
    }

    83.3% {
        color: var(--primary-color-darker2);
    }

    100% {
        color: var(--primary-color-darkest);
    }
}

.ctc-span {
    display:flex;
    justify-content:center;
    flex-direction:column;
    font-size:15px;
    margin-right:10px;
}
@media screen and (max-width: 1920px) {
    body, html {
font-size: 20px;
}   
}
@media screen and (max-width: 1000px) {
    body, html {
        font-size: 25px;
    } 
    .width-50 {
        width: 100%;
    }
    .width-25 {
        width: 100%;
    }
    .flex-column-container {
        margin: 20px 10px;
    }
    .row-to-column {
        flex-direction:column;
        flex-wrap:nowrap;
        font-size:0.9rem;
    }
    .row-to-reverse-column {
        flex-direction: column-reverse;
        flex-wrap: nowrap;
    }
    .margin-side-10percent {
        margin-left: 15px;
        margin-right: 15px;
    }
    .margin-side-15percent {
        margin-left: 15px;
        margin-right: 15px;
    }
    .margin-side-20percent {
        margin-left: 15px;
        margin-right: 15px;
    }
    .margin-left-15percent {
        margin-left: 15px;
    }
    .we-got-this-button {
        width:auto;
    }
    site-button-one {
        font-size:0.8rem;
    }
}
