/* Percentage to CGPA 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(244, 63, 94, 0.25);
}

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

/* Custom Scrollbar for Lookup Table */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(244, 63, 94, 0.3);
    border-radius: 8px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(244, 63, 94, 0.6);
}

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

.dark input[type="range"] {
    background: rgba(255, 255, 255, 0.15);
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f43f5e;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(244, 63, 94, 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;
}

/* Mode Selector Buttons */
.cgpa-mode-btn {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #a1a1aa;
    transition: all 0.2s ease-in-out;
}

html:not(.dark) .cgpa-mode-btn {
    background-color: #f4f4f5;
    border: 1px solid #e4e4e7;
    color: #475569;
}

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

html:not(.dark) .cgpa-mode-btn:hover {
    color: #e11d48;
    background-color: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.3);
}

.cgpa-mode-btn.active {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    border-color: rgba(244, 63, 94, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.35);
}

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