input,
input::placeholder {
    font-size: 14px;
    padding: 1px;
}

/* Button styles moved to buttons.css */

.card-custom-title {
    margin-left: -17px;
}

.small-custom-text {
    font-size: .75rem;
    padding-top: 2px;
    padding-bottom: 2px;
}

.input-small-custom-text-group {
    display: flex;
    padding: 12px 8px 12px 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 100px 0 0 100px;
    border-right: 1px solid var(--color-primary-100, #E6EAF0);
    background: var(--White, #FFF);
}

.input-small-custom-text-group-span {
    position: relative;
    font-size: .7rem;
    border-radius: 0 25px 25px 0;
    height: 30px;
    outline: none;
    border-right: 1px solid #e1e0e0;
    border-top: 1px solid #e1e0e0;
    border-bottom: 1px solid #e1e0e0;
}

.input-custom {
    position: relative;
    font-size: .7rem;
    border-radius: 0 25px 25px 0;
    height: 30px;
    outline: none;
    border: 1px solid #e1e0e0;
    max-width: 160px;
    min-width: 140px;
    width: 100%;
}

/* .input-custom-group {
    max-width: 160px;
    min-width: 140px;
    width: 100%;
} */

/* New Figma-based input styling for results */
.input-group {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    border-radius: 100px;
    position: relative;
    border: 1px solid #e5e7eb;
    height: 36px;
}

.input-group .form-control {
    background: #ffffff;
    border-right: 1px solid #e6eaf0;
    border-top: 0;
    border-bottom: 0;
    border-left: 0;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-width: 110px;
    padding: 12px 8px 12px 16px;
    gap: 10px;
    border-radius: 100px;
}

.input-group .input-group-text {
    display: flex;
    padding: 12px 16px 12px 8px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    position: relative;
    flex-shrink: 0;
    height: 100%;
    min-width: 60px;
    border-radius: 0 100px 100px 0;
    border: none;
}


/* Input without unit - full width for value */
.input-custom-group.no-unit .figma-input-value-section {
    border-radius: 100px;
    width: 100%;
    border-right: none;
    padding: 12px 16px;
}

.input-custom-group.no-unit .figma-input-unit-section {
    display: none;
}

/* Active state for figma inputs */
.input-group:has(.form-control:not(:disabled)) {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 0 0 1px #e5e7eb;
}

.input-group:has(.form-control:not(:disabled)) .form-control {
    background: #ffffff;
}

/* Disabled state for figma inputs */
.input-group:has(.form-control:disabled) {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    box-shadow: none;
}


.input-group:has(.form-control:disabled) .input-group-text {
    background: #f3f4f6;
}

/* Circle button styles moved to buttons.css */


.tooltip-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip-container .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #fff;
    color: #000000;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    top: 100%;
    /* Position the tooltip below the hoverable element */
    right: 0;
    /* Align the tooltip to the left */
    margin-top: 10px;
    /* Add some space between the element and the tooltip */
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.tooltip-container .tooltip-text::after {
    content: "";
    position: absolute;
    bottom: 100%;
    /* Position the arrow at the top of the tooltip */
    right: 10%;
    /* Adjust the arrow's horizontal position */
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    /* Arrow pointing upwards */
}

.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

#tooltip-custom {
    position: relative;
    cursor: pointer;
    font-size: 25px;
    font-weight: bold;
    font-family: sans-serif;
}

#tooltipText {
    position: absolute;
    left: 120%;
    font-size: .7rem;
    top: 0;
    transform: translateX(-100%) translateY(-120%);
    background-color: #000000;
    color: #ffffff;
    white-space: nowrap;
    padding: 10px 15px;
    border-radius: 7px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#tooltipText::before {
    content: "";
    position: absolute;
    left: 50%;
    right: 10%;
    top: 100%;
    transform: translateY(-50%);
    border: 15px solid;
    border-color: #0000 #0000 #0000 #000;
}

#tooltip-custom:hover #tooltipText {
    visibility: visible;
    opacity: 1;

}

/* Autocomplete loading indicator */
.autocomplete-loading {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 50 50'%3E%3Cpath fill='%23999' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px 16px;
    padding-right: 35px !important;
}