/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

 :root {
    --tist-blue: #0055FF;
    --tist-blue-hover: #0035C9;
  }


/* General Styles */
.tist-song-bank {
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Forms */
.tist-song-form {
    background: white;
    padding: 1em 2em;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

#tist-song-vault-form input,
#tist-song-vault-form textarea {
    background: #eeeeee;
}

#tist-song-vault-form input[type="file"] {
    padding: 10px;
}
#tist-song-vault-form input:focus,
#tist-song-vault-form textarea:focus {
    background: #fff;
}

#tist-song-vault-form input[type="checkbox"], #tist-song-vault-form input[type="radio"] {
    width: 1.5em;
    height: 1.5em;
}

.form-section {
    /* margin-bottom: 30px; */
    padding-bottom: 1em;
    /* border-bottom: 1px solid #eee; */
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 1em;
    /* color: var(--tist-blue) !important; */
    font-size: 18px;
    font-weight: 600;
    /* text-decoration: underline; */
}

.tag-group h3 {
    font-weight: 300 !important;
    font-size: 12px !important;
    margin-bottom: 3px !important;
}

.form-row {
    margin-bottom: 1em;
    position: relative;
    margin-left: 2.5%;
    margin-right: 2.5%;
}

.form-row label {
    display: inline-block;
    margin-bottom: 8px;
    padding: 0;
    font: 14px / 1.2em -apple-system, blinkmacsystemfont, "Segoe UI", roboto, oxygen-sans, ubuntu, cantarell, "Helvetica Neue", sans-serif;
    color:black;
    font-weight: bold;
}

