/* Root Variables */
:root {
    --digit-count: 6;
    --separator-count: 2;
    --ui-height: 80px;
    --digit-border-radius: 15px;
    --clock-width: 98vw;
    --clock-height: 70vh;
    --inner-shadow-color: rgba(0, 0, 0, 0.6);
    --transition-timing: cubic-bezier(0.4, 0.0, 0.2, 1);
    --min-digit-width: 50px;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    
}

h2 {
	color:white;
}

@import url('https://fonts.googleapis.com/css2?family=Abril+Fatface&display=swa');

/* Title overlay styles */
/* Base title styles with correct layout */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.title-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Abril Fatface', serif;
    font-size: 7vw;
    opacity: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: opacity 0.5s ease-out;
    padding: 0 2em;
    color: #bf9b30;
    
    /* Shine effect */
    background: linear-gradient(
        -45deg,
        #bf9b30 10%,
        #fff 18%,
        #bf9b30 26%
    );
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-fill-color: transparent;
    animation: shine 8s ease-in-out infinite;
}

@keyframes shine {
    0% {
        background-position: 400% 50%;
    }
    100% {
        background-position: -400% 50%;
    }
}

.title-overlay.visible {
    animation: 
        fadeIn 2s ease-out forwards,
        shine 8s ease-in-out infinite;
}

.title-overlay.visible {
    opacity: 1;
}

/* Art Deco decorative lines */
/* Art Deco decorative lines */
.title-overlay::before,
.title-overlay::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 1.5em;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent,
        #bf9b30,
        transparent
    );
    transform: translateY(-50%);
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.title-overlay::before {
    left: 0;
}

.title-overlay::after {
    right: 0;
}

/* Animation keyframes */
@keyframes borderRotate {
    100% {
        --angle: 450deg;
    }
}

@keyframes shine {
    0% {
        background-position: 400% 50%;
    }
    100% {
        background-position: -400% 50%;
    }
}

/* Animation support */
@supports (background: paint(houdini)) {
    .clock.loading {
        animation: borderRotate var(--border-duration) linear infinite;
    }
}

.title-overlay.visible {
    opacity: 1;
}
/* Hide separators during title display */
.clock.showing-title .separator {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show separators after title */
.clock:not(.showing-title) .separator {
    opacity: 1;
}

/* Ensure digits are hidden during title */
.clock.showing-title .digit-container {
    opacity: 0;
}

/* Smooth transition for digits */
.digit-container {
    transition: opacity 0.3s ease;
}


#filterCount {
    text-align: left;
    display: block;
    margin-top: 0.25rem; /* Small gap from heading */
    margin-bottom: 0.5rem; /* Space before the content below */
    color: rgba(255, 255, 255, 0.7); /* Optional: makes the count slightly subdued */
}

.hide-seconds {
    --digit-count: 4;
    --separator-count: 1;
}

.hide-seconds .separator:last-child,
.hide-seconds .digit-container:nth-last-child(-n+2) {
    width: 0;
    padding: 0;
    margin: 0;
    opacity: 0;
    pointer-events: none;
    position: absolute;
}


/* Base Layout */
body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    background-color: #000;
    font-family: 'Chakra Petch', sans-serif;
    user-select: none;
    overflow-y: auto;
}

label {
    color: white; 
    
}

.set-thumbnail {
    width: 100%;
    height: auto;
}

.set-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* Controls close button styles */
.controls-close-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: rotate(0deg);
    transition: all 0.3s var(--transition-timing),
                opacity 0.3s var(--transition-timing),
                transform 0.3s var(--transition-timing);
    z-index: 1001;
}

.controls > .controls-close-btn {
	top: 10px;
    right: 10px;
	}


.controls-group.active .controls-close-btn {
    opacity: 1;
}

.controls-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Remove or update the old class name */
.close-controls-btn {
    display: none; /* Or remove this class entirely from your CSS */
}

