/* LENS269 - UNIFIED TOGGLE BUTTON STYLING
   Single source of truth for all toggle button styles across the entire app.
   This file overrides all previous toggle-option CSS to ensure consistency.

   Last loaded CSS file - takes priority over:
   - lens150-icon-fixes.css
   - lens151-white-buttons.css
   - lens152-seamless-icons.css
   - lens153-button-states.css
   - lens156-perfect-match.css
   - lens157-text-fix.css
   - styles.css (lines 1530-1561)
*/

/* ===== BASE TOGGLE BUTTON STYLE (INACTIVE STATE) ===== */
.toggle-option {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;
    padding: 4px 8px;
    margin: 2px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
    width: 120px;
    flex: 0 0 120px;
    display: flex;
    flex-direction: row;
    gap: 6px;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    font-size: 13px;
}

/* ===== ACTIVE STATE (GOLD BORDER) ===== */
.toggle-option.active {
    background: rgba(51, 51, 51, 0.8) !important;
    color: #ffffff !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
    transform: translateY(-1px);
}

/* ===== HOVER STATE ===== */
.toggle-option:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    transform: translateY(-1px);
}

/* ===== FOCUS STATES - NO BLUE BORDER ===== */
.toggle-option:focus,
.toggle-option:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
}

.toggle-option[data-special-type]:focus,
.toggle-option[data-special-type]:focus-visible,
.toggle-option[data-lens-type]:focus,
.toggle-option[data-lens-type]:focus-visible,
.toggle-option[data-anti-glare]:focus,
.toggle-option[data-anti-glare]:focus-visible,
.toggle-option[data-tint-type]:focus,
.toggle-option[data-tint-type]:focus-visible {
    outline: none !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
}

.toggle-option.active:focus,
.toggle-option.active:focus-visible {
    outline: none !important;
    border: 2px solid #d4af37 !important;
}

/* ===== TEXT/SPAN STYLING ===== */
.toggle-option span {
    color: #ffffff !important;
    font-weight: 600 !important;
}

.toggle-option.active span {
    color: #ffffff !important;
}

/* LENS270: Override lens157-text-fix.css dark text on active state */
.toggle-option[data-special-type].active span {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* ===== ICON CONTAINER STYLING ===== */
.toggle-icon {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
}

/* ===== IMAGE ICONS ===== */
.toggle-option img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain !important;
    padding: 5px !important;
    background: transparent !important;
}

/* ===== TRANSITIONS/MIRRORS/CLEAR SPECIFIC STYLING (STEP 3 ADD-ONS) ===== */
.toggle-option[data-special-type] {
    /* Dark theme - MUST override all white background CSS */
    background: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    border: 2px solid rgba(212, 175, 55, 0.3) !important;

    /* LENS270: Match Step 2 button height - shorter, cleaner look */
    min-width: 120px !important;
    width: 120px !important;
    height: auto !important;
    min-height: 40px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Active state for Transitions/Mirrors/Clear - LENS270: Better contrast for legibility */
.toggle-option[data-special-type].active {
    background: rgba(30, 30, 30, 0.95) !important;
    color: #ffffff !important;
    border: 2px solid #d4af37 !important;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3) !important;
    font-weight: 700 !important;
}

/* Hover state for Transitions/Mirrors */
.toggle-option[data-special-type]:hover:not(.active) {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.toggle-option[data-special-type] .toggle-icon {
    width: 60px !important;
    height: 60px !important;
    padding: 8px !important;
}

.toggle-option[data-special-type] img {
    width: 44px !important;
    height: 44px !important;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 767px) {
    .toggle-option {
        padding: 4px 12px;
        font-size: 0.85rem;
        width: 100px;
        flex: 0 0 100px;
        min-height: 24px;
    }

    .toggle-icon {
        width: 50px !important;
        height: 50px !important;
    }

    .toggle-option[data-special-type] img {
        width: 50px !important;
        height: 50px !important;
    }
}
