:root {
    --default-font: "Roboto", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --heading-font: "Raleway", sans-serif;
    --nav-font: "Poppins", sans-serif;
    --primary-yellow: #f4c542;
}

/* General Styling */
body {
    font-family: var(--default-font);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #fff;
}




/* Button Styling */
.res-button,
.button-group {
    margin-top: 20px;
    text-align: center;
}

.res-button button,
.button-group button {
    background-color: var(--primary-yellow);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.res-button button:hover,
.button-group button:hover {
    background-color: #dba920;
}

/* Container Styling */
.settings-container {
    max-width: auto;
    margin: auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

/* Tab Navigation */
/* Tab Navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid #ddd;
}

.tab-button {
    flex: 1;
    padding: 15px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: bold;
    color: #555;
    cursor: pointer;
    text-align: center;
    transition: color 0.3s ease, border-bottom 0.3s ease;
}

/* Hover Effect */
.tab-button:hover {
    color: var(--primary-yellow);
    border-bottom: 3px solid var(--primary-yellow);
}

/* Active Tab */
.tab-button.active {
    color: var(--primary-yellow);
    border-bottom: 3px solid var(--primary-yellow);
}


/* Tab Content */
.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Upload Section */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    /* padding: 15px; */
}

.upload-container input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.btn {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    background-color: #f4c542;
    color: black;
    cursor: pointer;
}

.btn:hover {
    background-color: #f4c542;
}

.image-type-selection {
    display: flex;
    gap: 15px;
    margin: 10px 0;
    font-size: 16px;
    padding: 15px;
}

.image-type-radio {
    margin-right: 5px;
    cursor: pointer;
}

.hidden {
    display: none;
}

/* Image Preview Section */
.image-preview {
    display: flex;
    justify-content: space-evenly;
    /* gap: 40px; */
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    height: auto;
    flex-wrap: wrap;
}

.image-container {
    font-size: 20px;
    margin-top: 5px;
    align-self: center;
    padding: 5px;
}

.image-container h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.image-container img {
    display: block;
    width: 550px;
    height: 550px;
}


/* bounding box tooltip */

.tooltip-box {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 13px;
    max-width: 220px;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.3;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    display: none;
    text-align: left;
}

.tooltip-box strong {
    font-weight: bold;
    margin-right: 5px;
}

.tooltip-box .tooltip-line {
    display: flex;
    align-items: center;
    gap: 5px;
}

#camouflage-slider-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 10px; */
    width: 100%;
    overflow: hidden;
}

.slider-track {
    display: flex;
    gap: 15px;
    overflow: hidden;
    width: auto;
}

.slider-item {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.slider-card img {
    width: 350px;
    height: 200px;
    border: 2px solid white;
}



.slider-content {
    padding: 10px;
}

.slider-btn {
    background: #f4c542;
    border: none;
    padding: 10px 15px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 5px;
}

/* 🔹 Slider Image Selection Animation */
.slider-card img {
    cursor: pointer;
    /* Change cursor to pointer */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

/* 🔹 Hover Effect */
.slider-card img:hover {
    transform: scale(1.05);
    /* Slight zoom effect */
    opacity: 90%;
}

/* 🔹 Selected Image Effect */
.slider-card.selected img {
    padding: 10px;
    /* Ensures even spacing */
    border: 4px solid var(--primary-yellow);
    /* Solid yellow border */
    border-radius: 10px;
    /* Keeps rounded corners */
    box-sizing: border-box;
    /* Ensures the border doesn’t affect dimensions */
}


.slider-btn:hover {
    background: #dba920;
}

/* strength slider camo */
/* Strength slider camo */
.camo-slider-container {
    display: flex;
    /* flex-direction: column; */
    align-items: baseline;
    gap: 15px;
    margin-top: 20px;
    width: 100%;
    padding: 15px;

}

#camo-slider {
    width: 50%;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, #f4c542 0%, #f4c542 10%, #ddd 10%);
    border-radius: 5px;
    outline: none;

    /* transition: background 0.2s; */
}

#camo-slider::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #f4c542;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid white;
}

#camo-value {
    margin-top: 5px;
    font-weight: bold;
    color: #333;
}

#patch-slider-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.sliders-container {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px;

}

/* 🔹 Each Slider Wrapper */
.slider-wrapper {
    display: flex;
    /* flex-direction: column; */
    align-items: center;
    width: 50%;
    gap: 15px;
    align-items: baseline;

}

/* 🔹 Labels for Sliders */
.slider-wrapper label {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 🔹 General Slider Styling */
input[type="range"] {
    width: 100%;
    appearance: none;
    height: 8px;
    background: #ddd;
    /* Default grey */
    border-radius: 5px;
    outline: none;
    /* transition: background 0.3s ease-in-out; */
}

/* 🔹 Thumb (Circular Handle) */
input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #f4c542;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

/* 🔹 Hover & Active State */
input[type="range"]::-webkit-slider-thumb:hover,
input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

/* 🔹 Live Value Display */
.slider-wrapper span {
    margin-top: 5px;
    font-weight: bold;
    color: #333;
}


/* 🔹 Tooltip Icon Styling */
.tooltip-icon {
    font-size: 16px;
    cursor: pointer;
    margin-left: 5px;
    position: relative;
    color: #666;
}

/* 🔹 Tooltip Box */
.tooltip-box-info {
    display: none;
    position: absolute;
    max-width: 300px;
    background: #fff;
    color: #333;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
    z-index: 1000;
}

/* 🔹 Show Tooltip on Hover */
/* .tooltip-icon:hover::after {
    content: attr(data-tooltip);
    display: block;
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: #333;
    padding: 8px;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 14px;
    line-height: 1.4;
    width: 250px;
    text-align: center;
    z-index: 1000;
} */

.instruction-box {
    /* background: #f8f9fa; */
    /* border-left: 5px solid #f4c542; */
    padding: 15px;
    margin-bottom: 15px;
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    line-height: 1.5;
}





/* Loader Container */
#loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgb(255, 255, 255);
    color: black;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Spinner Animation */
.spinner {
    width: 45px;
    height: 45px;
    border: 5px solid rgba(244, 197, 66, 0.3);
    /* Soft yellow outline */
    border-top: 5px solid #f4c542;
    /* Brand yellow for the spin */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

/* 🔹 Processing Text */
.loader-content p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 5px;
}

/* 🔹 Animation: Smooth Fade-In */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 🔹 Animation: Spinning Effect */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

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

/* 🔹 Hide Loader Initially */
.hidden {
    display: none;
    opacity: 0;
}

.accordion-button {

    background-color: rgb(162, 160, 160) !important;
    color: white !important;
    border-radius: 0 !important;
}

.accordion-button:focus {
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    background-color: #f9f9f9 !important;
    color: black !important;
    border-radius: 0 !important;
}

.steps-info {
    max-width: auto;
    margin: auto;
    background-color: #f9f9f9;
    /* border-radius: 10px; */
    /* box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;

}

.nonXaiHeading {
    display: flex;
    justify-content: center;
    padding: 10px;
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-bottom: 0;
    text-align: center;
    background-color: #f9f9f9;

}

.xaiHeading {
    display: flex;
    justify-content: center;
    padding: 10px;
    width: 100%;
    height: 40px;
    border: 1px solid #ddd;
    border-bottom: 0;
    text-align: center;
    background-color: #f9f9f9;

}