/* Add animation for button when controls are hidden */
.hide-ui .controls-close-btn {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Add animation for button when controls are hidden */
.controls-group:not(.active) .controls-close-btn {
    transform: rotate(-90deg);
    opacity: 0;
}

/* Controls and Main Layout */
.controls {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    /* Set initial state to hidden */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-20px);
    transition: 
        opacity 0.4s var(--transition-timing),
        transform 0.4s var(--transition-timing),
        visibility 0.4s var(--transition-timing),
        backdrop-filter 0.4s var(--transition-timing);
	pointer-events: none;
}

.controls.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
	pointer-events: auto;
}

.main-container,
.setlist-container,
.filter-container,
.gallery-container {
    opacity: 0;
    transform: translateY(-10px);
    transition: 
        opacity 0.4s var(--transition-timing),
        transform 0.4s var(--transition-timing);
}

/* Show child elements when controls are visible */
.controls.visible .main-container,
.controls.visible .setlist-container,
.controls.visible .filter-container,
.controls.visible .gallery-container {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure controls group starts hidden */
.controls-group {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
    transition: 
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;
}

/* Only show when explicitly activated */
.controls-group.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: all;
}




.loading-content {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 100001;
}

.spinner {
    width: 48px;
    height: 48px;
    position: relative;
    flex-shrink: 0;
}

.spinner-ring {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    border: 4px solid #333;
    border-top-color: #bf9b30;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: white;
}

.loading-message {
    font-size: 1.125rem;
    font-weight: 500;
    margin: 0;
}

.loading-progress {
    font-size: 0.875rem;
    color: #999;
    margin: 0;
}

/* Add the spin animation if it's not already defined */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Main Container Layout */
.main-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    overflow: hidden;
    width: calc(100% - 40px); /* Account for padding */
    max-width: 100%;
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Move the spacing to padding instead of margin */
    box-sizing: border-box;
    opacity: 1;
    transform: translateY(0);
    transition: 
        opacity 0.4s var(--transition-timing),
        transform 0.4s var(--transition-timing);
    transition-delay: 0.1s;
}

.setlist-container { transition-delay: 0.15s; }
.filter-container { transition-delay: 0.2s; }
.gallery-container { transition-delay: 0.25s; }


/* Filter Section */
.filter-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.gallery-wrapper {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 0px;
    margin-top: 30px; /* Space between setlist and gallery */
}

/* Top row with title/counter and Add All button */
.gallery-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.gallery-header h2 {
    margin-bottom: 0.25rem;
}

.gallery-header .filter-counter {
    margin: 0;
    margin-bottom: 1rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.7);
}

.gallery-header .filter-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0px;
}

/* Update gallery container to remove redundant styling */
.gallery-container {
    flex: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.sets-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
    /* Update scrolling properties */
    max-height: calc(100vh - 500px); /* Adjust based on your header height */
    overflow-y: auto;
    /* Add padding at bottom to ensure last row is visible */
    padding-bottom: 40px;
}

/* Setlist Section */
.setlist-container {
    flex: 0 0 auto;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0px;
    margin-bottom: 20px;
}


/* Set Preview styles within setlist */
.setlist-content .set-preview {
    flex: 0 0 auto; /* Don't grow or shrink, keep original size */
    width: 200px; /* Set a fixed width */
    margin: 0; /* Remove any auto margins */
}

.preview-scroll .set-preview {
    flex: 0 0 auto; /* Don't grow or shrink, keep original size */
    width: 200px; /* Set a fixed width */
    margin: 0; /* Remove any auto margins */
}

@supports not (backdrop-filter: blur(8px)) {
    .setlist-content {
        background: rgba(210, 105, 30, 0.2);
    }
}



@supports not (backdrop-filter: blur(8px)) {
    .setlist-content {
        background: rgba(210, 105, 30, 0.2); /* Slightly more opaque fallback */
    }
}





/* Scrollbar Styling */
.sets-container::-webkit-scrollbar {
    width: 8px;
}

.sets-container::-webkit-scrollbar-track {
    background: transparent;
}

.sets-container::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.sets-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
}

/* Add some bottom margin to the last row of sets */
/* .set-preview:last-child {
    margin-bottom: 16px;
} */