.form-row input[type="text"],
.form-row input[type="number"],
.form-row input[type="date"],
.form-row input[type="url"],
.form-row textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-row input[type="text"]:focus,
.form-row input[type="number"]:focus,
.form-row input[type="date"]:focus,
.form-row input[type="url"]:focus,
.form-row textarea:focus {
    border-color: var(--tist-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(30, 115, 190, 0.3);
}

.form-row textarea {
    min-height: 100px;
}

.form-row p.description {
    margin-top: 5px;
    font-size: 13px;
    color: #999;
    position: relative;
    padding-left: 20px;
    margin-left: 4px
}

.form-section .form-row p.description::before {
    content: "\f05a";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: var(--tist-blue);
    font-size: 16px;
}

.form-row .required {
    color: #dc3232;
}

/* File Inputs */
.form-row input[type="file"] {
    display: block;
    padding: 10px 0;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.file-preview p {
    margin: 0 0 10px;
}

.file-preview audio {
    width: 100%;
    margin-top: 10px;
}

.file-preview img.sheet-preview {
    max-width: 100%;
    max-height: 200px;
    margin-top: 10px;
    border: 1px solid #ddd;
}

/* Form Validation */
.field-error {
    color: #dc3232;
    font-size: 14px;
    margin-top: 5px;
    display: block;
    font-weight: 500;
    animation: errorSlideIn 0.3s ease-out;
}

input.error,
select.error,
textarea.error {
    border-color: #dc3232 !important;
    box-shadow: 0 0 0 1px #dc3232;
    background-color: #fbeaea;
}

input[type="file"].error {
    border: 2px solid #dc3232;
    border-radius: 4px;
    background-color: #fbeaea;
    padding: 8px;
}

label.error {
    background-color: #fbeaea;
    border: 2px solid #dc3232;
    border-radius: 4px;
    padding: 10px;
    margin: 5px 0;
}

input[type="checkbox"].error {
    outline: 2px solid #dc3232;
    outline-offset: 2px;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Notices */
.tist-song-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 1em;
    position: relative;
    border: 1px solid transparent;
}

.tist-song-notice.success {
    background-color: #ecf8f0;
    border-left: 4px solid #46b450;
    border-color: #46b450;
    color: #1a4731;
    animation: successSlideIn 0.5s ease-out;
}

.tist-song-notice.success h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a4731;
}

.tist-song-notice.success p {
    margin: 8px 0;
}

.tist-song-notice.success p:last-child {
    margin-bottom: 0;
}

.tist-song-notice.error {
    background-color: #fbeaea;
    border-left: 4px solid #dc3232;
    border-color: #dc3232;
    color: #8a1f11;
}

.tist-song-notice p {
    margin: 0;
    font-weight: 500;
}

.tist-song-notice .error-content {
    margin: 0;
}

.tist-song-notice .error-content p {
    margin: 0 0 10px 0;
}

.tist-song-notice .error-content p:last-child {
    margin-bottom: 0;
}

.tist-song-notice .error-list {
    margin: 10px 0 0 0;
    padding: 0 0 0 20px;
    list-style: disc;
}

.tist-song-notice .error-list li {
    margin: 5px 0;
    color: #8a1f11;
    font-weight: 400;
    line-height: 1.4;
}

.tist-song-notice.error .error-list li::marker {
    color: #dc3232;
}

/* Enhanced notice for better visibility */
.tist-song-notice.error {
    animation: errorPulse 0.6s ease-in-out;
    box-shadow: 0 2px 8px rgba(220, 50, 50, 0.2);
}

@keyframes errorPulse {
    0% {
        transform: scale(1);
        border-left-width: 4px;
    }
    50% {
        transform: scale(1.02);
        border-left-width: 6px;
    }
    100% {
        transform: scale(1);
        border-left-width: 4px;
    }
}

@keyframes successSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for forms */
.tist-song-form.loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.tist-song-form.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Error message close button */
.tist-song-notice .notice-dismiss {
    position: absolute;
    top: 0;
    right: 1px;
    padding: 9px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.7;
}

.tist-song-notice .notice-dismiss:hover {
    opacity: 1;
}

.tist-song-notice .notice-dismiss::before {
    content: "\f335";
    font-family: "dashicons";
    font-size: 16px;
    line-height: 20px;
    display: block;
}

/* Responsive error messages */
@media (max-width: 768px) {
    .tist-song-notice {
        padding: 12px;
        margin-bottom: 15px;
    }
    
    .tist-song-notice .error-list {
        padding-left: 16px;
    }
    
    .tist-song-notice .error-list li {
        font-size: 14px;
    }
}

/* Buttons */
.button.button-primary {
    background-color: var(--tist-blue);
    border-color: var(--tist-blue);
    color: white;
    padding: 10px 1em;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.button.button-primary:hover {
    background-color: var(--tist-blue-hover);
    border-color: var(--tist-blue-hover);
}

.button.button-primary:disabled {
    background-color: #999;
    border-color: #999;
    cursor: not-allowed;
}

.tist-song-bb .action-buttons a.button, .tist-song-bb .toggle-visibility {
    background: #F2F4F5 !important;
    color: var(--tist-blue) !important;
}

.tist-song-bb .action-buttons a.button:hover, .tist-song-bb .toggle-visibility:hover {
    background: var(--tist-blue) !important;
    color: #F2F4F5 !important;
}

.tist-song-catalogue-form button.update-catalogue {
    padding: 10px !important;
}

/* Archive Styles */
.tist-song-archive {
    margin-bottom: 30px;
}

.tist-song-archive-header {
    margin-bottom: 1em;
}

.tist-song-archive-search {
    margin-bottom: 1em;
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.tist-song-archive-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tist-song-archive-item {
    margin-bottom: 1em;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.tist-song-archive-item h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.tist-song-archive-item .meta {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.tist-song-archive-pagination {
    margin-top: 1em;
    text-align: center;
}

/* Entry Display Styles */
.tist-song-entry {
    margin-bottom: 30px;
    padding: 1em;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
}

.tist-song-entry h2 {
    margin-top: 0;
    margin-bottom: 1em;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e5e5;
}

.tist-song-entry-section {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}

.tist-song-entry-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.tist-song-entry-meta {
    margin-bottom: 1em;
    font-size: 0.9em;
    color: #666;
}

/* BuddyBoss Integration Styles */
.tist-song-bb {
    padding: 0;
    background-image: url('../../assets/images/logo-black.svg');
    background-repeat: no-repeat;
    background-position: top right;
    background-size: 75px auto;
    background-attachment: local;
    position: relative;
    min-height: 75px;
}

/* Search and Filter Styles */
.tist-song-bb-filters {
    margin-bottom: 1.5em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.filter-left {
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.filter-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.song-search-input {
    width: 100%;
    padding: 10px 35px 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.song-search-input:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

.search-clear {
    position: absolute;
    right: 0px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    font-size: 16px;
    display: none;
    transition: color 0.2s ease;
    line-height: 1;
}

.search-clear:hover {
    color: #495057;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 130px;
    height: 42px;
    box-sizing: border-box;
}

.filter-group select:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Loading Styles */
.tist-song-bb-loading {
    text-align: center;
    padding: 40px 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0a2342;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tist-song-bb-loading p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Responsive Filter Styles */
@media (max-width: 768px) {
    .tist-song-bb-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .filter-left {
        max-width: none;
        min-width: auto;
    }
    
    .filter-right {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .filter-group select {
        min-width: 140px;
        flex: 1;
    }
}

@media (max-width: 480px) {
    .tist-song-bb-filters {
        padding: 12px;
    }
    
    .filter-right {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .filter-group select {
        min-width: auto;
        width: 100%;
    }
}

.tist-song-bb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.0;
}

.song-bank-actions {
    display: flex;
    gap: 10px;
}

.song-bank-stats {
    color: #666;
    font-size: 14px;
}

.song-bank-stats p {
    margin: 0;
}

.no-songs-message {
    text-align: center;
    padding: 2em 1em 1.0em;
    background-color: white;
    border-radius: 5px;
}

.no-songs-message p {
    margin-bottom: 15px;
    color: #666;
}

.tist-song-bb-songs {
    margin: 0;
    padding: 0;
    list-style: none;
}

.tist-song-bb-song {
    margin-bottom: 1.5em;
    padding: 1em;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0);
    transition: box-shadow 0.2s ease;
}

.tist-song-bb-song:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.song-header {
    margin-bottom: 0;
    padding-bottom: 0;
}

.song-header h3.song-title {
    margin: 0 0 8px 0 !important;
    font-size: 1em;
    color: #000;
    font-weight: 600;
}

.song-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
    align-items: center;
    flex-wrap: wrap;
}

.song-reference {
    font-family: 'Courier New', monospace;
    background-color: #f0f8ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 500;
    color: black
}

.song-details {
    margin-bottom: 0;
}

.song-author {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #555;
}

.song-alt-titles {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
}

.song-status {
    display: flex;
    gap: 8px;
    margin: 0;
}

.status-item {
    padding: 4px 9px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-item.visibility-public {
    background-color: #e8f5e8;
    color: #2d5d2d;
    border: 1px solid #c3e6c3;
}

.status-item.visibility-private {
    background-color: #0a2342;
    color: #ffffff;
    border: 1px solid #0a2342;
}

.status-item.catalogue-included {
    background-color: #e3f2fd;
    color: #1565c0;
    border: 1px solid #bbdefb;
}

.catalogue-preview {
    margin-top: 15px;
    padding: 15px 15px 15px 0;
}

.catalogue-preview h4 {
    margin: 0 0 10px 0 !important;
    font-size: 14px;
}

.catalogue-preview p {
    margin: 5px 0;
    font-size: 13px;
    color: #111;
    margin: 0 !important;
}

.song-actions {
    margin-top: 0;
    padding-top: 0;
}

.action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.button-small {
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.4;
}

.toggle-visibility {
    transition: all 0.2s ease;
}

.toggle-visibility:hover {
    transform: translateY(-1px);
}

/* Archive Styling */
.sbv-archive-entries {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1em;
}

.sbv-archive-entry {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.2s;
}

.sbv-archive-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sbv-archive-entry h3 {
    margin-top: 0;
    font-size: 18px;
}

.sbv-archive-meta {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

/* Confirmation Page */
.tist-confirmation {
    background: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 40px;
}

.tist-confirmation-header {
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-icon {
    margin: 1em auto;
}

.confirmation-message {
    font-size: 18px;
    text-align: center;
    margin-bottom: 30px;
}

.confirmation-reference {
    background-color: #f8f8f8;
    padding: 1em;
    border-radius: 4px;
    text-align: center;
    margin-bottom: 30px;
}

.reference-id {
    font-size: 24px;
    font-weight: bold;
    color: var(--tist-blue);
    padding: 10px;
    border: 2px dashed #ddd;
    background-color: #fff;
    display: inline-block;
    min-width: 200px;
    margin-top: 10px;
}

.confirmation-song-details {
    margin-bottom: 30px;
}

.confirmation-song-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-song-details li {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.confirmation-certificate {
    margin-bottom: 30px;
    padding: 1em;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #46b450;
}

.confirmation-next-steps {
    background-color: #f9f9f9;
    padding: 1em;
    border-radius: 4px;
}

.confirmation-next-steps ul {
    margin-bottom: 1em;
}

.confirmation-actions {
    margin-top: 1em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.confirmation-actions .button {
    margin-right: 10px;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .tist-song-form {
        padding: 1em 15px;
    }
    
    .reference-id {
        font-size: 18px;
    }
    
    .confirmation-actions {
        flex-direction: column;
    }

    .confirmation-actions .button {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
        text-align: center;
    }
    
    /* BuddyBoss responsive styles */
    .tist-song-bb {
        padding: 15px;
    }
    
    .tist-song-bb-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .song-bank-actions {
        width: 100%;
    }
    
    .song-bank-actions .button {
        flex: 1;
        text-align: center;
    }
    
    .tist-song-bb-song {
        padding: 15px;
    }
    
    .song-meta {
        flex-direction: row !important;
        gap: 5px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .action-buttons .button {
        width: 100%;
        text-align: center;
    }
    
    .catalogue-preview {
        padding: 0;
    }
}

/* Catalogue Form Specific Styles */
.catalogue-form .entry-info {
    background: #e7f3ff;
    border: 1px solid var(--tist-blue);
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 25px;
}

.catalogue-form .entry-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--tist-blue);
    font-size: 16px;
}

.catalogue-form .entry-info p {
    margin: 5px 0;
    font-size: 14px;
}

.catalogue-form .entry-info small {
    color: #666;
    font-size: 12px;
}

/* Checkbox Groups */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 8px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    max-height: 250px;
    overflow-y: auto;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    margin-bottom: 0;
    padding: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 3px;
    font-size: 14px;
}

.checkbox-label:hover {
    background-color: #e8f4f8;
    border-radius: 3px;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 0;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.checkbox-label input[type="checkbox"]:checked + span {
    font-weight: 500;
    color: var(--tist-blue);
}

/* Select Dropdown Styling */
.form-row select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: #fff;
    background-image: url("data:image/svg+xml;charset=US-ASCII,<svg xmlns='http://www.w3.org/2000/svg' width='4' height='5'><path fill='%23666' d='m0,1L4,1L2,4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 10px;
    appearance: none;
    cursor: pointer;
}

.form-row select:focus {
    border-color: var(--tist-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(30, 115, 190, 0.3);
}

/* Existing File Display */
.existing-file {
    margin-top: 8px;
    padding: 10px;
    background-color: #f0f8ff;
    border: 1px solid #b8d4ed;
    border-radius: 4px;
    font-size: 13px;
}

.existing-file a {
    color: var(--tist-blue);
    text-decoration: none;
    font-weight: 500;
}

.existing-file a:hover {
    text-decoration: underline;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
    margin-top: 30px;
    padding-top: 1em;
    border-top: 1px solid #eee;
}

.form-actions .button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid;
    min-width: 11em;
    text-align: center;
}

.form-actions .button-primary {
    background-color: var(--tist-blue);
    border-color: var(--tist-blue);
    color: white;
}

.form-actions .button-primary:hover {
    background-color: var(--tist-blue-hover);
    border-color: var(--tist-blue-hover);
}

.form-actions .button-secondary {
    background-color: #f7f7f7;
    border-color: #ccc;
    color: #555;
}

.form-actions .button-secondary:hover {
    background-color: #e9e9e9;
    border-color: #999;
}

/* Specialized Input Fields */
.form-row input[pattern] {
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

/* Tempo Input */
.form-row input[type="number"][name="tempo"] {
    width: auto;
    min-width: 100px;
    display: inline-block;
}

/* Multiple File Upload */
.form-row input[type="file"][multiple] {
    padding: 15px 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background-color: #fafafa;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
}

.form-row input[type="file"][multiple]:hover {
    border-color: var(--tist-blue);
    background-color: #f0f8ff;
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 480px) {
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 10px;
    }
    
    .checkbox-label {
        padding: 5px;
        font-size: 12px;
    }
}

/* Pagination */
.tist-song-bb-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 1em 0 0;
}

.tist-song-bb-pagination .page-link {
    display: inline-block;
    padding: 8px 12px;
    background: #f8f9fa;
    color: var(--tist-blue);
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.tist-song-bb-pagination .page-link:hover {
    background: var(--tist-blue);
    color: white;
    border-color: var(--tist-blue);
}

.tist-song-bb-pagination .page-link.current {
    background: var(--tist-blue);
    color: white;
    border-color: var(--tist-blue);
}

.tist-song-bb-pagination .page-link.prev-page,
.tist-song-bb-pagination .page-link.next-page {
    padding: 8px 16px;
    font-weight: 600;
}

.tist-song-bb-pagination .page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tist-song-bb-pagination .page-dots {
    padding: 8px 4px;
    color: #666;
    font-weight: bold;
}

/* Footer Stats */
.tist-song-bb-footer {
    margin-top: 0;
    padding: 1.5em 0;
    border-top: 1px solid #eee;
    text-align: center;
}

.tist-song-bb-footer .song-bank-stats p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 12px;
    line-height: 12px;
}

.tist-song-bb-footer .page-info {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .tist-song-bb-pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tist-song-bb-pagination .page-link {
        padding: 6px 10px;
        font-size: 13px;
        min-width: 36px;
    }
    
    .tist-song-bb-pagination .page-link.prev-page,
    .tist-song-bb-pagination .page-link.next-page {
        padding: 6px 12px;
    }
    
    .tist-song-bb-footer {
        margin-top: 1.5em;
        padding: 1em 0;
    }
}

@media (max-width: 480px) {
    .tist-song-bb-pagination .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .tist-song-bb-pagination .page-link {
        margin: 2px;
    }
}

/* ====== CUSTOM NAVIGATION SOLUTION - REPLACE BUDDYBOSS NAV ====== */

/* Hide catalogue navigation tabs (they should only be accessible via action buttons) */
#extend-catalogue-personal-li,
#edit-catalogue-personal-li {
    display: none !important;
}

/* Hide ALL BuddyBoss Song Bank navigation - we'll use custom buttons instead */
body.song-bank #item-body #subnav {
    display: none !important;
}

/* Custom navigation buttons - shown on ALL screen sizes */
.tist-song-bb-mobile-nav,
.tist-song-bb-nav {
    display: flex !important;
    margin-bottom: 20px;
    gap: 8px;
    max-width: calc(100% - 75px);
}

.tist-song-bb-mobile-nav .mobile-nav-button,
.tist-song-bb-nav .nav-button {
    flex: 1;
    padding: 12px 16px;
    background: var(--tist-blue);
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 2px solid var(--tist-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: 200px
}

.tist-song-bb-mobile-nav .mobile-nav-button:hover,
.tist-song-bb-nav .nav-button:hover {
    background: var(--tist-blue-hover);
    border-color: var(--tist-blue-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tist-song-bb-mobile-nav .mobile-nav-button.current,
.tist-song-bb-nav .nav-button.current {
    background: #ffffff;
    color: var(--tist-blue);
    border-color: var(--tist-blue);
    font-weight: 600;
    cursor: default;
    box-shadow: 0 2px 4px rgba(30, 115, 190, 0.2);
}

.tist-song-bb-mobile-nav .mobile-nav-button.current:hover,
.tist-song-bb-nav .nav-button.current:hover {
    background: #ffffff;
    color: var(--tist-blue);
    transform: none;
}

/* Icon styling within buttons */
.tist-song-bb-mobile-nav .mobile-nav-button .dashicons,
.tist-song-bb-nav .nav-button .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tist-song-bb-mobile-nav .mobile-nav-button,
    .tist-song-bb-nav .nav-button {
        font-size: 13px;
        padding: 10px 12px;
    }
    
    .tist-song-bb-mobile-nav .mobile-nav-button .dashicons,
    .tist-song-bb-nav .nav-button .dashicons {
        font-size: 14px;
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .tist-song-bb-mobile-nav,
    .tist-song-bb-nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .tist-song-bb-mobile-nav .mobile-nav-button,
    .tist-song-bb-nav .nav-button {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* Song Audio Link in Profile */
.tist-song-bb-song .song-audio {
    margin: 8px 0;
}

.tist-song-bb-song .audio-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tist-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.tist-song-bb-song .audio-link:hover {
    background-color: #e8f4f8;
    color: var(--tist-blue-hover);
    text-decoration: none;
}

.tist-song-bb-song .audio-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Entry Audio Player in Catalogue Form */
.entry-audio-player {
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
}

.entry-audio-player p {
    margin: 0 0 8px 0;
    color: #333;
}

.entry-audio-player audio {
    margin: 8px 0;
    border-radius: 4px;
}

/* Audio controls styling */
audio::-webkit-media-controls-panel {
    background-color: #f8f9fa;
    border-radius: 4px;
}

audio::-webkit-media-controls-play-button,
audio::-webkit-media-controls-pause-button {
    background-color: var(--tist-blue);
    border-radius: 50%;
}

/* Responsive audio */
@media (max-width: 600px) {
    .entry-audio-player audio {
        width: 100% !important;
        max-width: none !important;
    }
    
    .tist-song-bb-song .audio-link {
        font-size: 13px;
    }
}

/* ==========================================================================
   PUBLIC ARCHIVE STYLES
   ========================================================================== */

.tist-song-bank-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Archive Header */
.archive-header {
    text-align: center;
    padding: 1em;
}

.archive-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.archive-description {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

/* Filter Interface */
.archive-filters {
    /* background: #fff;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    padding: 1em;
    margin-bottom: 1em;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    margin-bottom: 0;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

/* Search Box */
.search-box {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-input {
    width: 100%;
    padding: 12px 50px 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafbfc;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #8899a6;
    font-size: 18px;
}

/* Filter Groups */
.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #14171a;
    font-size: 14px;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Tempo Filter */
.tempo-group {
    min-width: 200px;
}

.tempo-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tempo-input {
    flex: 1;
    padding: 10px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    background: #fafbfc;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    max-width: 80px;
}

.tempo-input:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 3px rgba(10, 35, 66, 0.1);
}

.tempo-separator {
    font-weight: 600;
    color: #8899a6;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.filter-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.filter-actions .button-primary {
    background: #0055FF;
    color: white;
}

.filter-actions .button-primary:hover {
    background: #0048d8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.filter-actions .button-secondary {
    background: #8899a6;
    color: white;
}

.filter-actions .button-secondary:hover {
    background: #7a8691;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(136, 153, 166, 0.3);
}

.filter-actions .button:disabled {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-actions .button:disabled:hover {
    background: #e9ecef !important;
    color: #6c757d !important;
    transform: none;
    box-shadow: none;
}

/* Results Section */
.archive-results {
    margin-bottom: 40px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
    padding: 1em;
    /* background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e1e8ed; */
}

.results-count {
    /* font-weight: 600;
    color: #14171a; */
    font-size: 12px; 
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fafbfc;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.no-results-icon {
    font-size: 48px;
    color: #8899a6;
    margin-bottom: 20px;
}

.no-results h3 {
    margin: 0 0 15px 0;
    color: #14171a;
    font-size: 24px;
}

.no-results p {
    margin: 0;
    color: #657786;
    font-size: 16px;
    line-height: 1.5;
}

/* Song Grid */
.song-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns for screens above 768px */
    gap: 30px;
    margin-bottom: 40px;
}

/* Song Cards */
.song-card {
    background: #fff;
    /* border: 1px solid #e1e8ed; */
    border-radius: 7px;
    padding: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards fill their grid cell */
}

.song-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* border-color: #667eea; */
}

.song-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.song-card:hover::before {
    opacity: 1;
}

/* Song Header */
.song-header {
    margin-bottom: 0;
}

.song-title {
    font-size: 1em !important;
    margin: 0 0 8px 0;
    color: #012E73;
    line-height: 1.3;
    text-transform: capitalize;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%; /* Ensures it respects the container width */
}

.song-artist {
    color: #657786;
    margin: 0 0 12px 0;
    font-weight: 500;
    font: 14px system-ui, -apple-system, BlinkMacSystemFont, Poppins, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
	font-palette: normal;
	font-synthesis: weight style small-caps;
	font-variant: normal;
}

.song-artist a {
    color: #0055FF;
    text-decoration: none;
    transition: color 0.2s ease;
}

.song-artist a:hover {
    color: var(--tist-blue);
    text-decoration: underline;
}

.song-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
}

.song-meta span {
    background: #f1f3f4;
    color: #111;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
    white-space: nowrap;
}

/* Song Details */
.song-details {
    flex: 1; /* Allow details section to grow and fill available space */
}

.song-details > div {
    margin-bottom: 0;
    font-size: 12px;
}

.song-details strong {
    color: #14171a;
    font-weight: 600;
    width: 75px;
    display: inline-block;
}

/* Tags */
.genre-tags, .mood-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.genre-tag, .mood-tag {
    background: #F0F2F5;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.mood-tag {
    background: #F0F2F5;
}

/* Song Actions */
.song-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto; /* Push actions to bottom of card */
    margin-bottom: 0;
    padding-top: 15px; /* Add some spacing from content above */
}

.song-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 13px;
    flex: 1;
    justify-content: center;
    min-width: 120px;
}

.song-actions .button-primary {
    background: #0055FF;
    color: white;
}

.song-actions .button-primary:hover {
    background: #0048d8;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.song-actions .button-secondary {
    background: #f1f3f4;
    color: #5f6368;
    border: 1px solid #e1e8ed;
}

.song-actions .button-secondary:hover {
    background: #e8eaed;
    color: #14171a;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Song Reference */
.song-reference {
    /* position: absolute;
    top: 15px;
    right: 15px; */
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

/* Pagination */
.archive-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-nav:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
    color: white;
}

.page-numbers {
    display: flex;
    gap: 8px;
    align-items: center;
}

.page-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #5f6368;
    background: #f1f3f4;
    border: 1px solid #e1e8ed;
}

.page-number:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.page-number.current {
    background: #667eea;
    color: white;
    cursor: default;
}

.page-dots {
    color: #8899a6;
    font-weight: 600;
    padding: 0 8px;
}

/* Modal Styles */
.song-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid #e1e8ed;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px 16px 0 0;
}

.modal-title {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.modal-body {
    padding: 30px;
}

/* Song Details Full */
.song-details-full {
    line-height: 1.6;
}

.song-main-info {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e1e8ed;
}

.song-main-info .song-title {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: #14171a;
}

.song-main-info .song-artist {
    font-size: 18px;
    color: #657786;
    margin: 0 0 15px 0;
}

.song-reference-modal {
    background: #f1f3f4;
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: #5f6368;
}

.song-audio-section {
    /* text-align: center;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 30%, #4facfe 100%);
    border-radius: 12px;
    color: white; */
}

.song-audio-section h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
}

.play-button-modal {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    font-size: 16px;
    padding: 15px 25px;
}

.play-button-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.song-technical-details,
.song-credits,
.song-commercial,
.song-instrumentation-full {
    margin-bottom: 30px;
}

.song-technical-details h3,
.song-credits h3,
.song-commercial h3,
.song-instrumentation-full h3 {
    margin: 0 0 15px 0;
    color: #14171a;
    font-size: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item,
.credit-item,
.commercial-item {
    background: #f8fafc;
    padding: 10px;
}

.detail-item strong,
.credit-item strong,
.commercial-item strong {
    display: block;
    color: #14171a;
    margin-bottom: 5px;
    font-size: 14px;
}

.detail-item span,
.credit-item span,
.commercial-item span {
    color: #5f6368;
    font-size: 15px;
}

.song-tags-section {
    margin-bottom: 30px;
}

.tag-group {
    margin-bottom: 20px;
}

.tag-group h4 {
    margin: 0 0 10px 0;
    color: #14171a;
    font-size: 16px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: white;
}

.tag.genre-tag {
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
}

.tag.mood-tag {
    /* background: linear-gradient(135deg, #f093fb, #f5576c); */
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #667eea;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .tist-song-bank-archive {
        padding: 0;
    }
    
    .archive-header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }
    
    .archive-title {
        font-size: 2em;
    }
    
    .archive-filters {
    }
    
    .filter-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-box {
        min-width: auto;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .tempo-group {
        min-width: 140px;
    }
    
    .filter-actions {
        justify-content: center;
    }
    
    .song-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .song-card {
        padding: 20px;
    }
    
    .song-actions {
        flex-direction: column;
    }
    
    .song-actions .button {
        min-width: auto;
        flex: none;
    }
    
    .archive-pagination {
        flex-direction: column;
        gap: 20px;
    }
    
    .page-numbers {
        order: 2;
    }
    
    .modal-content {
        margin: 10px;
        max-height: calc(100vh - 20px);
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .archive-title {
        font-size: 1.5em;
    }
    
    .song-title {
        font-size: 18px;
    }
    
    .song-main-info .song-title {
        font-size: 24px;
    }
    
    .page-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Archive Page Filters - Using BuddyBoss Style Pattern */
.tist-song-bank-archive .tist-song-bb-filters {
    margin-bottom: 0;
    padding: 0;
    background-color: transparent;
    border: none;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
}

.tist-song-bank-archive .filter-left {
    flex: 1;
    max-width: 350px;
    min-width: 250px;
}

.tist-song-bank-archive .filter-right {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.tist-song-bank-archive .search-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.tist-song-bank-archive .song-search-input {
    width: 100%;
    padding: 10px 35px 10px 14px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    height: 42px;
    box-sizing: border-box;
}

.tist-song-bank-archive .song-search-input:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

.tist-song-bank-archive .search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6c757d;
    font-size: 16px;
    display: none;
    transition: color 0.2s ease;
    line-height: 1;
}

.tist-song-bank-archive .search-clear:hover {
    color: #495057;
}

.tist-song-bank-archive .filter-group {
    display: flex;
    flex-direction: column;
}

.tist-song-bank-archive .filter-group select {
    padding: 10px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 130px;
    height: 42px;
    box-sizing: border-box;
}

.tist-song-bank-archive .filter-group select:focus {
    outline: none;
    border-color: #0a2342;
    box-shadow: 0 0 0 2px rgba(10, 35, 66, 0.1);
}

/* Archive Tempo Filter Specific Styling */
.tist-song-bank-archive .tempo-group {
    min-width: 200px;
}

.tist-song-bank-archive .tempo-slider-container {
    width: 100%;
}

.tist-song-bank-archive .tempo-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.tist-song-bank-archive .tempo-label span:first-child {
    font-weight: 600;
    color: #0a2342;
}

.tist-song-bank-archive .tempo-value {
    background: #0a2342;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 60px;
    text-align: center;
}

.tist-song-bank-archive .tempo-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
    cursor: pointer;
    margin: 8px 0;
}

.tist-song-bank-archive .tempo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a2342;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.tist-song-bank-archive .tempo-slider::-webkit-slider-thumb:hover {
    background: #1a3554;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tist-song-bank-archive .tempo-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0a2342;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: none;
    transition: all 0.2s ease;
}

.tist-song-bank-archive .tempo-slider::-moz-range-thumb:hover {
    background: #1a3554;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tist-song-bank-archive .tempo-slider::-moz-range-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 3px;
    border: none;
}

.tist-song-bank-archive .tempo-range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.tist-song-bank-archive .tempo-range-labels span {
    font-weight: 500;
}

/* Archive Filter Actions */
.tist-song-bank-archive .filter-actions {
    text-align: center;
    margin-top: 0;
}

.tist-song-bank-archive .filter-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.tist-song-bank-archive .filter-actions .button-secondary {
    background: #6c757d;
    color: white;
}

.tist-song-bank-archive .filter-actions .button-secondary:hover {
    background: #5a6268;
}

.tist-song-bank-archive .filter-actions .button:disabled {
    background: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed;
    opacity: 0.6;
}

.tist-song-bank-archive .filter-actions .button:disabled:hover {
    background: #e9ecef !important;
    color: #6c757d !important;
    transform: none;
    box-shadow: none;
}

/* Responsive Archive Filters */
@media (max-width: 768px) {
    .tist-song-bank-archive .tist-song-bb-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .tist-song-bank-archive .filter-left {
        max-width: none;
        min-width: auto;
    }
    
    .tist-song-bank-archive .filter-right {
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tist-song-bank-archive .filter-group select {
        min-width: 140px;
        flex: 1;
    }
    
    .tist-song-bank-archive .tempo-group {
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .tist-song-bank-archive .tist-song-bb-filters {
        padding: 12px;
    }
    
    .tist-song-bank-archive .filter-right {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .tist-song-bank-archive .filter-group select {
        min-width: auto;
        width: 100%;
    }
    
    .tist-song-bank-archive .tempo-group {
        min-width: auto;
    }
    
    .tist-song-bank-archive .tempo-label {
        font-size: 12px;
    }
    
    .tist-song-bank-archive .tempo-value {
        font-size: 10px;
        padding: 1px 4px;
        min-width: 45px;
    }
    
    .tist-song-bank-archive .tempo-slider {
        height: 10px;
        margin: 6px 0;
    }
    
    .tist-song-bank-archive .tempo-slider::-webkit-slider-thumb,
    .tist-song-bank-archive .tempo-slider::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
}

/* Song Detail Page Styles */
.tist-song-detail {
    max-width: 1000px;
    margin: 0 auto 2em;
    padding: 1em;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.song-detail-header {
    text-align: center;
    /* margin-bottom: 2em;
    padding-bottom: 1em;
    border-bottom: 1px solid #e1e8ed; */
}

.song-title-section .song-title {
    font-size: 1.75em;
    margin: 0 0 0.5em 0;
    color: #14171a;
    font-weight: 700;
}

.song-title-section .song-artist {
    font-size: 1em;
    color: #657786;
    margin: 0 0 0.75em 0;
    font-weight: 500;
}

.song-title-section .song-alt-titles {
    font-size: 0.875em;
    color: #8899a6;
    margin: 0 0 1em 0;
}

.song-reference {
    display: inline-block;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 0.25em 0.75em;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.song-audio-section {
    text-align: center;
    margin: 1em 0;
    padding: 0;
}

.song-audio-section h3 {
    margin-bottom: 1em;
    color: #2d3748;
    font-size: 1em;
    font-weight: 600;
}

.song-audio-section .play-button {
    font-size: 0.875em;
    padding: 0.75em 1.5em;
    min-width: 150px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.song-audio-section .play-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.song-detail-content {
    /* margin-top: 2em; */
}

.detail-section {
    margin-bottom: 2em;
}

.detail-section h2 {
    margin: 0;
    color: #14171a;
    font-size: 1em !important;
    display: inline-block;
}

.detail-section h3 {
    margin: 0 0 0.75em 0;
    font-size: 1em;
    font-weight: 600;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
}

.detail-item {
    
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item strong {
    display: block;
    color: #14171a;
    font-weight: 600;
    margin-bottom: 0.5em;
    font-size: 0.7em !important;
    text-transform: uppercase;
    letter-spacing: 0.3px !important;  
}

.detail-item span {
    color: #657786;
    font-size: 0.875em;
    line-height: 1.4;
}

.detail-content {
    color: #657786;
    font-size: 0.875em;
    line-height: 1.5;
    margin-top: 0.5em;
}

.tag-group {
    margin-bottom: 1.5em;
    background: #f8fafc;
    padding: 10px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}

.tag {
    background: #667eea;
    color: white;
    padding: 0.25em 0.75em;
    border-radius: 5px;
    font-size: 0.75em;
    font-weight: 500;
    text-transform: capitalize;
    letter-spacing: 0.25px;
}

.tag.genre-tag {
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
}

.tag.mood-tag {
    /* background: linear-gradient(135deg, #f093fb, #f5576c); */
}

.instrumentation-display {
    background: white;
    padding: 1em;
    border-radius: 6px;
    border-left: 2px solid #667eea;
    color: #657786;
    font-size: 0.875em;
    line-height: 1.5;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.submission-info {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 1em;
    background: #f8fafc;
}

.detail-actions {
    text-align: center;
    padding: 0.5em;
}

.detail-actions .button {
    font-size: 0.875em;
    padding: 0.75em 1.5em;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.detail-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tist-song-detail {
        margin: 0.5em;
        padding: 1em;
    }
    
    .song-title-section .song-title {
        font-size: 1.5em;
    }
    
    .song-title-section .song-artist {
        font-size: 0.875em;
    }
    
    .detail-section {
        padding: 1em;
    }
    
    .detail-section h2 {
        font-size: 1.125em;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75em;
    }
    
    .detail-item {
        padding: 0.75em;
    }
    
    .song-audio-section .play-button {
        padding: 0.625em 1.25em;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .song-title-section .song-title {
        font-size: 1.375em;
    }
    
    .song-title-section .song-artist {
        font-size: 0.8em;
    }
    
    .detail-section h2 {
        font-size: 1em;
    }
    
    .tag-list {
        gap: 0.375em;
    }
    
    .tag {
        padding: 0.2em 0.6em;
        font-size: 0.7em;
    }
}

/* Fixed Bottom Audio Player */
#tist-audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.76);
    color: white;
    padding: 10px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 1000000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent;
    background-image: linear-gradient(241deg, #0A2342 26%, #000000 100%);
}

#tist-audio-player.active {
    transform: translateY(0);
}

#tist-audio-player .audio-player-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

#tist-audio-player .audio-player-info {
    flex: 1;
    min-width: 0;
}

#tist-audio-player .audio-player-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

#tist-audio-player .audio-player-artist {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

#tist-audio-player .audio-player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 2;
    justify-content: center;
}

#tist-audio-player .audio-control-btn {
    background: rgba(255,255,255,0.2);
    border: none !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3) !important;
}

#tist-audio-player .audio-control-btn:hover {
    background: #f45c24;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4) !important;
}

#tist-audio-player .audio-control-btn:active {
    transform: scale(0.95) !important;
    background: linear-gradient(135deg, #d94d1f, #d17814) !important;
}

#tist-audio-player .audio-control-btn.skip-feedback {
    background: linear-gradient(135deg, #ff7d4a, #fa9f2d) !important;
    transform: scale(1.1) !important;
    transition: all 0.1s ease !important;
}

#tist-audio-player .audio-control-btn.play-pause {
    width: 52px !important;
    height: 52px !important;
    color: white !important;
}

#tist-audio-player .audio-control-btn.play-pause:hover {
    background: #f45c24;
    transform: scale(1.08) !important;
}

#tist-audio-player .audio-control-btn .dashicons {
    font-size: 20px !important;
    width: auto !important;
    height: auto !important;
    color: white !important;
}

#tist-audio-player .audio-control-btn.play-pause .dashicons {
    font-size: 24px !important;
    width: auto !important;
    height: auto !important;
    color: white !important;
}

#tist-audio-player .audio-progress-section {
    flex: 3;
    display: flex;
    align-items: center;
    gap: 12px;
}

#tist-audio-player .audio-time {
    font-size: 12px;
    opacity: 0.9;
    min-width: 40px;
    text-align: center;
    color: white;
}

#tist-audio-player .audio-progress-container {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

#tist-audio-player .audio-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff6b35, #f7931e);
    border-radius: 3px;
    transition: width 0.1s ease;
    position: relative;
}

#tist-audio-player .audio-progress-container:hover .audio-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#tist-audio-player .audio-player-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

#tist-audio-player .audio-volume-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

#tist-audio-player .audio-volume-section .dashicons {
    color: white !important;
    opacity: 0.8 !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    font-family: 'dashicons' !important;
    speak: none !important;
    font-weight: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

#tist-audio-player .audio-volume-section .dashicons-volume:before {
    content: "\f521" !important;
}

#tist-audio-player .audio-volume-slider {
    width: 80px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

#tist-audio-player .audio-volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#tist-audio-player .audio-volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

#tist-audio-player .audio-volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#tist-audio-player .audio-volume-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
}

#tist-audio-player .audio-close-btn {
    background: rgba(255, 255, 255, 0.5) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#tist-audio-player .audio-close-btn:hover {
    background: var(--tist-blue) !important;
    transform: scale(1.05) !important;
}

#tist-audio-player .audio-close-btn .dashicons {
    font-size: 25px !important;
    width: auto !important;
    height: auto !important;
    color: white !important;
}

/* Audio Player Loading State */
#tist-audio-player.audio-player-loading {
    opacity: 0.7;
}

#tist-audio-player.audio-player-loading .audio-control-btn.play-pause {
    background: #f45c24;
    opacity: 0.6;
}

#tist-audio-player .audio-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Audio Player */
@media (max-width: 768px) {
    #tist-audio-player {
        padding: 12px 15px;
    }
    
    #tist-audio-player .audio-player-content {
        gap: 15px;
    }
    
    #tist-audio-player .audio-player-info {
        flex: 1.5;
    }
    
    #tist-audio-player .audio-player-controls {
        gap: 10px;
    }
    
    #tist-audio-player .audio-control-btn {
        width: 40px !important;
        height: 40px !important;
    }
    
    #tist-audio-player .audio-control-btn.play-pause {
        width: 48px !important;
        height: 48px !important;
    }
    
    #tist-audio-player .audio-progress-section {
        flex: 2;
        gap: 8px;
    }
    
    #tist-audio-player .audio-volume-section {
        display: none; /* Hide volume on mobile */
    }
}

