html,
body {
    padding: 0;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,
        Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
    background-color: #25293C;
    color: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

* {
    box-sizing: border-box;
}

.sortable span {
    font-size: 0.8em;
    /* Adjust size as needed */
}

.logo img {
    width: 150px;
}

.logoLogin img {
    width: 250px;
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.sortable::after {
    content: '▲▼';
    /* Default: both arrows */
    font-size: 12px;
    /* Adjust size as needed */
    margin-left: 5px;
    /* Space between header text and arrows */
}

.sortable.sorting-asc::after {
    content: '▲';
    /* Arrow up when sorting ascending */
}

.sortable.sorting-desc::after {
    content: '▼';
    /* Arrow down when sorting descending */
}

#clicksTable th,
#clicksTable td {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.first-column {
    width: 15px;
}

.custom-switch-size {
    transform: scale(1.5);
    /* Adjust the scale value as needed */
}

#dataRetrieveContainer .btn {
    margin-right: 6px;
    /* Adjust the value as needed */
}


.form-control:disabled {
    background-color: #a5a5a5;
    opacity: 1;
    border: #a5a5a5;
}


/* add campaign modal */
.progress-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.progress {
    flex-grow: 1;
    /* Make progress bars grow equally */
    margin: 0 5px;
}

.badge-step {
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    /* Vertically center the text */
    border-radius: 50%;
    background-color: #6c757d;
    /* Bootstrap secondary color */
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.badge-step.active {
    background-color: #0d6efd;
    /* Bootstrap primary color */
}

/* color for tags */
.choices__item--selectable {
    background-color: #0d6efd !important;
    /* Bootstrap primary color */
    color: #fff !important;
}

.choices__button {
    color: #fff !important;
    background-color: #0d6efd !important;
    border-color: rgba(255, 255, 255, 0.7) !important;
}

.choices {
    display: block;
    width: 100%;
    font-weight: 400;
    line-height: 1;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    border-radius: var(--bs-border-radius);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.choices__list--multiple .choices__item {
    display: inline-block;
    vertical-align: middle;
    border-radius: 10px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 3.75px;
    margin-bottom: 3.75px;
    background-color: #0d6efd !important;
    border: 1px solid #0d6efd;
    color: #fff;
    word-break: break-all;
    box-sizing: border-box;
}

.choices__inner {
    display: inline-block;
    vertical-align: top;
    width: 100%;
    background-color: #f9f9f9;
    padding: 1.5px 7.5px 3.75px;
    border: 1px solid #ddd;
    border-radius: 2.5px;
    font-size: 14px;
    min-height: 40px;
    overflow: hidden;
}

.placeholder-shown::before {
    /* content: 'Select an option...'; */
    color: #6c757d;
    /* Placeholder text color */
    pointer-events: none;
}

h5.card-header {
    border-color: #fff;
}

/* buttons */
/* Default state */
.btn-indigo {
    color: #fff;
    background-color: indigo;
    border-color: indigo;
}

/* Hover state */
.btn-indigo:hover {
    color: #fff;
    background-color: darkslateblue;
    /* slightly darker indigo on hover */
    border-color: darkslateblue;
}

/* Focus state */
.btn-indigo:focus,
.btn-indigo.focus {
    color: #fff;
    background-color: darkslateblue;
    border-color: darkslateblue;
    box-shadow: 0 0 0 0.2rem rgba(75, 0, 130, 0.5);
    /* Adjust the RGBA for a matching indigo color */
}

/* Active state */
.btn-indigo:active,
.btn-indigo.active,
.show>.btn-indigo.dropdown-toggle {
    color: #fff;
    background-color: darkslateblue;
    border-color: darkslateblue;
}

/* Disabled state */
.btn-indigo:disabled,
.btn-indigo.disabled {
    color: #fff;
    background-color: indigo;
    border-color: indigo;
}


/* list items border color */
.list-group-item {
    border-color: #595959 !important;
}


/* Define colors for different ranges */
.very-poor {
    background-color: #ac1917;
}

.poor {
    background-color: #b75420;

}

.fair {
    background-color: #c0982b;

}

.good {
    background-color: #768b45;

}

.very-good {
    background-color: #237f5d;

}

.excellent {
    background-color: #156b8a;

}

.outperformer {
    background-color: #704776;
}

/*#fallbackSection,
#editFallbackSection {
    display: none;
}*/

/*Group link*/
.output-row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.link-name {
    flex: 0 0 25%;
}

.link-url {
    flex: 0 0 50%;
}

.feed-channel {
    flex: 0 0 25%;
}

.mandatory {
    border: 1px solid red;
}

.mandatory-label {
    color: red;
    display: none;
}

.done-button {
    background-color: grey;
    border: none;
    color: white;
    padding: 5px 10px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    cursor: default;
}

/*        end group link*/

/*stats text area*/

.statTextArea textarea#csvOutput {
    width: 20%;
    height: 300px;
}

.statTextArea textarea#jsonOutput {
    width: 50%;
    height: 300px;
}