/* Hide UI Animation States */
.hide-ui .controls {
    opacity: 0;
    transform: translateY(-20px);
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.hide-ui .main-container {
    opacity: 0;
    transform: translateY(-10px);
}

.hide-ui .setlist-container,
.hide-ui .filter-container,
.hide-ui .gallery-container {
    opacity: 0;
    transform: translateY(-10px);
}

.hide-ui .close-controls-btn {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Clock Styles */
.clock-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: var(--clock-width);
    height: var(--clock-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding-bottom: 30px; /* Add space for progress bar */
}

/* Custom properties for the animation */
@property --angle {
  syntax: '<angle>';
  initial-value: 90deg;
  inherits: true;
}

@property --gradX {
  syntax: '<percentage>';
  initial-value: 50%;
  inherits: true;
}

@property --gradY {
  syntax: '<percentage>';
  initial-value: 0%;
  inherits: true;
}

/* Animation variables */
:root {
  --border-duration: 2500ms;
  --angle: 90deg;
  --border-color: #bf9b30;
}


.clock {
    /* Keep existing styles */
    display: flex;
    gap: 1vw;
    align-items: center;
    justify-content: center;
    width: 100%;
    transition: all 0.3s var(--transition-timing);
    z-index: 1;
    padding: 8px;
	border: 4px solid transparent;
    transition: none; 
}

.clock.loading {
    border: 4px solid;
    border-radius: 15px;
    border-image: conic-gradient(
        from var(--angle),
        rgba(210, 105, 30, 0) 0%,
        #bf9b30 5%,
        #bf9b30 7%,
        rgba(210, 105, 30, 0) 9%
    ) 30;
    animation: borderRotate var(--border-duration) linear infinite;
    transition: border-image 1s ease-out;
}

.clock.loading.fade-out {
    border-image: conic-gradient(
        from var(--angle),
        rgba(210, 105, 30, 0) 0%,
        rgba(210, 105, 30, 0) 5%,
        rgba(210, 105, 30, 0) 7%,
        rgba(210, 105, 30, 0) 9%
    ) 30;
}

/* Default state - no border */
.clock:not(.loading) {
    border: 4px solid transparent;
}

/* Smooth fade for border */
.clock {
    border: 4px solid transparent;
    transition: border 1s ease-out;
}


/* Define the border rotation animation */
@keyframes borderRotate {
    100% {
        --angle: 420deg;
    }
}

/* Placeholder styles */
.digit.placeholder {
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Ensure digits container can handle absolute positioning */
.digit-container {
    position: relative;
    overflow: hidden;
}

/* Maintain existing animation classes but ensure they work with placeholders */
.digit.push-down.old.placeholder,
.digit.push-up.old.placeholder,
.digit.push-left.old.placeholder,
.digit.push-right.old.placeholder {
    transition: transform 0.5s var(--transition-timing);
}



/* Digit Container Styles */
.digit-container {
    flex: 1;
    min-width: var(--min-digit-width);
    max-width: calc((100% - (var(--separator-count) * 1vw)) / var(--digit-count));
    position: relative;
    overflow: hidden;
    border-radius: var(--digit-border-radius);
    box-shadow: 
        inset 0 0 10px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(0, 0, 0, 0.6),
        inset 0 0 30px rgba(0, 0, 0, 0.4);
    background-color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s var(--transition-timing);
}

.digit-container::before {
    content: '';
    display: block;
    padding-top: 117.1875%;
}

.digit {
    position: absolute;
    top: -2px;
    left: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    transition: transform 0.5s var(--transition-timing);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    box-shadow: none;
}

.digit-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    background: linear-gradient(-135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.00) 40%);
    border-radius: var(--digit-border-radius);
    box-shadow: 
        inset 0 2px 5px rgba(0, 0, 0, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.5);
}

/* Separator Styling */
.separator {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    cursor: pointer;
    opacity: 0; /* Start hidden */
    transition: opacity 0.8s ease; /* Smooth fade in */
}

.separator svg {
    width: 2vw;
    height: 8vw;
}

.separator rect {
    fill: none;
    stroke: #bf9b30;
    stroke-width: 1;
    rx: 4px; /* Rounded corners */
    filter: drop-shadow(0 0 2px rgba(191,155,48,0.7));
    animation: glowPulse 2s infinite;
    opacity: inherit; /* Inherit opacity from parent */
}

/* Updated glow pulse animation with golden color */
@keyframes glowPulse {
    0% { 
        stroke: #bf9b30;
        filter: drop-shadow(0 0 2px rgba(191,155,48,0.3));
    }
    50% { 
        stroke: rgba(191,155,48,0.3);
        filter: drop-shadow(0 0 0px rgba(191,155,48,0));
    }
    100% { 
        stroke: #bf9b30;
        filter: drop-shadow(0 0 2px rgba(191,155,48,0.7));
    }
}

.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}