@media (max-width: 480px) {
    #tist-audio-player {
        padding: 10px 12px;
    }
    
    #tist-audio-player .audio-player-content {
        gap: 10px;
    }
    
    #tist-audio-player .audio-player-title {
        font-size: 14px;
    }
    
    #tist-audio-player .audio-player-artist {
        font-size: 12px;
    }
    
    #tist-audio-player .audio-control-btn {
        width: 36px !important;
        height: 36px !important;
    }
    
    #tist-audio-player .audio-control-btn.play-pause {
        width: 44px !important;
        height: 44px !important;
    }
    
    #tist-audio-player .audio-time {
        font-size: 11px;
        min-width: 35px;
    }
}

/* ====== BUDDYBOSS PROFILE PAGE SPECIFIC STYLES ====== */

/* BuddyBoss Profile Page: Column Layout for Song Headers */
.buddypress .tist-song-bb-song .song-header {
    display: flex;
    align-items: center; /* Changed from flex-start to center - aligns all sections to the middle */
    gap: 20px;
    margin-bottom: 0;
    width: 100%;
    overflow: hidden; /* Prevent content from breaking out */
}

.buddypress .tist-song-bb-song .song-title-section {
    flex: 0 0 50%;
    min-width: 0; /* Allow flex item to shrink below its content size */
    max-width: 50%; /* Prevent expansion beyond allocated space */
}

