/* Attendance 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(228, 228, 231, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

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

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.2);
}

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

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