/*
    Main sections:
    || Containers
    || Nav Bars
    || Buttons
    || Colors
    || Formatting
    || Welcome or select page
    || UPLOAD PAGE
    || Upload Success
    || Data views
    || Tables
    || Timer
*/

html {
    font-size: 14px;
    scroll-padding-top: 100px;
    scroll-margin-top: 100px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif
}

html {
    position: relative;
    min-height: 100%;
}

header {
    height: 90px;
}

body {
    margin-bottom: 60px;
    height: auto;
    margin-top: 0%;
    overflow: auto;
}

img.logo {
    max-height: 64px;
}

/* || Containers */
@media only screen and (min-width: 769px) {
    .desktop-container {
        width: 95%;
        margin: 0 auto;
        max-width: 1600px;
    }
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.title-container {
    text-align: center;
    padding: 20px;
}

@media only screen and (max-width: 768px) {
    .title-container h1 {
        margin: 0;
        font-size: 30px;
        font-weight: 400;
    }
}

.front-modal {
    z-index: 1060;
}

.font-weight-bold {
    font-weight: bold;
}

/* || Nav Bars */
.nav-link.text-white.font-weight-bold {
    color: white !important;
    font-weight: bold;
    font-size: 1.2em; /* Adjust the size as needed */
}

    .nav-link.text-white.font-weight-bold i {
        margin-right: 5px;
        font-size: 1.4em; /* Adjust the size of the icon */
    }

/* || Buttons */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.btn-lg1 {
    padding: 0.5rem 6.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.btn-unicefblue {
    color: #1cabe2
}

.extra-bold {
    font-weight: 800;
}

.btn-darken-blue {
    background-color: #374EA2;
}

.bg-success {
    background-color: #28a745;
}

.primary-blue {
    background-color: #374EA2 !important;
    color: white !important;
}

.secondary-blue {
    border-color: #374EA2 !important;
    color: #374EA2 !important;
    background-color: white !important;
}

label {
    color: #9e9e9e;
    font-size: 13px;
    cursor: text;
    transition: transform .2s ease-out, color .2s ease-out;
    text-align: initial;
}

.btn-dropdown-icon, .btn-dropdown-icon:hover {
    color: white;
}

    .btn-dropdown-icon:focus {
        box-shadow: none !important;
    }

.responsive_img {
    max-width: 800px;
    width: 100%;
    height: auto;
}

/* || Colors */
.unicef-blue {
    background-color: #1cabe2 !important;
}

.unicef-blue-text {
    color: #1cabe2 !important;
}

.unicef-purple {
    background-color: #6a3674 !important;
}

.unicef-green {
    background-color: #80BD41 !important;
}

.unicef-green-text {
    color: #80BD41 !important;
}

.unicef-yellow {
    background-color: #FFC20E !important;
}

.unicef-orange {
    background-color: #F26A21 !important;
}

.unicef-grey-muted-text {
    color: #9C9C9C !important;
}

.unicef-grey-lighter-text {
    color: #767676 !important;
}

.unicef-grey-default-text {
    color: #4A4A4A !important;
}

.metadata-row {
    background-color: #9C9C9C !important;
    color: #fff !important;
}

.total-row {
    background-color: #80BD41 !important;
    color: #fff !important;
}


/* || Formatting */
.mt-n1 {
    margin-top: -0.25rem !important;
}

.mt-n5 {
    margin-top: -3rem !important;
}

.ml-0 {
    margin-left: 0 !important;
}

.ml-1 {
    margin-left: 0.25rem !important;
}

.ml-2 {
    margin-left: 0.5rem !important;
}

.ml-3 {
    margin-left: 1rem !important;
}

.ml-4 {
    margin-left: 1.5rem !important;
}

.ml-5 {
    margin-left: 3rem !important;
}

.ml-auto {
    margin-left: auto !important;
}

.mr-0 {
    margin-right: 0 !important;
}

.mr-1 {
    margin-right: 0.25rem !important;
}

.mr-2 {
    margin-right: 0.5rem !important;
}

.mr-3 {
    margin-right: 1rem !important;
}

.mr-4 {
    margin-right: 1.5rem !important;
}

.mr-5 {
    margin-right: 3rem !important;
}

.mr-auto {
    margin-right: auto !important;
}

.pl-0 {
    padding-left: 0 !important;
}

.pr-0 {
    padding-right: 0 !important;
}

.text-auth-center {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.text-not {
    text-align: center;
}

.text-base {
    font-weight: 600;
}

.word-wrap {
    word-wrap: break-word;
    white-space: normal;
}

.datepicker-view {
    width: 100% !important;
}

/* || Welcome or select page */
.autocomplete-results {
    border-top: none;
    max-height: 150px;
    overflow-y: auto;
    border-left: 1px solid #e5e5e5;
    border-right: 1px solid #e5e5e5;
    background-color: #efffff;
}

.autocomplete-result {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #e5e5e5; /* Separate each result */
}

    .autocomplete-result:last-child {
        border-bottom: none; /* Remove border for the last result */
    }

    .autocomplete-result:hover {
        background-color: #f5f5f5;
    }

@media only screen and (max-width: 436px) {
    a.navbar-brand {
        max-width: 200px;
    }
}

.step1, .step2 {
    padding: 30px 0;
    border: 1px solid #ddd;
    margin: 0 15px;
}

.country-select {
    margin: 0 auto;
}

.hero-caption {
    background-color: rgba(28, 171, 226, .6);
    position: relative;
    padding-top: 1rem;
    border-radius: 5px;
    color: #fff;
    z-index: 3;
    width: 98%;
}

.welcome-container {
    color: #545454;
}

@media only screen and (min-width: 1200px) {
    .welcome-container {
        width: 95%;
        margin: 0 auto;
        max-width: 1140px;
    }
}

@media only screen and (min-width: 992px) and (max-width: 1199px) {
    .welcome-container {
        max-width: 960px;
        margin: 0 auto;
    }
}

@media only screen and (min-width: 768px) and (max-width: 991px) {
    .welcome-container {
        max-width: 720px;
        margin: 0 auto;
    }
}

.page-title {
    font-family: "Open Sans",sans-serif;
    margin: 0;
    font-size: 2.5rem;
    font-weight: 300;
}

/* || UPLOAD PAGE */
.centered-h1 {
    position: fixed;
    top: 13%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    padding: 10px;
    border-radius: 5px;
    font-weight: 900;
    font-size: 45px;
}

.wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.upload-body {
    display: flex;
    justify-content: center;
    min-height: 500px;
    background-color: #fff;
}

.drag-area {
    border: 2px dashed #1cabe2;
    height: 500px;
    width: 700px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

    .drag-area.active {
        border: 2px solid #1cabe2;
    }

    .drag-area .icon {
        font-size: 150px;
        color: #258cfb;
    }

    .drag-area header {
        font-size: 30px;
        font-weight: 500;
        color: #131313;
    }

    .drag-area span {
        font-size: 25px;
        font-weight: 500;
        color: #131313;
        margin: 10px 0 15px 0;
    }

    .drag-area button {
        padding: 10px 25px;
        font-size: 20px;
        font-weight: 500;
        border: none;
        outline: none;
        background: #258cfb;
        color: #fff;
        border-radius: 5px;
        cursor: pointer;
        margin-top: 15px;
    }

.extra-inputs {
    display: flex;
    gap: 15px;
    align-items: center;
}

    .extra-inputs select,
    .extra-inputs input {
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 5px;
        font-size: 16px;
        outline: none;
    }

        .extra-inputs input[type="text"] {
            flex: 1;
        }

.upload-submit {
    width: 150px;
    background-color: #258cfb;
    color: #fff;
    font-weight: 800;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

    .upload-submit:hover {
        background-color: darkblue;
    }

/* || Upload Success */
.filtercard {
    background-color: #fff;
    transition: box-shadow .25s;
    border-radius: 2px;
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    padding-bottom: 20px;
}

.lock-btn {
    position: absolute;
    top: 3px;
    right: 15px;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.delete-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 25px;
    height: 25px;
    background-color: red;
    color: white; /* This should make the 'X' white */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.document-item {
    position: relative;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    padding: 20px 15px;
    margin-top: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
}

.document-name {
    font-weight: 500;
    font-size: 1.2rem;
    flex-grow: 1;
}

.badge {
    padding: 0.5em 0.75em;
    font-size: 0.85rem;
}

.badge-warning {
    background-color: #ffc107;
}

.badge-success {
    background-color: #28a745;
}

.status-indicator {
    float: right;
}

.circle-badge {
    height: 25px;
    width: 25px;
    border-radius: 50%;
    background-color: #ffc107;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-button, .status-button:hover {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    background-color: #28a745;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
}

.status-error, .status-error:hover {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    background-color: red;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
}

.start-processing-btn, .start-processing-btn:hover {
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    background-color: #1CABE2; /* UNICEF Blue */
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.start-processing-btn:hover {
    background-color: #1899CB; /* Slightly darker shade for hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.start-processing-btn:active {
    transform: translateY(1px);
}


.badge-error {
    background-color: #dc3545;
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-align: center;
}

/* || Common */
.stage-tracker {
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.stage {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 16px;
}

.line {
    width: 20px;
    height: 2px;
    background-color: #000;
}

/* || Data Views*/
.modal-lg {
    max-width: 80%;
}

.next-button {
    display: block;
    width: 150px;
    height: 35px;
    margin: 10px auto 0;
    text-align: center;
}

.spinner-border {
    display: none;
    width: 1.5rem;
    height: 1.5rem;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: spinner .75s linear infinite;
    animation: spinner .75s linear infinite;
}

/* || Tables */
.style-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 20px;
    overflow: hidden;
}

    .style-table thead th {
        background-color: #1CABE2;
        color: #ffffff;
        text-align: center;
        padding: 10px;
        font-size: 14px;
        white-space: nowrap;
        text-align: left;
    }

    .style-table tbody td {
        padding: 10px !important;
        text-align: left;
        border: 1px solid #e3e6f0;
        font-size: 14px;
    }

    .style-table tbody tr:hover {
        background-color: #f8f9fa;
    }

    .style-table input[type="checkbox"] {
        width: 20px;
        height: 20px;
        cursor: pointer;
    }

#datatable-2_length select {
    border: 1px solid #aaa;
    border-radius: 3px;
    padding: 5px;
    background-color: transparent;
    padding: 4px;
}

.header-dropdown {
    padding: 5px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    background-color: white;
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

    .header-dropdown:focus {
        border-color: #1CABE2;
        box-shadow: 0 0 0 0.2rem rgba(28, 174, 226, 0.25);
    }

.column-buttons, .sort-buttons {
    margin-bottom: 20px;
    text-align: center;
}

    .column-buttons .btn, .sort-buttons .btn {
        margin: 5px;
        padding: 10px 15px;
    }

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.5em 1em;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #337ab7;
    background-color: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-decoration: none !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        background-color: #337ab7;
        color: #fff;
        border-color: #337ab7;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.current,
    .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
        color: #fff;
        background-color: #286090;
        border-color: #204d74;
    }

    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
    .dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
        color: #777;
        cursor: not-allowed;
        background-color: #fff;
        border-color: #ddd;
    }

.dataTables_filter {
    margin-bottom: 10px;
}

.page-number-column {
    display: none
}

/* || Dropdowns */
.form-control.level1-dropdown, .form-control.level2-dropdown, .sector-totals-dropdown {
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    font-size: 14px;
    line-height: 1.1;
    color: #495057;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

    .form-control.level1-dropdown:hover, .form-control.level2-dropdown:hover, .sector-totals-dropdown:hover {
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

        .form-control.level1-dropdown:focus, .form-control.level2-dropdown:focus, .sector-totals-dropdown:focus {
            border-color: #80bdff;
            outline: 0;
            box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        }

        .form-control.level1-dropdown:disabled, .form-control.level2-dropdown:disabled, .sector-totals-dropdown:disabled {
            background-color: #e9ecef;
            opacity: 1;
        }

.level1-dropdown {
    min-width: 150px;
}

/*upload success loading animation*/
.extracting-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: #007bff;
    border-radius: 50%;
    margin: 0 5px;
    animation: extract 1.2s linear infinite;
}

.dot-1 {
    animation-delay: -0.1s;
}

.dot-2 {
    animation-delay: -0.2s;
}

.dot-3 {
    animation-delay: -0.3s;
}

@keyframes extract {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

/* Loading bar container styles */
.progress-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    height: 20px;
    overflow: hidden;
}

.progress-bar {
    background-color: #007bff;
    height: 100%;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    transition: width 0.5s ease-in-out;
}

    .progress-bar::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(255, 255, 255, 0.2) 25%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.2) 75%);
        animation: loadingAnimation 2s infinite linear;
    }

@keyframes loadingAnimation {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* || Timer */
.stopwatch {
    background: #fff;
    width: 20rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stopwatch-timer {
    font-size: 3rem;
    display: flex;
}

.no {
    padding: 0 0.85rem;
    position: relative;
    line-height: 1;
}

    .no::after {
        content: ':';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        margin-top: -0.2rem;
    }

    .no:last-child::after {
        display: none;
    }

/* || Other */
.highlight {
    position: relative;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    border: 1px solid #ced4da;
}

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    margin: 10px;
}

    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 26px;
        width: 26px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        transition: .4s;
        border-radius: 50%;
    }

/* Color the slider when it's in the "Active" position */
input:checked + .slider {
    background-color: #28a745;
}

    /* Position the slider button to the right when active */
    input:checked + .slider:before {
        transform: translateX(26px);
    }

.bold-row {
    font-weight: bold;
}

.column-filter.active {
    background-color: #007bff;
    color: white;
}


/*captcha*/
.g-recaptcha {
    transform: scale(0.77);
    transform-origin: 0 0;
    margin-bottom: 1rem;
}

#captchaContainer {
    font-family: 'Courier New', Courier, monospace;
    background-color: #eaeaea;
    border: 1px solid #ccc;
    padding: 10px;
    letter-spacing: 3px;
    user-select: none;
    display: block;
    vertical-align: middle;
    margin-bottom: 10px;
    width: 80px;
    min-width: 30px;
}

#refreshCaptcha {
    display: inline-block;
    cursor: pointer;
    color: #007bff;
    margin-left: 10px;
    vertical-align: middle;
}

#refreshCaptcha:hover {
        text-decoration: underline;
}

