/* Marks Percentage Calculator Custom Styling */

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

.dark .apple-glass {
    background: rgba(18, 18, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.text-glow {
    text-shadow: 0 0 25px rgba(244, 63, 94, 0.2);
}

.dark .text-glow {
    text-shadow: 0 0 35px rgba(244, 63, 94, 0.4);
}

/* Mode tab buttons styling */
.mode-tab-btn {
    background-color: rgba(244, 63, 94, 0.05);
    border-color: rgba(244, 63, 94, 0.15);
    color: #475569;
}

.dark .mode-tab-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
}

.mode-tab-btn:hover {
    color: #0f172a;
    background-color: rgba(244, 63, 94, 0.1);
}

.dark .mode-tab-btn:hover {
    color: #ffffff;
    border-color: rgba(244, 63, 94, 0.3);
}

.mode-tab-btn.active {
    background-color: #f43f5e !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
}

/* Thin Range Slider Styling */
.thin-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px !important;
    border-radius: 9999px;
    background: #e4e4e7;
    outline: none;
}

.dark .thin-slider {
    background: rgba(255, 255, 255, 0.1);
}

.thin-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f43f5e;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
    transition: transform 0.15s ease-in-out;
}

.thin-slider::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Form input focus styling in light & dark theme */
html:not(.dark) input[type="number"],
html:not(.dark) input[type="text"],
html:not(.dark) select {
    background-color: #ffffff !important;
    border-color: #d4d4d8 !important;
    color: #09090b !important;
}

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