.buddypress .tist-song-bb-song .song-audio-section {
    flex: 0 0 25%;
    max-width: 25%; /* Prevent expansion beyond allocated space */
    display: flex;
    justify-content: center;
    align-items: center; /* Keep center for button within its container */
}

.buddypress .tist-song-bb-song .song-meta-section {
    flex: 0 0 25%;
    max-width: 25%; /* Prevent expansion beyond allocated space */
    display: flex;
    justify-content: flex-start;
    align-items: center; /* Keep center for date within its container */
    text-align: left;
}

.buddypress .tist-song-bb-song .song-title {
    margin: 0 0 5px 0 !important;
    font-size: 1.4em !important;
    line-height: 1.3 !important;
    word-wrap: break-word;
    overflow-wrap: break-word; /* Better word wrapping */
    font-weight: normal;
}

.buddypress .tist-song-bb-song .song-reference {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    display: block; /* Ensure it's on its own line */
}

#buddypress .song-audio-section .play-button {
    min-width: fit-content;
    padding: 3px 17px 3px 10px;
    border-radius: 5px;
}


.buddypress .tist-song-bb-song .song-date {
    font-size: 12px;
    color: #000;
    white-space: nowrap; /* Prevent line breaks in date */
    display: block; /* Ensure it displays as block element */
}

