/* Zodiac Sign Calculator - Cosmic Styling */

body {
    background-color: #030206;
    -webkit-tap-highlight-color: transparent;
}

.apple-glass {
    background: rgba(12, 10, 18, 0.75);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

html:not(.dark) .apple-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.15);
    box-shadow: 0 10px 30px -5px rgba(139, 92, 246, 0.08);
}

.bg-subtle-grid-violet {
    background-size: 50px 50px;
    background-image:
        linear-gradient(to right, rgba(139, 92, 246, 0.015) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(139, 92, 246, 0.015) 1px, transparent 1px);
}

/* Custom Select Dropdown & Input Styling - Proper Light & Dark Mode Support */
select, .custom-select, input[type="number"] {
    background-color: rgba(18, 14, 28, 0.85);
    color: #f4f4f5;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s ease-in-out;
}

select:focus, .custom-select:focus, input[type="number"]:focus {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.35);
}

/* Option Menu Items in Dropdown Popup (Dark Mode Default) */
select option, .custom-select option {
    background-color: #161224 !important;
    color: #f4f4f5 !important;
    padding: 8px 12px;
}

/* Light Mode Overrides for Select & Option Dropdowns */
html:not(.dark) select, 
html:not(.dark) .custom-select, 
html:not(.dark) input[type="number"] {
    background-color: #ffffff !important;
    color: #18181b !important;
    border: 1px solid #ddd6fe !important;
}

html:not(.dark) select option, 
html:not(.dark) .custom-select option {
    background-color: #ffffff !important;
    color: #18181b !important;
}

html:not(.dark) select:focus, 
html:not(.dark) .custom-select:focus, 
html:not(.dark) input[type="number"]:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25) !important;
}

.custom-scroll::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
}

.zodiac-grid-item {
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.zodiac-grid-item:hover {
    transform: translateY(-2px);
    border-color: rgba(139, 92, 246, 0.2);
}

/* Sticky Right Panel for Desktop Screens */
@media (min-width: 1024px) {
    .sticky-right-panel {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 6rem !important;
        align-self: flex-start !important;
        z-index: 20;
    }
}