.gallery-header-left {
    flex: 1;
}

.gallery-header-left h2 {
    margin: 0 0 4px 0;
    color: #ffffff;
}

.gallery-header-right {
     flex-shrink: 0;
    padding-top: 4px; /* Align with title */
}

.add-all-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(191, 155, 48, 0.2);
    border: 1px solid rgba(191, 155, 48, 0.3);
    border-radius: 8px;
    color: #bf9b30;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s var(--transition-timing);
}

.add-all-button:hover {
    background: rgba(191, 155, 48, 0.3);
    transform: translateY(-1px);
}

.add-all-button:disabled {
    opacity: 0.5;
    pointer-events: none;
    transform: none;
}

.add-all-button svg {
    flex-shrink: 0;
}

    .add-all-button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

.gallery-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 20px;
}
    



/* Gallery and Setlist Styles */
.gallery-container {
    flex: 1;
    width: 100%;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    margin-bottom: 0;
}

.sets-container {
    display: grid;
    /* Use auto-fit instead of auto-fill to ensure full width usage */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}

/* Set Preview Base Styles */


.sets-container .set-preview {
    animation: fadeInUp 0.4s var(--transition-timing) backwards;
}

/* Stagger the animations for each preview */
.sets-container .set-preview:nth-child(n) {
    animation-delay: calc(0.05s * var(--i, 0));
}

/* Ensure smooth scrolling */
.sets-container {
    scroll-behavior: smooth;
}

/* Backdrop animation */
@supports (backdrop-filter: blur(5px)) {
    .controls {
        background-color: rgba(0, 0, 0, 0.85);
    }
    
    .hide-ui .controls {
        background-color: rgba(0, 0, 0, 0);
    }
}

/* Base skeleton animation */
@keyframes skeletonPulse {
    0% { 
        background-position: 100% 50%;
    }
    100% { 
        background-position: -100% 50%;
    }
}

/* Skeleton styles for set preview */
.set-preview.skeleton {
    background: rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

/* Skeleton thumbnail */
.set-preview.skeleton .set-thumbnail {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
}

.set-preview.skeleton .set-thumbnail img {
    opacity: 0;
}

/* Skeleton title */
.set-preview.skeleton .set-title {
    width: 80%;
    height: 14px;
    margin: 10px auto;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: skeletonPulse 1.5s ease-in-out infinite;
    border-radius: 4px;
}

/* Hide actual content while in skeleton state */
.set-preview.skeleton .set-title span {
    opacity: 0;
}

/* Hide buttons in skeleton state */
.set-preview.skeleton .status-button,
.set-preview.skeleton .remove-set-button {
    display: none;
}

/* Add subtle scale animation to active elements */
.set-preview:hover,
.tag-button:hover,
.close-controls-btn:hover {
    transform: scale(1.02);
}

/* Enhance scrollbar animation */
.sets-container::-webkit-scrollbar-thumb {
    transition: background-color 0.3s var(--transition-timing);
}

.sets-container:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.4);
}


.set-preview:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.set-preview.current {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #bf9b30;
}

.preview-digits {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
    width: 100%;
}

