/* Break-Even Calculator Custom Styling */

.apple-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark .apple-glass {
    background: rgba(18, 18, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

.text-glow {
    text-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.dark .text-glow {
    text-shadow: 0 0 35px rgba(16, 185, 129, 0.35);
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
    transition: transform 0.15s ease-in-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Form input focus styling in light theme */
html:not(.dark) input[type="number"],
html:not(.dark) select {
    background-color: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

html:not(.dark) .apple-glass {
    background-color: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Desktop Sticky Container Alignment */
@media (min-width: 1024px) {
    .lg\:sticky {
        top: 6rem;
    }
}

/* Mode Tab Buttons & Active Selected State Styling */
.mode-tab-btn {
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.mode-tab-btn:hover {
    color: #0f172a;
}

.dark .mode-tab-btn {
    color: #9ca3af;
}

.dark .mode-tab-btn:hover {
    color: #ffffff;
}

/* Selected Active Tab: High-Contrast Background, Accent Text & Distinct Border */
.mode-tab-btn.active-mode-btn {
    background: #ffffff !important;
    color: #059669 !important;
    border: 1px solid #10b981 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.18) !important;
}

.dark .mode-tab-btn.active-mode-btn {
    background: rgba(16, 185, 129, 0.18) !important;
    color: #34d399 !important;
    border: 1px solid rgba(16, 185, 129, 0.45) !important;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.28) !important;
}
