body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: url('background4.jpg');
    overflow-x: hidden; /* Prevents horizontal scrollbar */
    scrollbar-width: none; /* Firefox - hides scrollbar */
    -ms-overflow-style: none;  /* IE and Edge - hides scrollbar */
}

body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera - hides scrollbar */
}

::-webkit-scrollbar-track {
    background: #cbd5e0; /* light gray */
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #4a5568; /* darker gray */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2d3748; /* even darker gray */
}

/* Chevron transition for collapse/expand */
.chevron {
    transition: transform 0.2s ease-in-out;
}

.chevron.collapsed {
    transform: rotate(-90deg);
}

/* Collapsed section styling */
.section-collapsed {
    padding: 1rem 1rem;
    transition: padding 0.2s ease-in-out;
}

/* About dialog styling */
#about-dialog,
#custom-spell-dialog,
#custom-item-dialog {
    display: none;
    max-height: 80vh;
    overflow-y: auto;
}

#about-dialog.open,
#custom-spell-dialog.open,
#custom-item-dialog.open {
    display: flex; /* Use flex to ensure centering */
}