.preview-digit {
    width: 30px;
    height: 35px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.preview-digit-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.set-title {
    font-size: 14px;
    color: white;
    text-align: center;
    margin-top: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Remove Button Styles */
.remove-set-button {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    z-index: 2;
}

.gallery-container .remove-set-button {
    opacity: 0;
}

.gallery-container .set-preview:hover .remove-set-button {
    opacity: 1;
}

.setlist-content .remove-set-button {
    opacity: 1;
}

.remove-set-button:hover {
    color: #ff4444;
    transform: scale(1.1);
}

.remove-set-button svg {
    pointer-events: none;
}

/* Setlist Specific Styles */

.setlist-content {
    position: relative;
    display: flex !important; /* Override any other display properties */
    flex-wrap: nowrap !important; /* Prevent wrapping */
    align-items: center;
    gap: 20px;
    padding: 0px 50px 12px 50px; /* Added horizontal padding for navigation buttons */
    border-radius: 12px;
    background: rgba(210, 105, 30, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 148px;
    border: 2px dotted #bf9b30;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

    overflow-x: auto; /* Enable horizontal scrolling */
    overflow-y: hidden; /* Prevent vertical scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-behavior: smooth; /* Smooth scrolling */
}



.setlist-scroll::-webkit-scrollbar {
    display: none;
}

.setlist-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    transition: all 0.2s ease;
}




.setlist-nav-button:not(:disabled):hover {
    background: #f0f0f0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.setlist-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    box-shadow: none;
}

.setlist-nav-button.prev {
    left: 8px;
}

.setlist-nav-button.next {
    right: 8px;
}

.setlist-nav-button svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    stroke: currentColor;
}

.setlist-scroll {
    display: flex;
    gap: 20px;
    padding: 0 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    min-height: 120px; /* Adjust based on your content height */
}

.setlist-scroll::-webkit-scrollbar {
    display: none;
}



/* Hide scrollbar for Chrome, Safari and Opera */
.setlist-content::-webkit-scrollbar {
    display: none;
}

/* Navigation Buttons */
.setlist-content::before,
.setlist-content::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(210, 105, 30, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.setlist-content::before {
    left: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 18l-6-6 6-6'/%3E%3C/svg%3E");
}

.setlist-content::after {
    right: 10px;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 18l6-6-6-6'/%3E%3C/svg%3E");
}

.setlist-content::before:hover,
.setlist-content::after:hover {
    background-color: rgba(210, 105, 30, 0.3);
}

/* Set Preview in Setlist */
.setlist-content .set-preview {
    flex: 0 0 200px; /* Fixed width, no growing or shrinking */
    margin-top: 16px;
}

/* Empty State */
.setlist-empty {
    width: 100%;
	font-size:18px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
}

/* Container for setlist controls */
.setlist-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Base button styles */
.setlist-button {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-timing);
    border: 2px solid transparent;
}




.setlist-button.clear {
    background-color: transparent;
    color: #bf9b30;
    border: 2px solid #bf9b30;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-timing);
}

.setlist-button.clear:hover {
    background-color: rgba(210, 105, 30, 0.1);
    border-color: rgba(210, 105, 30, 0.7);
    transform: translateY(-1px);
}

.setlist-button.apply {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px; /* Prevent size change when switching to loading */
    background-color: #bf9b30;
    color: black;
    border: 2px solid #bf9b30;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--transition-timing);
}


.setlist-button.apply:hover {
    background-color: #bf9b30;
    transform: translateY(-1px);
}

/* Disabled state for both buttons */
.setlist-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.setlist-button.apply.loading {
    cursor: wait;
    opacity: 0.8;
}

.setlist-button.apply.loading .button-text {
    visibility: hidden;
}

.setlist-button.apply .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    display: none;
}

.setlist-button.apply.loading .spinner {
    display: block;
}

.setlist-button.apply .spinner::after {
    content: '';
    width: 16px;
    height: 16px;
    position: absolute;
    top: 0;
    left: 0;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: rotate 0.6s linear infinite;
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}


.filter-header {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
    /* flex-wrap: wrap; */
    justify-content: flex-start;
}

/* Common styles for both Type and Style sections */
.filter-group, .tag-group {
    h3 {
        color: #bf9b30;
        font-size: 14px;
        margin: 0 0 10px 0;
		flex: 0 1 auto;
		margin-bottom: 10px;
    }
}

.tag-group {
    /* Remove any flex-grow if it exists */
    flex: 0 1 auto; /* Don't grow, can shrink, auto basis */
    /* This will ensure it starts right after filter-group */
    margin-left: 0; /* Remove any margin if exists */
}


.text-left {
    text-align: left;
}


.filter-group h3, .tag-group h3 {
    color: #bf9b30;
    font-size: 14px;
    margin: 0 0 10px 0;
}

