body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* Ensure full viewport height */
}

.content {
    flex: 1;
    /* Allow content to fill remaining space */
}

.sticky-footer {
    background-color: #fff;
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    /* Optional: Add shadow */
    margin-top: auto;
    /* Push footer to bottom */
}

body,
html {
    font-family: 'Roboto', sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Roboto", sans-serif;
}

.preloader {
    width: 100%;
    height: 100vh;
    position: fixed;
    top: 0;
    z-index: 999999999;
    display: none;
}

.scrollable-content::-webkit-scrollbar {
    display: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.loading-relative {
    min-height: 160px;
}

.loading-relative {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 50px;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes sk-bouncedelay {

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

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

.loading .span1,
.loading .span2,
.loading .span3 {
    -webkit-animation-delay: -.32s;
    animation-delay: -.32s;
}

.loading>div {
    width: 18px;
    height: 18px;
    background-color: #aaa;
    border-radius: 100%;
    display: inline-block;
    -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    animation: sk-bouncedelay 1.4s infinite ease-in-out both;
}


/* :root::-webkit-scrollbar{
    display: none;
    }

    :root {
    scrollbar-width: none;
    -ms-overflow-style: none;
    } */

.login_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 600px;
    max-height: 450px;
    overflow: auto;
    padding: 10px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-sizing: border-box;
    z-index: 1000;

}
.login_modal.wide-modal {
    max-width: 900px !important;
    max-height: 70vh !important;
}

/* Optional overlay for background dimming */
.modal_overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

.login_modal {

    display: none;
}

.auth-card {
    display: flex;
    /* flex-wrap: wrap; */
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 10px;
    border-radius: 12px;
    max-width: 700px;
    width: 100%;
    /* box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); */
    gap: 10px;

}

.auth-content {
    flex: 1 1 300px;
}

.auth-content h2 {
    margin-top: 0;
    font-size: 24px;
    color: #1f2937;
}

.auth-content p {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.auth-buttons {
    margin-top: 20px;
}

.auth-buttons .btn {
    padding: 10px 20px;
    margin-right: 10px;
    font-weight: bold;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.login-btn {
    background-color: #0f365e;
    color: white;
    border-color: #0f365e;
}

.login-btn:hover {
    background-color: #0a2745;
    color: white;
}

.register-btn {
    background-color: transparent;
    color: #0f365e;
    border-color: #0f365e;
}

.register-btn:hover {
    background-color: #f0f5fb;
}

.auth-image {
    flex: 0 0 120px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.auth-image img {
    width: 100px;
    height: auto;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup-content {
    position: relative;
    font-family: Arial, sans-serif;
    gap: 8px;
    padding: clamp(1.5rem, 3vw, 2rem) clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
    font-size: clamp(0.950rem, 3vw, 1rem);
    background: white;
    border-radius: 60px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}
.popup-section-wrapper {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 8px;
}

.popup-title {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: bold;
    color: #4a4a4a;
    margin: 0;
}

.popup-subtitle {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    font-weight: bold;
    color: #4a4a4a;
    margin: 0;
}

.popup-subheading {
    font-size: clamp(1rem, 4vw, 1.5rem);
    font-weight: 600;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-check-label {
    font-size: clamp(1rem, 4vw, 1rem);
    font-weight: bold;
    color: #4a4a4a!important;
    margin-left: 8px;
}

.form-check-label-dataset {
    font-size: clamp(1rem, 4vw, 1rem);
    font-weight: bold;
    color: #fff!important;
    margin-left: 8px;
}

.form-check-input {
    transform: scale(1.4);
    margin-right: 8px;
}

.input-pair {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 100%;
    min-width: 240px;
}

.input-group label {
    font-weight: bold;
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    color: #4a4a4a;
}

.text-input,
input[type="text"].form-control {
    border: 1px solid #000;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    width: 100%;
    max-width: 100%;
}

/* Entry rows with fixed text width for alignment */
.entry-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.entry-text {
    flex-grow: 1;
    white-space: normal;
    overflow: visible;
    margin-right: 10px;
    font-size: clamp(0.75rem, 4vw, 1rem);
}

/* Custom arrow button */
.arrow-btn {
    background-color: #004a77;
    color: white;
    border: none;
    padding: 5px 20px;
    clip-path: polygon(0 0, 90% 0, 100% 50%, 90% 100%, 0 100%);
    transition: background 0.2s;
    flex-shrink: 0;
}

.arrow-btn:hover {
    background-color: #0066aa;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.close-btn:hover {
    color: #000;
}

.subscription-section {
    margin-bottom: clamp(1.25rem, 4vw, 2rem);
    padding-right: clamp(0.5rem, 3vw, 1.5rem);
}

.mb-after-company {
    margin-bottom: clamp(1rem, 3vw, 1.75rem);
}

.popup-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    margin-bottom: 0.75rem;
    color: #4a4a4a;
}

.dataset-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dataset-input label {
    font-size: clamp(1rem, 4vw, 1rem);
    font-weight: bold;
    color: #4a4a4a;
}

.dataset-input input {
    width: 200px;
    border: 1px solid black;
    padding: 4px 8px;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
}


/* Mobile-specific styles for deliver to and frequency fields */
.delivery-frequency-container {
    display: flex;
    flex-direction: column;
}

.field-row {
    display: flex;
    align-items: center;
    gap: 2px;
}

.field-label {
    width: 130px;
    /* Fixed width ensures alignment */
    font-size: clamp(0.875rem, 3.5vw, 1rem);
    font-weight: bold;
    color: #4a4a4a;
}

.field-input {
    width: 360px;
    border: 1px solid black;
    padding: 4px 8px;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
}


/* Responsive tweaks */
@media (max-width: 600px) {

    #deliverTo,
    #frequency,
    .deliver-to-input,
    .frequency-input {
        width: 90% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        display: block;
        margin-bottom: 10px;
    }

    .dataset-input {
        margin-bottom: 4px;
    }

    .popup-title {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .form-check-label {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
        color : #fff;
    }

    .dataset-input label {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .field-label {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .popup-content p {
        font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    }

    .popup-subtitle {
        font-size: clamp(0.75rem, 5vw, 0.75rem);
    }

    .input-pair,
    .entry-row {
        flex-direction: row;
        align-items: center;
    }

    .popup-overlay {
        padding: 16px;
        border-radius: 20px;
    }

    .entry-text {
        width: 100%;
        max-width: 100%;
    }

    .arrow-btn {
        align-self: center;
    }

    .form-control {
        width: 100% !important;
    }

    .row.mb-2.align-items-center .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px;
    }

    .col-auto,
    .col {
        width: 100%;
    }

    /* Stack labels and inputs vertically on mobile */
    .field-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .field-label {
        min-width: auto;
        width: 100%;
    }

    .field-input {
        width: 100%;
    }

    /* Adjust checkbox sections spacing */
    .form-check {
        margin-bottom: 12px;
    }

    /* Reduce overall padding on very small screens */
    .popup-content {
        padding: clamp(0.75rem, 4vw, 1.5rem);
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .popup-overlay {
        width: 95%;
        padding: 12px;
        border-radius: 15px;
    }

    .popup-subtitle {
        font-size: clamp(0.75rem, 5vw, 0.75rem);

    }


    .popup-content {
        padding: clamp(0.5rem, 10vw, 1rem);
    }

    .field-label {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }

    .field-input {
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        padding: 6px;
    }
}

#loader-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;

}


/* Spinner animation */
.loader {
    border: 8px solid #f3f3f3;
    /* Light gray */
    border-top: 8px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

/* Keyframes for rotation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.more-toggle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}


/* @media (max-width: 991.98px) {

} */
.scrollbar-deep-purple::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #F5F5F5;
    border-radius: 10px;
}

.scrollbar-deep-purple::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

.scrollbar-deep-purple::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #512da8;
}

.scrollbar-deep-purple {
    scrollbar-color: #512da8 #F5F5F5;
}

.scrollbar-cyan::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #F5F5F5;
    border-radius: 10px;
}

.scrollbar-cyan::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

.scrollbar-cyan::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #00bcd4;
}

.scrollbar-cyan {
    scrollbar-color: #00bcd4 #F5F5F5;
}

.scrollbar-dusty-grass::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #F5F5F5;
    border-radius: 10px;
}

.scrollbar-dusty-grass::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

.scrollbar-dusty-grass::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-image: -webkit-linear-gradient(330deg, #d4fc79 0%, #96e6a1 100%);
    background-image: linear-gradient(120deg, #d4fc79 0%, #96e6a1 100%);
}

.scrollbar-ripe-malinka::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-color: #F5F5F5;
    border-radius: 10px;
}

.scrollbar-ripe-malinka::-webkit-scrollbar {
    width: 12px;
    background-color: #F5F5F5;
}

.scrollbar-ripe-malinka::-webkit-scrollbar-thumb {
    border-radius: 10px;
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    background-image: -webkit-linear-gradient(330deg, #f093fb 0%, #f5576c 100%);
    background-image: linear-gradient(120deg, #f093fb 0%, #f5576c 100%);
}

.bordered-deep-purple::-webkit-scrollbar-track {
    -webkit-box-shadow: none;
    border: 1px solid #512da8;
}

.bordered-deep-purple::-webkit-scrollbar-thumb {
    -webkit-box-shadow: none;
}

.bordered-cyan::-webkit-scrollbar-track {
    -webkit-box-shadow: none;
    border: 1px solid #00bcd4;
}

.bordered-cyan::-webkit-scrollbar-thumb {
    -webkit-box-shadow: none;
}

.square::-webkit-scrollbar-track {
    border-radius: 0 !important;
}

.square::-webkit-scrollbar-thumb {
    border-radius: 0 !important;
}

.thin::-webkit-scrollbar {
    width: 6px;
}

.example-1 {
    position: relative;
    overflow-y: scroll;

}

#toggle-style {
  position: absolute;
  top: 100px;  /* adjust to appear right after NavigationControl */
  right: 10px;
  z-index: 1;
}