.card-link {
    text-decoration: none;
    color: #333;
}

/*stage 5*/
.processing-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.processing-message h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.processing-message p {
    font-size: 16px;
    color: #666;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin {
     0% { transform: rotate(0deg); }
     100% { transform: rotate(360deg); }
 }

.btn-outline-primary.active {
    background-color: #007bff;
    color: white;
}

.btn-outline-secondary.active {
    background-color: #6c757d;
    color: white;
}
.row-hidden {
    display: none;
}

.highlight-yellow {
    background-color: yellow !important;
}

.clickable {
    color: #007bff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
}
.clickable:hover {
    color: #0056b3;
    text-decoration: underline;
}
.non-clickable {
    color: #6c757d;
    font-size: 1.2em;
    text-align: center;
}
.domain-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 40px; /* Increased margin to move the list down */
    max-width: 600px;
    margin: auto;
}
.domain-item {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}
.domain-item:hover {
    background-color: #e2e6ea;
}
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.label-heading {
    font-size: 1.5em;
    color: #343a40;
    margin-bottom: 10px;
}
.document-name-domain {
    font-size: 2em;
    color: #007bff;
}
.finalized-icon {
    margin-left: 10px; 
    color: green; 
}

.header-content {
    display: flex;
    align-items: center;
}
.header-content .header-dropdown {
    margin-right: 10px;
}
.sort-icon {
    cursor: pointer;
}