.filter-group {
    display: flex; /* Changed to flex to allow column layout */
    flex-direction: column; /* Stack children vertically */
    flex: 0 0 auto;
}




.filter-options {
    display: flex;
    gap: 15px;
    margin-bottom: 15px; /* Add some space below the options */
}

.tag-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
}

.tag-button {
	padding: 4px 12px;
    background: #333;
    border: 1px solid #666;
    border-radius: 15px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.tag-button:hover {
    background: #444;
}

.tag-button.active {
    background: #bf9b30;
    border-color: #bf9b30;
}

.filter-counter {
    margin-left: auto;
}





/* Controls group layout */
/* Adjust controls-group positioning */
.controls-group {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 90vw;
    max-height: 80vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px 24px;
    z-index: 998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(191, 155, 48, 0.3);
}

.controls-group.active {
    bottom: 0px; /* Increased to make room for chevron */
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.controls-container
 {
    display:flex;
}
/* Buttons container */
.controls-buttons {
    display: flex;
    align-items: baseline;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Preview gallery styles */
.preview-gallery {
    width: 100%;
    position: relative;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px 0;
}

.preview-scroll {
    display: flex;
    gap: 20px;
    padding: 0 48px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    min-height: 120px;
}


.preview-scroll::-webkit-scrollbar {
    display: none;
}



.preview-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preview-nav-button.prev {
    left: 8px;
}

.preview-nav-button.next {
    right: 8px;
}

.preview-nav-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
	box-shadow: none;
}

.preview-nav-button svg {
    width: 20px;
    height: 20px;
}

/* Set preview styles within preview gallery */
.setlist-preview-gallery .set-preview {
    flex: 0 0 200px;
}

/* Empty state */
.preview-empty {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    font-size: 14px;
}

/* Remove cursor pointer from clock elements */
.separator,
.digit-container {
    cursor: default !important;
}

/* Ensure controls stay above chevron */
.controls-group {
    z-index: 998;
}

.chevron-button {
    z-index: 999;
}

/* Add smooth transition for controls visibility */
.controls-group {
    transition: 
        bottom 0.4s var(--transition-timing),
        opacity 0.3s var(--transition-timing);
    opacity: 0;
}

.controls-group.active {
    opacity: 1;
}

.style-filter {
    min-width: 200px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: white;
    font-size: 14px;
}

.style-filter option {
    padding: 4px;
    font-size: 14px;
}
.sets-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}



.select-container .sets-header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 4px;
}

.select-container .sets-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.select-container .sets-controls select {
    flex: 1;
}

.edit-sets-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.edit-sets-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #bf9b30;
}

.edit-sets-btn:active {
    background: rgba(0, 0, 0, 0.2);
}

.edit-sets-btn svg {
    display: block;
}

/* Adjust spacing when controls are active */
.chevron-button {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    border: 1px solid rgba(191, 155, 48, 0.3);
    color: #bf9b30;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
}

.chevron-button svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.chevron-button:hover {
    background: rgba(0, 0, 0, 0.5);
}

.chevron-button:hover svg {
    opacity: 1;
}

.chevron-button.hidden {
    opacity: 0; /* Fade out */
    pointer-events: none; /* Prevent interaction while hidden */
    transform: translateX(-50%) translateY(20px); /* Slight downward shift while hidden */
}

/* Update the active state positioning */
.chevron-button.active {
    transform: translateX(-50%) translateY(-280px);
	bottom:40px;
	background: #bf9b30; /* Solid golden background */
    border-color: #bf9b30;
    color: rgba(0, 0, 0, 0.3); /* Make the chevron semi-transparent */
    transform: translateX(-50%) translateY(-290px);
}

.chevron-button.active svg {
    transform: scaleY(-1);
     color: black;
}

/* Ensure chevron stays visible */
body.hide-ui .chevron-button {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Close Button */
.close-controls-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transform: rotate(0deg);
    transition: 
        all 0.3s var(--transition-timing),
        opacity 0.3s var(--transition-timing),
        transform 0.3s var(--transition-timing);
    z-index: 1001;
}

