/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: #D4C5A5;
    color: #2A231C;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FAF6EE;
}

::-webkit-scrollbar-thumb {
    background: #D4C5A5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B7355;
}

/* Hide number input spinners */
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;
}

/* Fade-in animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* Details/Summary reset */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

/* Smooth details open */
details[open] > :not(summary) {
    animation: fadeInUp 0.3s ease-out;
}