/* Mobile Responsive: Stack vertically on small screens */
@media (max-width: 768px) {
    .buddypress .tist-song-bb-song .song-header {
        /* flex-direction: column; */
        gap: 10px;
    }
    
    .buddypress .tist-song-bb-song .song-title-section,
    .buddypress .tist-song-bb-song .song-audio-section,
    .buddypress .tist-song-bb-song .song-meta-section {
        flex: none;
        width: 100%;
    }
    
    .buddypress .tist-song-bb-song .song-audio-section {
        justify-content: flex-start;
    }
    
    .buddypress .tist-song-bb-song .song-meta-section {
        justify-content: flex-start;
    }
}

/* Override BuddyBoss theme button styles for our play buttons on profile pages */
.tist-song-notice.success .success-header h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a4731;
}

.tist-song-notice.success .success-content {
    margin-top: 10px;
}

.tist-song-notice.success .reference-section {
    margin: 15px 0;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #46b450;
    border-radius: 4px;
}

.tist-song-notice.success .reference-id {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 16px;
    color: #1a4731;
    background-color: #f0f8f1;
    padding: 2px 6px;
    border-radius: 3px;
}

.tist-song-notice.success .certificate-section {
    margin: 15px 0;
    padding: 12px;
    background-color: #f9f9f9;
    border-left: 4px solid #46b450;
    border-radius: 4px;
}

