@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-BoldItalic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Medium.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Google Sans'; src: url('fonts/GoogleSans-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }

body {
    font-family: 'Google Sans', system-ui, sans-serif;
    margin: 0;
    padding: 0 0 90px 0;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    scroll-behavior: smooth;
}
header.from-emerald-600.to-blue-800.text-white.p-6.text-center.shadow-lg.rounded-b-xl{
    padding: .5rem !important;
}
h1{
    color: black;
}
.w-16.h-16.rounded-md.cursor-pointer.flex.items-center.justify-center.text-xs.font-bold.text-white.p-1.relative{
    font-weight: 100;
}
.font-bold{
    font-weight: 600 !important;
}
#customColorPicker {
    position: relative;
    width: 96px; 
    height: 96px; 
    border-radius: 50%;
    border: 4px solid #dddddd; 
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#baseColorPicker {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
}

#baseColorDisplay {
    width: 80px; 
    height: 80px;
    border-radius: 50%;
    background-color: #007BFF;
}
.grid-cols-auto-fill-minmax-80 {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
}
.toast {
    bottom: 100px !important;
}
span.block.px-1.py-0\.5.rounded-md{
    font-weight: 100;
}
@keyframes fade-in-out {
    0% { opacity: 0; transform: translateX(-50%) translateY(20px); }
    10% { opacity: 1; transform: translateX(-50%) translateY(0); }
    90% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}
.animate-fade-in-out {
    animation: fade-in-out 2s forwards;
}
.favorite-heart {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 1.2em;
    cursor: pointer;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
    text-shadow: 0 0 3px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
}
.color-box:hover .favorite-heart {
    opacity: 1;
    pointer-events: auto;
}
.color-box .favorite-heart.is-favorite {
    opacity: 1;
    pointer-events: auto;
}
.favorite-heart:hover {
    transform: scale(1.2);
}
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #f9fafb;
    transition: box-shadow 0.3s ease-in-out, border-radius 0.3s ease-in-out, background-color 0.3s ease-in-out;
    padding-bottom: 1.5rem;
}
header.scrolled {
    background-color: #f9fafb;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-radius: 0;
}
#scrollToTopBtn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 0.8em;
    line-height: 1;
    text-align: center;
    position: fixed;
    bottom: 6px;
    right: 6px;
    z-index: 1001;
    overflow: hidden;
}
#scrollToTopBtn .progress-text {
    font-size: 0.7em;
    margin-top: 2px;
    font-weight: bold;
}
#fixed-bottom-center-buttons {
    width: auto;
    max-width: 90%;
    box-sizing: border-box;
}

/* Mobile Filter Modal Styles */
#filterModal {
    animation: fadeIn 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    h1{
        font-size: 1rem !important;
    }
    h2{
        font-size: 1.6rem !important;
    }
    .header-content{
        flex-direction: row !important;
        gap: 13px;
    }
    .header-content .mb-4{
        margin-bottom: 0 !important;
    }
    header .controls-inner {
        flex-direction: column;
        align-items: stretch;
    }
    /* Hide desktop controls on mobile */
    #filterControlsDesktop {
        display: none !important;
    }
    /* Show mobile toggle button */
    #toggleFilterBtn {
        display: block !important;
    }
    /* Mobile filter modal content styling */
    #filterModal > div {
        width: 90%; /* Adjust width for smaller screens */
        max-width: 350px; /* Max width for consistency */
    }
    #filterModal input,
    #filterModal select,{
        width: 100%;
        margin-bottom: 0;
    }
    #fixed-bottom-center-buttons {
        flex-direction: row;
        justify-content: center;
        width: calc(100% - 24px);
        border-radius: 1.5rem;
        padding: 0.5rem;
        gap: 0.25rem;
    }
    #fixed-bottom-center-buttons button {
        flex: 1;
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
        margin-bottom: 0;
        white-space: nowrap;
    }
    #fixed-bottom-center-buttons button i {
        margin-right: 0.25rem;
    }
    body {
        padding-bottom: 90px;
    }
    #scrollToTopBtn {
        width: 40px;
        height: 40px;
        font-size: 0.7em;
        bottom: 10px;
        right: 10px;
    }
    #scrollToTopBtn .progress-text {
        display: none;
    }
}
