body {
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Card styling */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: none;
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 1rem;
}

/* Song items styling */
.song-item {
    transition: all 0.2s ease;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.125);
    border-radius: 0.25rem;
}

.song-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Container for songs */
.song-container {
    border: 1px dashed #dee2e6;
    background-color: #f9f9f9;
    border-radius: 0.25rem;
    transition: background-color 0.2s ease;
}

.song-container:hover {
    background-color: #f0f0f0;
}

/* Setlist container */
.setlist-container {
    min-height: 300px;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

/* Draggable specific styles */
.draggable-source--is-dragging {
    opacity: 0.3;
}

.draggable-mirror {
    z-index: 9999;
    opacity: 0.9;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.album-cover {
    width: 100px;
    height: 100px;
    border-radius: 0.25rem;
    margin-right: 1rem;
}

.album-cover-small {
    width: 50px;
    height: 50px;
    border-radius: 0.25rem;
    margin-right: 0.5rem;
}

.song-item {
    cursor: grab;
    user-select: none;
    transition: background-color 0.2s;
}

.song-item:hover {
    background-color: #f8f9fa;
}

.song-item.dragging {
    opacity: 0.4;
    background-color: #e9ecef;
}

.songs-target {
    min-height: 100px;
    padding: 10px;
    border-radius: 4px;
    border: 2px dashed #dee2e6;
    transition: all 0.3s;
}

.songs-target.drop-highlight {
    background-color: rgba(0, 123, 255, 0.1);
    border-color: #007bff;
}

.song-container {
    min-height: 60px;
    padding: 10px;
    border-radius: 0.25rem;
}

.setlist-container {
    min-height: 300px;
}

.badge.duration {
    min-width: 60px;
}

.song-versions {
    display: none;
    padding: 10px;
    margin-top: 5px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.song-version-option {
    cursor: pointer;
}

.song-version-option:hover {
    background-color: #e9ecef;
}

.song-version-badge {
    cursor: pointer;
}

.btn-version-toggle {
    padding: 0.2rem 0.5rem;
    font-size: 0.7rem;
}

.progress {
    height: 1.5rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.song-item.new-item {
    animation: fadeIn 0.3s ease-out;
}

/* Add this CSS directly to your stylesheet or add it inline in a <style> tag */
.reorder-highlight {
    background-color: rgba(0, 123, 255, 0.1);
    transition: background-color 0.5s ease;
}

/* Drag handle for mobile touch reordering */
.drag-handle {
    cursor: grab;
    font-size: 1rem;
    color: #6c757d;
    user-select: none;
    touch-action: none;
    line-height: 1;
}

.dragging {
    opacity: 0.8;
    background-color: #f8f9fa;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px dashed #adb5bd;
    z-index: 1000;
    position: relative;
    transition: transform 0.1s;
    transform: scale(1.02);
}

/* Mobile optimizations - make everything more compact */
@media (max-width: 767.98px) {

    /* Make song text smaller in both setlist and album list */
    .song-item,
    .songs-source .song-item {
        padding: 0.4rem 0.6rem !important;
        margin-bottom: 0.4rem !important;
        font-size: 0.85rem;
    }

    /* Make duration badges smaller and lighter */
    .badge.duration,
    .badge.rounded-pill {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        font-weight: normal;
        min-width: 0;
        display: inline-block;
    }

    /* Make all buttons smaller */
    .btn-sm {
        padding: 0.1rem 0.3rem;
        font-size: 0.7rem;
        line-height: 1;
    }

    /* Style the drag handle */
    .drag-handle {
        font-size: 0.8rem;
        margin-right: 0.3rem !important;
        padding: 0.2rem 0;
    }

    /* Add buttons */
    .btn-add-mobile {
        min-width: 28px;
        min-height: 26px;
        padding: 0.1rem 0.3rem;
        font-size: 0.7rem;
    }

    /* Remove song button (X) */
    .remove-song {
        font-size: 0.85rem;
        line-height: 1;
        padding: 0.1rem 0.35rem;
        height: 22px;
        width: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Make version badges smaller */
    .song-version-badge {
        font-size: 0.65rem;
        padding: 0.1rem 0.25rem;
    }

    /* Make the version button more compact */
    .btn-change-version {
        padding: 0.1rem 0.25rem;
        min-width: 0;
        font-size: 0.65rem;
    }

    /* Adjust spacing between elements */
    .me-2 {
        margin-right: 0.3rem !important;
    }

    .ms-2 {
        margin-left: 0.3rem !important;
    }

    .mb-2 {
        margin-bottom: 0.3rem !important;
    }
}