.tist-song-notice.success .certificate-section .button {
    margin: 8px 0;
    padding: 8px 16px;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
}

.tist-song-notice.success .next-steps {
    margin-top: 20px;
    padding: 15px;
    background-color: #f0f8f1;
    border-radius: 4px;
}

.tist-song-notice.success .next-steps ul {
    margin: 8px 0 0 20px;
    padding: 0;
}

.tist-song-notice.success .next-steps li {
    margin: 5px 0;
    color: #333;
}

/* ====== ENHANCED CHECKBOX STYLING FOR PROMINENCE ====== */
#tist-song-vault-form input[type="checkbox"],
.tist-song-form input[type="checkbox"],
.form-row input[type="checkbox"] {
    width: 1.5em !important;
    height: 1.5em !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    background-color: #fff !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    margin-right: 5px !important;
    margin-top: -2px !important;
    position: relative !important;
    vertical-align: middle !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

#tist-song-vault-form input[type="checkbox"]:hover,
.tist-song-form input[type="checkbox"]:hover,
.form-row input[type="checkbox"]:hover {
    border-color: var(--tist-blue) !important;
    box-shadow: 0 0 5px rgba(30, 115, 190, 0.3) !important;
}

#tist-song-vault-form input[type="checkbox"]:checked,
.tist-song-form input[type="checkbox"]:checked,
.form-row input[type="checkbox"]:checked {
    background-color: var(--tist-blue) !important;
    border-color: var(--tist-blue) !important;
}

#tist-song-vault-form input[type="checkbox"]:checked::after,
.tist-song-form input[type="checkbox"]:checked::after,
.form-row input[type="checkbox"]:checked::after {
    content: "✓" !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

#tist-song-vault-form input[type="checkbox"]:focus,
.tist-song-form input[type="checkbox"]:focus,
.form-row input[type="checkbox"]:focus {
    outline: 2px solid var(--tist-blue) !important;
    outline-offset: 2px !important;
}

/* Ensure checkbox labels are clickable and prominent */
.form-row label[for] {
    cursor: pointer !important;
    font-weight: 600 !important;
}

/* Special styling for required checkboxes */
.form-row input[type="checkbox"][required] {
    border-color: #dc3232 !important;
    border-width: 3px !important;
}

.form-row input[type="checkbox"][required]:checked {
    border-color: var(--tist-blue) !important;
}


/* ====== DELETE BUTTON STYLING ====== */
.delete-entry-btn {
    background-color: #fff !important;
    border: 1px solid #dc3545 !important;
    color: #dc3545 !important;
    transition: all 0.2s ease !important;
}

.delete-entry-btn:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
}

.delete-entry-btn .dashicons {
    color: inherit;
}

/* ====== DELETE CONFIRMATION MODAL ====== */
.sbv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.sbv-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: sbv-modal-slide-in 0.2s ease-out;
}