.close-controls-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Animations */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Digit Transitions */
.digit.new { transform: translateY(-100%); }
.digit.current { transform: translateY(0) translateX(0); }
.digit.old { transform: translateY(100%); }

.digit.push-up.new { transform: translateY(100%); }
.digit.push-up.old { transform: translateY(-100%); }

.digit.push-left.new { transform: translateX(100%); }
.digit.push-left.old { transform: translateX(-100%); }

.digit.push-right.new { transform: translateX(-100%); }
.digit.push-right.old { transform: translateX(100%); }

.digit.slow-transition {
    transition: transform 1s var(--transition-timing);
}

/* Madness Mode Styles */
.clock.madness .digit-container {
    animation: shake 0.5s infinite;
    will-change: transform;
}

/* Remove transitions during madness mode */
.clock.madness .digit {
    transition: none !important; 
    transform: none !important;
}

/* Define shake animation */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}


/* Base Set Preview Styles */
.set-preview {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 230px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 15px;
    box-sizing: border-box;
    cursor: pointer;
    opacity: 1;
    transform: translateY(0);
    transition: 
        all 0.3s var(--transition-timing),
        opacity 0.3s var(--transition-timing),
        transform 0.3s var(--transition-timing);
}

/* Preview Content */
.preview-digits {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    justify-content: center;
    width: 100%;
    transition: opacity 0.2s var(--transition-timing);
}

.set-title {
    font-size: 14px;
    color: white;
    text-align: center;
    margin: 10px 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    transition: color 0.2s var(--transition-timing);
}

/* Status Indicators (for Setlist) */
.status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 5px;
    transition: all 0.2s var(--transition-timing);
}