.grey-row {
    background-color: #DCDCDC !important;
}

.lightblue-row {
    background-color: lightgreen !important;
}

.status-button.cancel-button {
    min-width: fit-content;  /* Adjust to content width */
    padding: 0.375rem 0.75rem;
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
    width: auto;
    margin: 0 auto;
}

.status-button.cancel-button:hover {
    background-color: #c82333;
    color: white;
}

.disabled-link {
    color: #6c757d !important; 
    text-decoration: none !important;
    pointer-events: none !important;
}




.settings-card {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.settings-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1CABE2 !important; /* UNICEF Blue */
    transition: all 0.3s ease;
}

.feature-icon i {
    font-size: 1.2rem;
}

.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
    cursor: pointer;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.feature-icon.changed {
    background: #28a745 !important; /* Light green for changed state */
    animation: pulse 2s infinite;
}

.form-check-input:checked {
    background-color: #1CABE2 !important; /* UNICEF Blue */
    border-color: #1CABE2 !important; /* UNICEF Blue */
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(28, 171, 226, 0.25) !important; /* UNICEF Blue with opacity */
    border-color: #1CABE2 !important; /* UNICEF Blue */
}

.btn-primary {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: #1CABE2 !important; /* UNICEF Blue */
    border-color: #1CABE2 !important; /* UNICEF Blue */
}