@keyframes sbv-modal-slide-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sbv-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.sbv-modal-close:hover {
    background-color: #f0f0f0;
    color: #333;
}

.sbv-modal-header {
    text-align: center;
    padding: 30px 30px 15px;
}

.sbv-modal-header h3 {
    margin: 15px 0 0;
    font-size: 22px;
    color: #333;
}

.sbv-modal-body {
    padding: 0 30px 20px;
    color: #555;
}

.sbv-modal-body .delete-warning {
    font-size: 16px;
    text-align: center;
    margin-bottom: 20px;
}

.sbv-modal-body .delete-entry-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.sbv-modal-body .delete-entry-info p {
    margin: 5px 0;
    font-size: 14px;
}

.sbv-modal-body .delete-consequences {
    font-size: 14px;
    margin-bottom: 10px;
}

.sbv-modal-body .delete-list {
    margin: 0 0 15px 20px;
    padding: 0;
    font-size: 13px;
    color: #666;
}

.sbv-modal-body .delete-list li {
    margin: 6px 0;
}

.sbv-modal-body .delete-final-warning {
    text-align: center;
    font-size: 14px;
    margin: 15px 0 0;
    padding: 10px;
    background: #fff5f5;
    border-radius: 6px;
}

.sbv-modal-footer {
    padding: 20px 30px;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.sbv-modal-footer .button {
    padding: 10px 20px !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    min-height: auto !important;
    height: auto !important;
}

.sbv-modal-footer .sbv-modal-cancel {
    background: #fff !important;
    border: 1px solid #ddd !important;
    color: #666 !important;
}

.sbv-modal-footer .sbv-modal-cancel:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}

.sbv-modal-footer .button-danger {
    background: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    color: #fff !important;
}

.sbv-modal-footer .button-danger:hover {
    background: #c82333 !important;
    border-color: #bd2130 !important;
}

.sbv-modal-footer .button-danger:disabled {
    background: #e9a0a8 !important;
    border-color: #e9a0a8 !important;
    cursor: not-allowed;
}

/* ====== DELETE NOTIFICATION ====== */
.sbv-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 350px;
}

.sbv-notification.show {
    transform: translateX(0);
}

.sbv-notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.sbv-notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ====== RESPONSIVE MODAL ====== */
@media (max-width: 540px) {
    .sbv-modal-content {
        margin: 10px;
        max-width: calc(100% - 20px);
    }
    
    .sbv-modal-header,
    .sbv-modal-body {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .sbv-modal-footer {
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .sbv-modal-footer .button {
        width: 100%;
        text-align: center;
    }
}
