/* Global Styles for Verdji - Sustainable Platform */

/* Mobile container emulation for desktop screens */
body {
    background-color: #1f2937;
}

.mobile-container {
    max-width: 428px;
    margin: 0 auto;
    background-color: #f9fafb;
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

/* Fixed nav bars should respect mobile container width */
.mobile-container nav.fixed {
    max-width: 428px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fixed bottom elements should also respect mobile container width */
.mobile-container .fixed.bottom-0 {
    max-width: 428px;
    left: 50%;
    transform: translateX(-50%);
}

/* Fixed notifications should respect mobile container width */
.mobile-container .notification.fixed {
    max-width: 428px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
}

@media (max-width: 428px) {
    .mobile-container nav.fixed {
        left: 0;
        transform: none;
    }
    
    .mobile-container .fixed.bottom-0 {
        left: 0;
        transform: none;
    }
    
    .mobile-container .notification.fixed {
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
    }
}

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

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

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

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
}

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

input[type="range"]::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background: #10b981;
    cursor: pointer;
    border: none;
}

/* Dropdown styles */
.dropdown-custom {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-option {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f3f4f6;
}

.dropdown-option:hover {
    background-color: #f9fafb;
}

.dropdown-option:last-child {
    border-bottom: none;
}

/* Photo grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.photo-item {
    aspect-ratio: 1;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f3f4f6;
}

.photo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    background-color: #f9fafb;
}

.photo-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Segment control */
.segment-control {
    background-color: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    display: flex;
}

.segment-option {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.segment-option.active {
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