.btn-primary:hover {
    background-color: #1697C9 !important; /* Slightly darker UNICEF Blue */
    border-color: #1697C9 !important;
}

.card-header {
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
    background: #1CABE2 !important; /* UNICEF Blue */
}

.bg-primary {
    background-color: #1CABE2 !important; /* UNICEF Blue */
}

.bg-gradient {
    background-image: linear-gradient(to right, #1CABE2, #00A9E0) !important; /* UNICEF Blue gradient */
}

/* Optional: Add a subtle hover effect to the save button */
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 171, 226, 0.2);
}


.start-processing-btn, .start-processing-btn:hover {
    min-width: fit-content;
    padding: 0.375rem 0.75rem;
    background-color: #1CABE2; /* UNICEF Blue from your theme */
    color: white;
    border: none;
    border-radius: 0.25rem;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
    transition: background-color 0.15s ease-in-out;
    width: auto;
    margin: 0 auto;
}

.start-processing-btn:hover {
    background-color: #1697C9; /* Slightly darker UNICEF Blue */
    color: white;
}

.start-processing-btn:disabled {
    background-color: #86c8e6;
    cursor: not-allowed;
    opacity: 0.65;
}

/*retry extraction*/
.status-error {
    position: relative;
    padding: 0.375rem 0.75rem;
    border: none;
    border-radius: 0.25rem;
    background-color: #dc3545;
    color: white;
    text-align: center;
    cursor: pointer;
    text-decoration: none !important;
    transition: background-color 0.3s, opacity 0.3s;
}

