/* Scrollbar Fix for Favorites Panel */

/* Force scrollbar on favorites list with high specificity */
.favorites-panel .favorites-panel-content #favoritesList {
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    max-height: calc(100vh - 400px) !important;
    position: relative;
}

/* Ensure parent containers allow scrolling */
.favorites-panel .favorites-panel-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

/* Make sure the favorites list takes remaining space */
.favorites-panel #favoritesList {
    flex: 1 1 auto;
    min-height: 0;
}

/* Always show scrollbar for debugging */
.favorites-panel #favoritesList::-webkit-scrollbar {
    width: 10px !important;
    display: block !important;
}

.favorites-panel #favoritesList::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 5px !important;
}

.favorites-panel #favoritesList::-webkit-scrollbar-thumb {
    background: #4CAF50 !important;
    border-radius: 5px !important;
}

.favorites-panel #favoritesList::-webkit-scrollbar-thumb:hover {
    background: #45a049 !important;
}

/* Ensure content inside can scroll */
.favorites-panel #favoritesList > * {
    position: relative;
}

/* Firefox scrollbar */
.favorites-panel #favoritesList {
    scrollbar-width: thin;
    scrollbar-color: #4CAF50 #f1f1f1;
}