/* assets/css/styles.css - Enhanced styles for Tailwind integration */

/* Background opacity utilities for Tailwind v4 compatibility */
.bg-opacity-50 {
    --tw-bg-opacity: 0.5;
    background-color: rgba(0, 0, 0, var(--tw-bg-opacity));
}

.bg-black.bg-opacity-50 {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Table styles */
table tr:last-child th, table tr:last-child td {
    border-bottom: none;
}

/* Reset and base styles */
html, body{
    margin: 0px 0px;
    padding: 0px 0px;
    font-family: "Archivo", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

/* Utility classes for compatibility */
.hidden {
    display: none !important;
}

.collapse {
    display: none !important;
}

.collapse.show {
    display: block !important;
}

/* Ensure elements with show class (but not collapse) are visible */
.show:not(.collapse) {
    display: block !important;
}

/* Override when both hidden and show are present - show wins */
.show.hidden {
    display: block !important;
}

.invalid-feedback {
    display: none;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block;
}

/* Spinner for loading states */
.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    vertical-align: text-bottom;
    border: 0.125em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
    width: 0.875rem;
    height: 0.875rem;
    border-width: 0.1em;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

.f-wrapper{
    display: block;
    position: relative;
    width: 100%;
    height: 42px;
    margin: 10px 0px;
    border:  1px solid #efefef;
    overflow: hidden;
    clear: both;
    background-color: #fff;
}

.f-minus, .f-plus{
    display: block;
    position: absolute;
    top: 0px;
    width: 36px;
    height: 40px;
    padding: 5px 8px;
    cursor: pointer;
}

.f-minus{
    left: 0px;
}

.f-plus{
    right: 0px;
}

.f-ingredient{
    display: block;
    position: relative;
    width: 100%;
    height: 20px;
    margin: 0px 0px;
    padding: 0px 0px;
    line-height: 20px;
    font-size: 0.85em;
    text-align: center;
    font-weight: bold;
    transition: all 0.5s;
}

.f-ingredient span{
    cursor: pointer;
}

#ingredientInfoModalCircle{
    width: 20px;
    height: 20px;
    margin-right: 10px;
    border: 1px solid #dfdfdf;
    background-color: white;
}

.f-info{
    display: block;
    position: relative;
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 0.75em;
    margin: 0px 0px;
    padding: 0px 0px;
    text-align: center;
}

.f-minus img, .f-plus img{
    width: 20px;
    height: 30px;
    margin: 0px 0px;
}

.f-tube-wrapper{
    display: block;
    position: relative;
    width: 80px;
    height: 405px;
    background-color: #ccc;
}

.f-tube-space{
    display: block;
    position: relative;
    width: 80%;
    height: 97.5%;
    background-color: white;
    margin: 0px 10% 5% 10%;
}

.f-tube-fills{
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    top: 3.7%;
    left: 0px;
    width: 100%;
    height: 95%;
}

.f-tube-img{
    display: block;
    position: absolute;
    top: 0px;
    right: 0px;
    width: 100%;
    height: 100%;
}

.f-tube-img img{
    position: absolute;
    right: 0px;
    width: auto;
    height: 100%;
}

.f-tube-gradient {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0%, rgba(255, 255, 255, 0.5) 25%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0) 67%, rgba(255, 255, 255, 0) 75%, rgba(0, 0, 0, 0.3) 100%);
}

.f-mixer-wrapper{
    height: 405px;
    min-height: 405px;
    display: flex;
}

.f-mixer{
    height: 405px;
    min-height: 405px;
    overflow-y: auto;
    overflow-x: hidden;
    display: block;
    flex: 1;
    background-color: #fff;
}

.f-no-drops .f-info{
    display: none;
}

.f-no-drops .f-ingredient{
    height: 40px;
    line-height: 40px;
    color: #999999;
}

.fill{
    display: block;
    position: relative;
    width: 90%;
    height: 0px;
    margin: 0px 5%;
    margin-bottom: 0;
    flex-shrink: 0;
    transition: height 0.5s ease-out;
    box-shadow: inset 0 0 1px #222;
    text-align: center;
    font-size: 0.5em;
    line-height: 1;
    text-shadow: 1px 1px 1px white;
    font-weight: bold;
    overflow: hidden;
}

.fill-caption{
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.f-color{
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    left: 35px;
    top: 10px;
    border-radius: 20px;
    border:  1px solid #dfdfdf;    
}

.animate-slow{
    transition: all 0.5s;
}

.f-tube-full{
    position: fixed;
    padding: 40px 100px;
    width: 100%;
    height: 100%;
    background-color: white;
    top: 0;
    left: 0;
    z-index: 1000;
    display: none;
}

.f-tube-full:not(.hidden) {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.f-tube-full .fill-caption{
    font-size: 2em;
}

label {
    cursor: pointer;
    text-transform: uppercase;
}

/* Chart containers - prevent vertical growth */
canvas {
    max-height: 100% !important;
    max-width: 100% !important;
}

/* Fragrance inputs - keep white background, muted text when disabled */
#input_fragrance_name,
#input_fragrance_description {
    background-color: #ffffff !important;
}

#input_fragrance_name:disabled,
#input_fragrance_description:disabled {
    background-color: #ffffff !important;
    color: #6b7280 !important;
    opacity: 1 !important;
}