.csv-output, .json-output {
    background-color: #1e1e1e;
    color: #ffffff;
    font-family: monospace;
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
    white-space: pre-wrap;
    height: 400px;
}

#csvOutput {
    color: #dcdcaa;
}

#jsonOutput .key {
    color: #d19a66;
}

#jsonOutput .string {
    color: #98c379;
}

#jsonOutput .number {
    color: #dcdcaa;
}

#jsonOutput .boolean {
    color: #56b6c2;
}

#jsonOutput .null {
    color: #e06c75;
}

/*for counter*/
.text-purple-emphasis {
    color: #9b59b6 !important; /* Bootstrap-like purple */
    font-weight: bold;
}

.underline-text {
    text-decoration: underline;
}


.border-danger {
    border-color: #dc3545 !important;
    animation: shake 0.2s linear;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

/* Custom Select Wrapper */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
    margin-bottom: 1rem;
}

/* Custom Select Trigger */
.custom-select {
    position: relative;
    cursor: pointer;
    user-select: none;
    width: 100%;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Focus Effect */
.custom-select:focus-within {
    outline: 0;
    border-color: rgb(134, 183, 254);
    box-shadow: rgba(13, 110, 253, 0.25) 0px 0px 0px 0.25rem;
}

/* Arrow */
.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-trigger .arrow {
    margin-left: 10px;
    border: solid #888;
    border-width: 0 2px 2px 0;
    padding: 3px;
    transform: rotate(45deg);
    transition: all 0.2s;
}

.custom-select.open .arrow {
    transform: rotate(-135deg);
}

/* Options Container */
.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #212529;
    border: 1px solid #343a40;
    border-radius: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    text-align: left;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

/* Show on open */
.custom-select.open .custom-options {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Individual Option */
.custom-option {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    border-bottom: 1px solid var(--bs-border-color);
    white-space: nowrap;
    display: block;
    color: #ffffff;
}

/* Last Option */
.custom-option:last-child {
    border-bottom: none;
}

/* Selected state */
.custom-option.selected {
    background-color: #99C8FF;
    color: #333;
}

/* Proper focus and hover styles */
.custom-option:hover {
    color: #333;
    background-color: #99C8FF;
}

/* Search Input */
.custom-search-input {
    padding: 0.375rem 0.75rem;
    width: 100%;
    border-bottom: 1px solid var(--bs-border-color);
    background-color: #212529;
    color: #ffffff;
    border-radius: 4px 4px 0 0;
    outline: none;
}

/* Fix the spacing between options */
.custom-options {
    max-height: 300px;
    overflow-y: auto;
    width: 100%;
    background-color: #212529;
    border-radius: 4px;
}

/* Smooth open/close transition */
.custom-options {
    transition: all 0.3s ease;
}

/* Prevent text overflow */
.custom-option {
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Selected Placeholder */
.custom-select-trigger span {
    color: #ffffff;
}

/* Arrow Color */
.custom-select-trigger .arrow {
    border-color: #ffffff;
}
