/* General Styles */
:root {
    --primary-color: #2c3e50; /* Dark Gray */
    --secondary-color: #3498db; /* Bright Blue */
    --accent-color: #e74c3c; /* Red */
}

/* Mezmur Card Styles */
.mezmur-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth transitions */
    background: linear-gradient(145deg, #ffffff, #f8f9fa); /* Subtle gradient background */
    border: none; /* No border */
    border-radius: 15px; /* Rounded corners */
}

.mezmur-card:hover {
    transform: translateY(-5px); /* Slight lift on hover */
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); /* Subtle shadow on hover */
}


/* Tag Pill Styles */
.tag-pill {
    background-color: var(--secondary-color); /* Use bright blue from root */
    color: white;
    padding: 0.3em 0.8em;
    border-radius: 20px;
    font-size: 0.9em;
    margin: 0.2em;
    display: inline-block;
}

/* Audio Player Styles */
.audio-player {
    width: 100%;
    margin-top: 1rem;
}

/* Search Box Styles */
.search-box {
    max-width: 400px;
    margin: 1rem auto;
}

/* Filter Sidebar Styles */
.filter-sidebar {
    background: #f8f9fa; /* Light Gray background */
    border-radius: 10px;
    padding: 1rem;
    height: fit-content;
}

.sticky-sidebar {
    position: sticky;
    top: 20px; /* Stick to top of viewport */
}

/* Line break preservation */
.preserve-line-breaks {
    white-space: pre-line;
}


/* Playlist Card Styles */
.playlist-card {
    background: linear-gradient(145deg, #f8f9fa, #ffffff); /* Subtle gradient background */
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: grab; /* Indicate draggability */
    transition: all 0.3s ease; /* Smooth transitions */
}

.playlist-card:hover {
    transform: translateX(-5px); /* Slight shift on hover */
    box-shadow: 2px 2px 10px rgba(0,0,0,0.1); /* Subtle shadow on hover */
}

/* Playlist Header Styles */
.playlist-header {
    background: rgba(46, 92, 136, 0.1); /* Translucent dark blue background */
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Main Content Wrapper and Playlist Sidebar Styles */
.main-content-wrapper {
    position: relative;
    padding-right: 300px; /* Space for sidebar */
    transition: padding 0.3s ease; /* Smooth transition for padding change */
}

.playlist-sidebar {
    position: fixed;
    right: 0;
    top: 56px;
    width: 300px;
    height: calc(100vh - 56px);
    background: rgba(255, 255, 255, 0.97); /* White background with slight transparency */
    border-left: 1px solid #dee2e6; /* Light gray border */
    overflow-y: auto; /* Allow vertical scrolling */
    z-index: 1000; /* Ensure it's above other content */
    transition: transform 0.3s ease; /* Smooth transition for transform */
}

/* Media Query for smaller screens (max-width: 1200px) */
@media (max-width: 1200px) {
    .main-content-wrapper {
        padding-right: 0; /* Remove padding when sidebar is hidden */
    }

    .playlist-sidebar {
        transform: translateX(100%); /* Move sidebar off-screen */
    }

    .playlist-sidebar.active {
        transform: translateX(0); /* Bring sidebar back when active */
    }
}

/* Sidebar Toggle Button Styles */
.sidebar-toggle {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100; /* Ensure it's above other content */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Active Song Highlighting */
.list-group-item.active {
    background-color: rgba(13, 110, 253, 0.1); /* Light blue background */
    border-left: 3px solid #0d6efd; /* Blue border */
}

/* Social Button Styles */
.btn-facebook {
    background-color: #1877f2; /* Facebook blue */
    color: white;
}

.btn-twitter {
    background-color: #1da1f2; /* Twitter blue */
    color: white;
}

.btn-whatsapp {
    background-color: #25d366; /* WhatsApp green */
    color: white;
}

/* Share Link Input Styles */
#shareLink {
    font-family: monospace;
    cursor: pointer;
}

/* Filtered Out Card Styles */
.mezmur-card-container.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    pointer-events: none; /* Prevent interaction */
}

/* General Filtered Out Styles (for broader application if needed) */
.filtered-out {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}


/* Masonry Layout Override */
#mezmurGrid {
    display: block !important; /* Override Bootstrap's flex display */
}

/* Z-index for Dropdown Menu (to appear above other elements) */
.dropdown-menu {
    position: absolute;
    z-index: 9999; /* High z-index to ensure visibility */
    transform: translate3d(0, 38px, 0);
}

/* Hover Effects for Mezmur Cards */
.mezmur-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.mezmur-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Hover Effect for Three Dots Icon */
.bi-three-dots-vertical {
    transition: color 0.2s;
}

.bi-three-dots-vertical:hover {
    color: #0d6efd !important; /* Blue on hover */
}

/* Tag Pill Styles */
.tag-pill {
    background: #afcbef; /* Light Blue */
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.9em;
    margin: 2px;
}

/* Collections Modal List Item Styles */
.collections-modal .list-group-item {
    transition: all 0.2s;
    border-left: none;
    border-right: none;
}

.collections-modal .list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.collections-modal .list-group-item:last-child {
    border-bottom: none;
}


/* Modal Content Styles */
.modal-content {
    border-radius: 12px;
}

/* Lyrics Container Styles */
.lyrics-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

/* Lyrics Collapse Styles */
#lyricsControls .collapse {
    max-height: 60vh;
    overflow-y: auto;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

/* Lyric Line Styles */
.lyric-line {
    padding: 8px 12px;
    margin: 4px 0;
    border-radius: 4px;
    transition: all 0.3s ease;
    opacity: 0.7;
}

/* Active Lyric Line Styles */
.lyric-line.active {
    background: rgba(13, 110, 253, 0.15); /* Light blue background */
    transform: translateX(10px);
    opacity: 1;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Timestamp Styles */
.lyric-line::before {
    content: attr(data-time);
    display: inline-block;
    width: 50px;
    color: #657; /* Gray color */
    font-size: 0.9em;
    margin-right: 10px;
}

/* Ensure lyrics containers are visible */
.collapse.multi-collapse.show {
    display: block !important;
}

/* Improve Lyric Line Visibility */
.lyric-line {
    font-size: 1.1rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
}

.lyric-line.active {
    background: rgba(13, 110, 253, 0.15);
    transform: translateX(10px);
    font-weight: 500;
}

/**/
/* Floating Action Button Styles */
.fab {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000; /* Ensure it's on top */
    border-radius: 50%; /* Make it circular */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
    padding: 10px 15px; /* Adjust padding as needed */
    transition: transform 0.2s ease; /* Smooth transition on hover */
}

.fab:hover {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

.btn-floating {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-floating i {
    font-size: 20px;
}

