/* MozExpress Global Styles */

/* Remixicon fix */
:where([class^="ri-"])::before { 
    content: "\f3c2"; 
}

/* Mobile-first responsive layout */
html {
    background-color: #e5e7eb; /* Gray background for desktop */
    display: flex;
    justify-content: center;
}

body {
    max-width: 375px;
    width: 100%;
    min-height: 100vh;
    background-color: #ffffff;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1); /* Subtle shadow for desktop */
    overflow-x: hidden;
}

/* Constrain fixed elements to mobile width and center them */
nav.fixed,
.fixed.top-0,
.fixed.bottom-0 {
    max-width: 375px;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Constrain floating buttons to mobile width */
.fixed.bottom-20 {
    left: auto !important;
    right: calc(50% - 375px/2 + 1rem) !important;
}

@media (max-width: 375px) {
    nav.fixed,
    .fixed.top-0,
    .fixed.bottom-0 {
        left: 0 !important;
        transform: none !important;
    }
    
    .fixed.bottom-20 {
        right: 1rem !important;
    }
}

/* Remove spinner from number inputs */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/* Page container for SPA-style navigation */
.page-container {
    display: none;
}

.page-container.active {
    display: block;
}

/* Filter dropdown */
.filter-dropdown {
    display: none;
}

.filter-dropdown.active {
    display: block;
}

/* Sort option */
.sort-option.active {
    background-color: #2563eb;
    color: white;
}

/* Filter active state */
.filter-active {
    background-color: #2563eb !important;
    color: white !important;
}

/* Sort active state */
.sort-active {
    background-color: #2563eb !important;
    color: white !important;
}

/* Range input styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    background: #2563eb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input[type="range"]::-moz-range-track {
    background: #e5e7eb;
    height: 4px;
    border-radius: 2px;
    border: none;
}

input[type="range"]::-moz-range-thumb {
    background: #2563eb;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}