.status-indicator.current {
    background: rgba(39, 174, 96, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.status-indicator.current::before {
    content: '';
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
    animation: pulse 2s infinite;
    margin-right: 4px;
}

.play-button {
    display: none;
}

/* Action Buttons */
.status-button,
.remove-set-button{
    position: absolute;
    top: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s var(--transition-timing);
    opacity: 0;
    cursor: pointer;
    border: 1px solid;
}

/* Add/Status Button */
.status-button {
    right: 10px;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

/* Remove Button */
.remove-set-button {
    right: -12px;
	top: -12px;
    background: rgba(255, 59, 48, 0.2);
    border-color: rgba(255, 59, 48, 0.3);
    color: #ff3b30;
}

/* Play Button */
.play-button {
    right: 40px;
    background: rgba(39, 174, 96, 0.15);
    border-color: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
}

/* Button States */
.set-preview .set-title {
    font-size: 14px;
    color: white;
    text-align: center;
    margin: 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}



.set-preview:hover .remove-set-button,
.set-preview:hover .play-button {
    opacity: 1;
}

.status-button:hover,
.remove-set-button:hover,
.play-button:hover,
.play-button.selected {
    transform: scale(1.1);
    background: rgba(39, 174, 96, 0.3);
}

.remove-set-button:hover {
    background: rgba(255, 59, 48, 0.3);
}

/* Selected States */
.set-preview.in-setlist .status-button {
    opacity: 1;
    background: rgba(39, 174, 96, 0.2);
    border-color: rgba(46, 204, 113, 0.3);
    color: #2ecc71;
    pointer-events: none;
}

.play-button.selected {
    opacity: 1;
}

/* Preview Hover Effects */
.set-preview:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

/* In setlist State */
.set-preview.in-setlist {
    background: rgba(39, 174, 96, 0.1);
    border: 1px solid rgba(46, 204, 113, 0.2);
    opacity: 0.8;
	margin-top:15px;
}

.set-preview.in-setlist:hover {
    transform: none;
    background: rgba(39, 174, 96, 0.12);
}

.set-preview.in-setlist .preview-digits {
    opacity: 0.7;
}

.set-preview.in-setlist .set-title {
    color: rgba(255, 255, 255, 0.7);
}

/* Current Set State */
.set-preview.current {
    background: rgba(33, 150, 243, 0.2);
    border: 1px solid #bf9b30;
}

/* Disable interaction for gallery items in setlist */
.gallery-container .set-preview.in-setlist {
    cursor: default;
    pointer-events: none;
}

/* Hide legacy setlist status */
.setlist-status {
    display: none;
}

/* Button Icons */
.status-button svg,
.remove-set-button svg,
.play-button svg {
    width: 14px;
    height: 14px;
    pointer-events: none;
}



/* Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.controls-group {
    display: flex;
    flex-direction: column;
	padding-top: 0;
	
}

.controls-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    margin-top: 4px; /* Space for chevron and navigation */
	align-items: baseline;
}

/* Left group of toggles */
.toggles-group {
    display: flex;
    align-items: center;
}

/* Add space after seconds toggle */
.toggle-container.seconds-display {
    margin-right: 24px; /* Larger gap after seconds */
}

/* Group yankee and madness toggles */
.toggle-container.yankee-madness {
    margin-right: 12px;
}

/* Right group */
.settings-group {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

/* Style selector with counter */
.style-selector {
    display: flex;
    align-items: center;
    gap: 8px;
}

.style-selector select {
    min-width: 160px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
}

/* Center navigation section */
.navigation-center {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
	margin-top:16px;
}

.navigation-center .chevron-button {
    position: relative; /* Change from fixed to relative */
    bottom: auto; /* Remove fixed positioning */
    left: auto;
    transform: none;
    width: 48px;
    height: 48px;
    background: none;
    border: none;
    color: #bf9b30;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-center .chevron-button svg {
    width: 36px;
    height: 36px;
    stroke-width: 1.5;
    opacity: 0.5;
    transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navigation-center .chevron-button:hover svg {
    opacity: 0.8;
}

.navigation-center .chevron-button.active svg {
    transform: scaleY(-1);
}
.setlist-preview-gallery {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 12px;
    position: relative;
    min-height: 150px;
	max-width: 90vw;
}

.preview-scroll {
    position: relative;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 20px;
    padding: 0px 50px 12px 50px;
    border-radius: 12px;
    background: rgba(210, 105, 30, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    min-height: 148px;
    border: 2px dotted #bf9b30;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}
}

.preview-scroll::-webkit-scrollbar {
    display: none;
}

.preview-nav-button {
   position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    padding: 0;
    transition: all 0.2s ease;
	margin-left:16px;
	margin-right:16px;
}

.preview-nav-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.preview-nav-button.prev {
    left: 8px;
	
}

.preview-nav-button.next {
    right: 8px;
}

.preview-empty {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}


.setlist-counter {
    display: inline-flex; /* Change to inline-flex to take only needed space */
    align-items: center;
    cursor: pointer; /* Make entire counter clickable */
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.2s var(--transition-timing);
    white-space: nowrap;
    user-select: none; /* Prevent text selection */
	text-align: left;
    margin-top: 0.25rem; /* Small gap from heading */
    margin-bottom: 0.5rem; /* Space before the content below */
    color: rgba(255, 255, 255, 0.7); /* Optional: makes the count slightly subdued */
}

.setlist-counter:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.counter-content {
    display: flex;
    align-items: center;
    gap: 6px;
}

.counter-content span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.counter-content .count {
    color: #bf9b30;
    font-weight: 500;
}

/* Make the edit button part of the counter visually */
.edit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: transparent; /* Remove button background */
    color: rgba(255, 255, 255, 0.7);
    margin-left: 4px;
    pointer-events: none; /* Disable button clicks */
}

.edit-button svg {
    width: 14px;
    height: 14px;
}

.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.2s var(--transition-timing);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Update existing shuffle button styles to match */
.shuffle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border: none;
    background: #bf9b30;
	opacity:0.7;
    border-radius: 16px;
    /* color: rgba(255, 255, 255, 0.9); */
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s var(--transition-timing);
}

.shuffle-btn:hover {
    background: #bf9b30;
	opacity:1;
    transform: scale(1.05);
}

.shuffle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.toggle-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #bf9b30;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.select-container {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.select-container select {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.select-container select:hover {
    background: rgba(255, 255, 255, 0.2);
}

.select-container select option {
    background: #1a1a1a;
    color: white;
}

.filter-counter {
    text-align: left;
    margin-left: 0; /* Remove auto margin */
    width: 100%; /* Ensure full width */
    display: block;
    margin-bottom: 15px; /* Add some spacing below the counter */
}