.status-error:disabled {
    background-color: #e17681;
    cursor: not-allowed;
    opacity: 0.65;
}

.status-error .spinner-border {
    display: none;
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.status-error.loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.status-error.loading .spinner-border {
    display: inline-block;
}

.status-error.loading .bi-arrow-clockwise {
    display: none;
}



/* Base styles for all table selector buttons */
.table-selector {
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Active state (current table) */
.table-selector.active-table-button {
    background-color: #1cabe2 !important;
    color: white !important;
    border-color: #1899cc;
    box-shadow: 0 4px 6px rgba(28, 171, 226, 0.2);
    transform: translateY(-1px);
}

/* Harmonized state (completed table) */
.table-selector.harmonized-table-button {
    background-color: #80BD41 !important;
    color: white !important;
    border-color: #72a93a;
    box-shadow: 0 4px 6px rgba(128, 189, 65, 0.2);
}

/* Hover effects */
.table-selector:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Active + Harmonized state */
.table-selector.active-table-button.harmonized-table-button {
    background: linear-gradient(135deg, #1cabe2 0%, #80BD41 100%) !important;
    border-color: #1899cc;
    box-shadow:
            0 4px 6px rgba(28, 171, 226, 0.15),
            0 4px 6px rgba(128, 189, 65, 0.15);
}

.table-selector.incomplete-table-button {
    background-color: #dc3545 !important;  /* Bootstrap red */
    color: white !important;
    border-color: #c82333;
    box-shadow: 0 4px 6px rgba(220, 53, 69, 0.2);
}

/* For when table is both active and incomplete */
.table-selector.active-table-button.incomplete-table-button {
    background: linear-gradient(135deg, #1cabe2 0%, #dc3545 100%) !important;
    border-color: #1899cc;
    box-shadow:
            0 4px 6px rgba(28, 171, 226, 0.15),
            0 4px 6px rgba(220, 53, 69, 0.15);
}

/* Add a subtle indicator dot */
.table-selector.harmonized-table-button::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    opacity: 0.8;
}

/* Add focus state for accessibility */
.table-selector:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(28, 171, 226, 0.4);
}

/* Add disabled state styling */
.table-selector:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Optional: Add loading state */
.table-selector.loading {
    position: relative;
    pointer-events: none;
}

.table-selector.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Optional: Add responsive adjustments */
@media (max-width: 768px) {
    .table-selector {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .table-selector:hover {
        transform: none; /* Disable hover effect on mobile */
    }
}
