.flex{
    display: flex;
}
.justify-center{
    justify-content: center;
}
.items-center{
    align-items: center;
}
.border{
    border: 2px solid red;
    margin: 3px;
}
.items-center{
    align-items: center;
}

.bg-black{
    background-color: black;
    color: white;
}

.invert{
    filter: invert(1);
}

.bg-gray{
    background-color: #121212;
}
.rounded{
    border-radius: 7px;
}
.m-1{
    margin: 5px;
}
.p-1{
    padding: 10px;
}



/* Spotify-Style Custom Scrollbars */

/* For Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
    border: 3px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:active {
    background: rgba(255, 255, 255, 0.7);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* For Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

/* Dark theme variant (for dark background areas) */
.dark-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border: 3px solid transparent;
    background-clip: padding-box;
}

.dark-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

.dark-scrollbar::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.7);
}

.dark-scrollbar {
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

/* Thin variant for smaller elements */
.thin-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background-clip: padding-box;
}

.thin-scrollbar {
    scrollbar-width: thin;
}

/* Hide scrollbar but keep functionality */
.hide-scrollbar {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;     /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Horizontal scrollbar specific styling */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
}

.horizontal-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom scrollbar for specific containers */
.playlist-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 185, 84, 0.5) rgba(255, 255, 255, 0.1);
}

.playlist-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

.playlist-scroll::-webkit-scrollbar-thumb {
    background: rgba(29, 185, 84, 0.5);
}

.playlist-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 185, 84, 0.7);
}

/* For sidebar navigation */
.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 8px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}