/* Enhanced fish-public-29.css - All conflicts resolved and dynamic colors implemented */

/* Chat Message Styles */
#fish_custom_chat_box {
    background: #F7F7F7;
}

#fish_custom_chat_box .fish_message_form_wrapper {
    position: relative;
    font-weight: 400;
    line-height: 1.25em;
    letter-spacing: 0.025em;
    color: #333;
    padding: 0 1rem 1rem !important;
}

#fish_custom_chat_box #fish_message_input {
    border: 2px solid var(--fish-primary, #333333);
    width: 100%;
    height: 48px;
    background-image: none;
    background-color: white;
    padding: 15px;
    border-radius: 1.125rem;
    flex-grow: 2;
}

#fish_custom_chat_box #fish_message_send {
    position: absolute;
    right: 1rem;
    background: var(--fish-primary, #333333);
    border: 0;
    color: var(--fish-primary-text, white);
    height: 48px;
    top: 0;
    bottom: 0;
    width: 80px;
    border-radius: 0px 1.125rem 1.125rem 0px;
    cursor: pointer;
}

#fish_custom_chat_box .fish_messages_wrapper h2 {
    font-size: 18px !important;
    margin: 5px 0 16px !important;
    padding: 0 !important;
    color: #333 !important;
}

#fish_custom_chat_box .fish_messages_wrapper {
    max-height: 500px;
    overflow-y: auto;
    padding: 1rem;
    flex-shrink: 2;
}

#fish_custom_chat_box .fish_chat_message {
    margin-bottom: 10px;
}

#fish_custom_chat_box .fish_message_content {
    border-radius: 5px;
    padding: 10px;
    max-width: 80%;
    display: inline-block;
    box-sizing: border-box;
    padding: 0.5rem 1rem;
    background: #FFF;
    border-radius: 1.125rem 1.125rem 1.125rem 0;
    max-width: 66%;
    text-transform: none;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}

#fish_custom_chat_box .fish_message_time {
    font-size: 0.8em;
    color: #333;
    margin-top: 2px;
}

#fish_custom_chat_box .fish_chat_message.fish_right {
    text-align: right;
}

#fish_custom_chat_box .fish_chat_message.fish_right .fish_message_content {
    border-radius: 1.125rem 1.125rem 0 1.125rem;
    background: var(--fish-primary, #333) !important;
    color: var(--fish-primary-text, white);
}

#fish_custom_chat_box .fish_chat_message.fish_left {
    text-align: left;
    color: #333333 !important;
}

/* Main Wrapper Styles */
.fish_public_files_wrapper {
    margin: auto;
}

.dt-layout-cell.dt-layout-full {
    overflow: auto;
}

.dt-layout-row,
#fish-files-table-2_info,
#fish-files-table_info {
    color: #333;
}

/* Message/Note styling on download page */
.fish_public_files_wrapper .fish_message_heading {
    font-size: 17px;
    color: var(--fish-main-text, #333) !important;  /* Use main text color, not heading */
    margin-top: 25px;      /* ADD THIS - creates space above the note */
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: initial;
}

/* Message/Note styling on download page - targeting the ID */
#fish_message_heading {
    margin-top: 25px;
    color: var(--fish-main-text, #333) !important;
}

.fish_empty_files {
    text-align: center;
}

#fish_upload_wrapper {
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
}

body .fish_upload_heading h2 {
    color: var(--fish-primary, #333) !important;
    font-size: 26px;
    padding: unset;
}

body #fish-files-table_wrapper,
body #fish-files-table-2_wrapper {
    border-bottom: 1px solid #ddd;
    margin-bottom: 40px;
    padding-bottom: 40px;
    margin-top: 10px;
}

body #fish-files-table_wrapper {
    border: unset !important;
    margin: unset !important;
}

/* Main Form Wrapper */
#fish-upload-form {
    font-family: 'Raleway', sans-serif;
    margin: 20px auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 50px;
}

/* File Upload Section */
.fish-file-upload {
    margin-bottom: 20px;
    position: relative;
    border: 2px dashed var(--fish-primary, #80C24A);
    padding: 25px;
    border-radius: 6px;
    text-align: center;
    background-color: var(--fish-accent, #f8f9fa);
}

.fish-file-upload label {
    display: block;
    font-size: 16px;
    color: var(--fish-secondary-text, #333);
    margin-bottom: 10px;
    margin-top: 15px;
}

#fish-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

#fish-file-list {
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

/* Message Field Section */
.fish-message-field {
    margin-bottom: 20px;
}

.fish-message-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: var(--fish-secondary-text, #333);
}

#fish-upload-form textarea {
    width: 100%;
    height: 120px;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

/* Button Styles */
#fish-upload-form button {
    background-color: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, #ffffff);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#fish-upload-form button:hover {
    background-color: var(--fish-hover, #88c05a);
}

/* DataTable Override - Nuclear Option */
.dataTables_paginate .paginate_button,
.dataTables_paginate .paginate_button *,
.dataTables_paginate .paginate_button span {
    color: var(--fish-primary, #80C24A) !important;
}

.dataTables_paginate .paginate_button:hover,
.dataTables_paginate .paginate_button:hover * {
    color: var(--fish-primary-text, #ffffff) !important;
    background: var(--fish-primary, #80C24A) !important;
}

/* DataTable Styles */
.fish-files-table {
    width: 100%;
    color: #333333;
    border-collapse: collapse;
    margin-top: 20px;
}

.fish-files-table thead th {
    background-color: var(--fish-table-header, #80C24A);
    color: var(--fish-table-header-text, #ffffff);
    padding: 10px;
    text-align: left;
    border: 1px solid #ddd;
}

.fish-files-table tbody td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.fish-files-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.fish-files-table tbody tr:hover {
    background-color: #e0e0e0;
}

.fish-files-table .copy-link-button {
    background-color: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, #ffffff);
    border: none;
    transition: .3s;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.fish-files-table_wrapper {
    color: #333;
    margin-top: 15px;
}

.fish-files-table .copy-link-button:hover {
    background-color: var(--fish-hover, #333333);
}

#fish-files-table-2_length select,
#fish-files-table_length select {
    width: 70px;
}

#fish-files-table-2_length,
#fish-files-table-2_filter,
#fish-files-table_length,
#fish-files-table_filter {
    margin-bottom: 10px;
    color: #333333;
}

.fish-files-table thead th {
    color: var(--fish-table-header-text, white) !important;
}

#fish-files-table_paginate,
#fish-files-table-2_paginate {
    color: #333;
}

.fish_form_success {
    color: var(--fish-primary, #80C24A);
    background-color: var(--fish-accent, #f8f9fa);
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid var(--fish-primary, #80C24A);
}

/* File Preview Styles */
#fish-files-preview li {
    display: flex;
    flex-direction: row-reverse;
    width: fit-content;
    gap: 10px;
    word-wrap: anywhere;
    white-space: wrap;
    align-items: baseline;
}

#fish_user,
#fish_message {
    width: 100%;
}

#fish-files-preview ul {
    padding: 0;
}

#fish-post-title-by-user,
#fish-post-title {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 16px;
}

.fish_download_file {
    background: white;
    border: 1px solid gray;
    border-radius: 3px;
    width: 20px;
    vertical-align: middle;
    height: 20px;
}

.fish_remove_file.remove-file {
    background: white;
    border: 1px solid gray;
    border-radius: 3px;
}

/* Enhanced Audio Player Styles */
.fish-modern-audio-player {
    background: var(--fish-accent, #f8f9fa);
    border: 1px solid var(--fish-primary, #e9ecef);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
    max-width: 400px;
}

.fish-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fish-play-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background-color: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.fish-play-btn:hover {
    background-color: var(--fish-hover, #6fa83a);
}

.fish-audio-info {
    flex: 1;
}

.fish-audio-title {
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 2px;
    color: var(--fish-secondary-text, #333);
}

.fish-audio-time {
    font-size: 12px;
    color: #666;
}

.fish-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.fish-progress-container {
    position: relative;
    height: 6px;
    background: #e9ecef;
    border-radius: 3px;
    cursor: pointer;
}

.fish-progress-bar {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    position: relative;
    transition: width 0.1s;
    background-color: var(--fish-primary, #80C24A);
}

.fish-progress-handle {
    position: absolute;
    right: -6px;
    top: -3px;
    width: 12px;
    height: 12px;
    background: var(--fish-primary, #80C24A);
    border-radius: 50%;
    cursor: pointer;
}

/* Responsive Design */
@media screen and (max-width: 640px) {
    #fish-files-table-2_wrapper .dataTables_filter,
    #fish-files-table-2_wrapper .dataTables_length,
    #fish-files-table_wrapper .dataTables_length,
    #fish-files-table_wrapper .dataTables_filter {
        text-align: left;
    }

    .fish-modern-audio-player {
        max-width: 100%;
    }

    #fish-upload-form {
        margin: 10px;
        padding: 20px;
    }
}

/* NUCLEAR OPTION - Force pagination text colors */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
table.dataTable + .dataTables_wrapper .dataTables_paginate .paginate_button,
div.dataTables_wrapper div.dataTables_paginate .paginate_button,
.fish-files-table_wrapper .dataTables_paginate .paginate_button,
#fish-files-table_wrapper .dataTables_paginate .paginate_button,
#fish-files-table-2_wrapper .dataTables_paginate .paginate_button {
    color: #FF6600 !important;
    background: #f0f0f0 !important;
    border: 1px solid #FF6600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.fish-files-table_wrapper .dataTables_paginate .paginate_button:hover,
#fish-files-table_wrapper .dataTables_paginate .paginate_button:hover,
#fish-files-table-2_wrapper .dataTables_paginate .paginate_button:hover {
    color: white !important;
    background: #FF6600 !important;
}

/* Target everything inside pagination buttons */
.dataTables_paginate .paginate_button *,
.dataTables_paginate .paginate_button span,
.dataTables_paginate .paginate_button a {
    color: inherit !important;
}

/* ADD THESE STYLES TO YOUR fish-public-29.css FILE */

/* Heading Text Color Controls */
body .fish_upload_heading h2,
.fish_public_files_wrapper h1,
.fish_public_files_wrapper h2,
.fish_public_files_wrapper h3 {
    color: var(--fish-heading-text, #80C24A) !important;
}

/* Main Text Color Controls */
.dataTables_length label,
.dataTables_filter label,
.dataTables_info,
.dt-layout-row,
#fish-files-table-2_info,
#fish-files-table_info,
#fish-files-table-2_length,
#fish-files-table-2_filter,
#fish-files-table_length,
#fish-files-table_filter {
    color: var(--fish-main-text, #333333) !important;
}

/* DataTable Controls - Main Text Color */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--fish-main-text, #333333) !important;
}

/* Update Pagination with Primary Color (fixing your orange issue) */
.dataTables_wrapper .dataTables_paginate .paginate_button,
.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled,
table.dataTable + .dataTables_wrapper .dataTables_paginate .paginate_button,
div.dataTables_wrapper div.dataTables_paginate .paginate_button,
.fish-files-table_wrapper .dataTables_paginate .paginate_button,
#fish-files-table_wrapper .dataTables_paginate .paginate_button,
#fish-files-table-2_wrapper .dataTables_paginate .paginate_button {
    color: var(--fish-primary, #80C24A) !important;
    background: var(--fish-accent, #f0f0f0) !important;
    border: 1px solid var(--fish-primary, #80C24A) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.fish-files-table_wrapper .dataTables_paginate .paginate_button:hover,
#fish-files-table_wrapper .dataTables_paginate .paginate_button:hover,
#fish-files-table-2_wrapper .dataTables_paginate .paginate_button:hover {
    color: var(--fish-primary-text, white) !important;
    background: var(--fish-primary, #80C24A) !important;
}

/* Target everything inside pagination buttons */
.dataTables_paginate .paginate_button *,
.dataTables_paginate .paginate_button span,
.dataTables_paginate .paginate_button a {
    color: inherit !important;
}

/* CUSTOM AUDIO PLAYER STYLES - Add to fish-public-29.css */

/* ============================================
   ELEGANT AUDIO PLAYER STYLING
   ============================================ */

/* Hide default ugly audio player, replace with custom */
.fish-files-table audio[controls] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: 40px;
    margin: 5px 0;
}

/* Style the native audio controls to be more elegant */
audio::-webkit-media-controls-panel {
    background-color: var(--fish-accent, #f8f9fa);
    border-radius: 8px;
}

audio::-webkit-media-controls-play-button {
    background-color: var(--fish-primary, #80C24A);
    border-radius: 50%;
    width: 36px;
    height: 36px;
}

audio::-webkit-media-controls-timeline {
    background-color: var(--fish-primary, #80C24A);
    border-radius: 25px;
    margin: 0 10px;
}

audio::-webkit-media-controls-current-time-display,
audio::-webkit-media-controls-time-remaining-display {
    color: var(--fish-main-text, #333);
    font-size: 11px;
}

/* Better audio container */
.fish-files-table td audio {
    background: transparent;
    border: none;
    outline: none;
}

/* ============================================
   FIX TEXT COLORS IN TABLE
   ============================================ */

/* TITLE COLUMN - Use Main Text Color */
.fish-files-table tbody td:first-child,
.fish-files-table tbody td:first-child a {
    color: var(--fish-main-text, #333333) !important;
    font-weight: 500;
}

/* FILENAME TEXT (below audio players) - Use Main Text Color */
.fish-files-table tbody td a,
.fish-files-table tbody td {
    color: var(--fish-main-text, #333333) !important;
}

/* DATE COLUMN - Use Main Text Color */
.fish-files-table tbody td:last-child {
    color: var(--fish-main-text, #333333) !important;
}

/* Audio file download links */
.fish-files-table a[download] {
    color: var(--fish-main-text, #333333) !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    margin-top: 3px;
}

.fish-files-table a[download]:hover {
    color: var(--fish-primary, #80C24A) !important;
}

/* Music note icon styling */
.fish-files-table a[download]::before {
    content: "♪";
    font-size: 14px;
    color: var(--fish-primary, #80C24A);
}

/* ============================================
   ELEGANT WAVEFORM-STYLE PLAYER (OPTIONAL)
   If you want to replace with custom player
   ============================================ */

/* Container for custom audio player */
.fish-audio-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--fish-accent, #f8f9fa);
    border-radius: 8px;
    margin: 5px 0;
}

/* Custom play button */
.fish-custom-play {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.fish-custom-play:hover {
    background: var(--fish-hover, #6fa83a);
    transform: scale(1.05);
}

/* Waveform-style progress bar */
.fish-waveform {
    flex: 1;
    height: 32px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 2px;
}

.fish-waveform-bar {
    flex: 1;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        transparent 30%, 
        var(--fish-primary, #80C24A) 30%, 
        var(--fish-primary, #80C24A) 70%, 
        transparent 70%, 
        transparent 100%);
    border-radius: 2px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

.fish-waveform-bar.active {
    opacity: 1;
}

.fish-waveform-bar:nth-child(odd) {
    height: 60%;
}

.fish-waveform-bar:nth-child(3n) {
    height: 80%;
}

.fish-waveform-bar:nth-child(5n) {
    height: 40%;
}

/* Audio info below player */
.fish-audio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    font-size: 12px;
    color: var(--fish-main-text, #333);
}

.fish-audio-filename {
    color: var(--fish-main-text, #333) !important;
    font-weight: 500;
}

.fish-audio-duration {
    color: #666;
    font-size: 11px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media screen and (max-width: 768px) {
    .fish-audio-container {
        padding: 8px;
        gap: 8px;
    }
    
    .fish-custom-play {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }
    
    .fish-waveform {
        height: 28px;
    }
}

/* ============================================
   ENSURE TABLE CELL STYLING
   ============================================ */

/* Make sure table cells have proper spacing for audio players */
.fish-files-table tbody td {
    padding: 12px !important;
    vertical-align: middle;
}

/* Center audio player vertically in cell */
.fish-files-table tbody td audio {
    vertical-align: middle;
}
/* ============================================
   CUSTOM AUDIO PLAYER STYLES - THREE VARIANTS
   ============================================ */

/* IMPORTANT: Fix for filename constraining player width */
.fish-files-table tbody td {
    min-width: 0 !important; /* Allow cell to shrink */
}

/* Base player container - FIXED WIDTH */
.fish-modern-audio-player,
.fish-classic-audio-player,
.fish-minimal-audio-player {
    width: 100% !important;
    max-width: 400px !important; /* Fixed maximum width */
    min-width: 300px !important; /* Fixed minimum width */
    margin: 10px 0;
    box-sizing: border-box;
}

/* Ensure audio element is hidden */
.fish-modern-audio-player audio,
.fish-classic-audio-player audio,
.fish-minimal-audio-player audio {
    display: none !important;
}

/* ============================================
   MODERN STYLE - Rounded, colorful, like example
   ============================================ */

.fish-modern-audio-player {
    background: var(--fish-accent, #f5f5f5);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(0,0,0,0.08);
}

.fish-modern-audio-player .fish-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.fish-modern-audio-player .fish-play-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fish-modern-audio-player .fish-play-btn:hover {
    background: var(--fish-hover, #6fa83a);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.fish-modern-audio-player.playing .fish-play-btn {
    background: var(--fish-primary, #80C24A);
}

.fish-modern-audio-player .fish-audio-info {
    flex: 1;
    min-width: 0; /* Important for text truncation */
}

.fish-modern-audio-player .fish-audio-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--fish-main-text, #333);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fish-modern-audio-player .fish-audio-time {
    font-size: 11px;
    color: #666;
    font-family: monospace;
}

.fish-modern-audio-player .fish-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.fish-modern-audio-player .fish-volume-btn:hover {
    opacity: 1;
}

.fish-modern-audio-player .fish-progress-container {
    position: relative;
    height: 8px;
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
    cursor: pointer;
    overflow: hidden;
}

.fish-modern-audio-player .fish-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--fish-primary, #80C24A);
    border-radius: 4px;
    transition: width 0.1s linear;
    position: relative;
}

.fish-modern-audio-player .fish-progress-handle {
    display: none; /* Simpler without handle */
}

/* ============================================
   CLASSIC STYLE - Simple, elegant waveform
   ============================================ */

.fish-classic-audio-player {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    padding: 12px;
}

.fish-classic-audio-player .fish-audio-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.fish-classic-audio-player .fish-play-btn {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s ease;
}

.fish-classic-audio-player .fish-play-btn:hover {
    background: var(--fish-hover, #6fa83a);
}

.fish-classic-audio-player .fish-audio-info {
    flex: 1;
    min-width: 0;
}

.fish-classic-audio-player .fish-audio-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--fish-main-text, #333);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fish-classic-audio-player .fish-audio-time {
    font-size: 10px;
    color: #999;
    font-family: monospace;
}

.fish-classic-audio-player .fish-volume-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
}

.fish-classic-audio-player .fish-volume-btn:hover {
    opacity: 1;
}

.fish-classic-audio-player .fish-progress-container {
    position: relative;
    height: 6px;
    background: rgba(0,0,0,0.08);
    border-radius: 3px;
    cursor: pointer;
}

.fish-classic-audio-player .fish-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--fish-primary, #80C24A);
    border-radius: 3px;
    transition: width 0.1s linear;
}

/* ============================================
   MINIMAL STYLE - Ultra-simple, like your example
   ============================================ */

.fish-minimal-audio-player {
    background: transparent;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fish-minimal-audio-player .fish-audio-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fish-minimal-audio-player .fish-play-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s ease;
}

.fish-minimal-audio-player .fish-play-btn:hover {
    background: var(--fish-hover, #6fa83a);
    transform: scale(1.08);
}

.fish-minimal-audio-player .fish-audio-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.fish-minimal-audio-player .fish-audio-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--fish-main-text, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.fish-minimal-audio-player .fish-audio-time {
    font-size: 11px;
    color: #999;
    font-family: monospace;
    white-space: nowrap;
}

.fish-minimal-audio-player .fish-volume-btn {
    display: none; /* Minimal = no volume control */
}

.fish-minimal-audio-player .fish-progress-container {
    position: relative;
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px;
    cursor: pointer;
    margin-top: 8px;
}

.fish-minimal-audio-player .fish-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--fish-primary, #80C24A);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* ============================================
   FALLBACK FOR NATIVE AUDIO PLAYERS
   ============================================ */

/* Style native audio controls when custom player isn't used */
.fish-audio-player audio[controls] {
    width: 100% !important;
    max-width: 400px !important;
    min-width: 300px !important;
    height: 40px;
    margin: 5px 0;
}

.fish-audio-player .fish-audio-info {
    font-size: 12px;
    color: var(--fish-main-text, #333) !important;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media screen and (max-width: 768px) {
    .fish-modern-audio-player,
    .fish-classic-audio-player,
    .fish-minimal-audio-player,
    .fish-audio-player audio[controls] {
        max-width: 100% !important;
        min-width: 280px !important;
    }

    .fish-modern-audio-player {
        padding: 12px;
    }

    .fish-modern-audio-player .fish-play-btn {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .fish-classic-audio-player .fish-play-btn {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .fish-modern-audio-player .fish-audio-title,
    .fish-classic-audio-player .fish-audio-title,
    .fish-minimal-audio-player .fish-audio-title {
        font-size: 12px;
    }
}

@media screen and (max-width: 480px) {
    .fish-modern-audio-player,
    .fish-classic-audio-player,
    .fish-minimal-audio-player {
        min-width: 100% !important;
    }
}
/* ============================================
/* ============================================
   IMPROVED WAVEFORM AUDIO PLAYER - V2
   Performance optimized, realistic waveform
   ============================================ */

/* Container for player + download button */
.fish-waveform-player-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    max-width: 550px;
}

/* Main player container - FIXED WIDTH */
.fish-waveform-player {
    flex: 1;
    min-width: 400px;
    max-width: 480px;
    background: var(--fish-accent, #f5f5f5);
    border-radius: 10px;
    padding: 12px 15px;
    border: 1px solid rgba(0,0,0,0.08);
}

/* Top row: Play button + Waveform */
.fish-waveform-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

/* Play button - CENTERED ICON */
.fish-waveform-player .fish-play-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 0;
}

.fish-waveform-player .fish-play-btn:hover {
    background: var(--fish-hover, #6fa83a);
    transform: scale(1.05);
}

/* Center icons properly */
.fish-play-icon,
.fish-pause-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* Waveform container */
.fish-waveform {
    flex: 1;
    height: 50px;
    display: flex;
    align-items: center;
    gap: 1px;
    cursor: pointer;
    padding: 0 5px;
    position: relative;
}

/* Individual waveform bars - THINNER, MORE VISIBLE */
.fish-waveform-bar {
    flex: 1;
    min-width: 2px;
    max-width: 3px;
    background: var(--fish-primary, #80C24A); /* BRIGHT when not played */
    opacity: 0.7; /* VISIBLE, not too light */
    border-radius: 1px;
    transition: opacity 0.2s;
    position: relative;
}

/* Played bars - DARKER */
.fish-waveform-bar.active {
    opacity: 0.3; /* DARK where played (opposite of before) */
}

/* Hover effect */
.fish-waveform:hover .fish-waveform-bar {
    opacity: 0.85;
}

/* More realistic waveform heights - varied pattern */
.fish-waveform-bar:nth-child(1) { height: 45%; }
.fish-waveform-bar:nth-child(2) { height: 65%; }
.fish-waveform-bar:nth-child(3) { height: 85%; }
.fish-waveform-bar:nth-child(4) { height: 60%; }
.fish-waveform-bar:nth-child(5) { height: 75%; }
.fish-waveform-bar:nth-child(6) { height: 95%; }
.fish-waveform-bar:nth-child(7) { height: 70%; }
.fish-waveform-bar:nth-child(8) { height: 55%; }
.fish-waveform-bar:nth-child(9) { height: 80%; }
.fish-waveform-bar:nth-child(10) { height: 90%; }
.fish-waveform-bar:nth-child(11) { height: 65%; }
.fish-waveform-bar:nth-child(12) { height: 50%; }
.fish-waveform-bar:nth-child(13) { height: 70%; }
.fish-waveform-bar:nth-child(14) { height: 85%; }
.fish-waveform-bar:nth-child(15) { height: 60%; }
.fish-waveform-bar:nth-child(16) { height: 45%; }
.fish-waveform-bar:nth-child(17) { height: 65%; }
.fish-waveform-bar:nth-child(18) { height: 80%; }
.fish-waveform-bar:nth-child(19) { height: 55%; }
.fish-waveform-bar:nth-child(20) { height: 70%; }
.fish-waveform-bar:nth-child(21) { height: 90%; }
.fish-waveform-bar:nth-child(22) { height: 60%; }
.fish-waveform-bar:nth-child(23) { height: 50%; }
.fish-waveform-bar:nth-child(24) { height: 75%; }
.fish-waveform-bar:nth-child(25) { height: 85%; }
.fish-waveform-bar:nth-child(26) { height: 95%; }
.fish-waveform-bar:nth-child(27) { height: 70%; }
.fish-waveform-bar:nth-child(28) { height: 55%; }
.fish-waveform-bar:nth-child(29) { height: 80%; }
.fish-waveform-bar:nth-child(30) { height: 65%; }
.fish-waveform-bar:nth-child(31) { height: 50%; }
.fish-waveform-bar:nth-child(32) { height: 60%; }
.fish-waveform-bar:nth-child(33) { height: 75%; }
.fish-waveform-bar:nth-child(34) { height: 65%; }
.fish-waveform-bar:nth-child(35) { height: 55%; }
.fish-waveform-bar:nth-child(36) { height: 70%; }
.fish-waveform-bar:nth-child(37) { height: 85%; }
.fish-waveform-bar:nth-child(38) { height: 60%; }
.fish-waveform-bar:nth-child(39) { height: 50%; }
.fish-waveform-bar:nth-child(40) { height: 45%; }
.fish-waveform-bar:nth-child(41) { height: 65%; }
.fish-waveform-bar:nth-child(42) { height: 80%; }
.fish-waveform-bar:nth-child(43) { height: 70%; }
.fish-waveform-bar:nth-child(44) { height: 55%; }
.fish-waveform-bar:nth-child(45) { height: 75%; }
.fish-waveform-bar:nth-child(46) { height: 90%; }
.fish-waveform-bar:nth-child(47) { height: 65%; }
.fish-waveform-bar:nth-child(48) { height: 50%; }
.fish-waveform-bar:nth-child(49) { height: 70%; }
.fish-waveform-bar:nth-child(50) { height: 85%; }
.fish-waveform-bar:nth-child(51) { height: 60%; }
.fish-waveform-bar:nth-child(52) { height: 45%; }
.fish-waveform-bar:nth-child(53) { height: 65%; }
.fish-waveform-bar:nth-child(54) { height: 80%; }
.fish-waveform-bar:nth-child(55) { height: 70%; }
.fish-waveform-bar:nth-child(56) { height: 55%; }
.fish-waveform-bar:nth-child(57) { height: 75%; }
.fish-waveform-bar:nth-child(58) { height: 90%; }
.fish-waveform-bar:nth-child(59) { height: 65%; }
.fish-waveform-bar:nth-child(60) { height: 50%; }

/* Filename below waveform */
.fish-waveform-filename {
    font-size: 12px;
    font-weight: 500;
    color: var(--fish-main-text, #333);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-left: 52px;
}

/* Download button to the right - SAME COLOR AS PLAY BUTTON */
.fish-waveform-download {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 8px;
    background: var(--fish-primary, #80C24A);
    color: var(--fish-primary-text, white) !important; /* Same as play button */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    text-decoration: none;
}

.fish-waveform-download:hover {
    background: var(--fish-hover, #6fa83a);
    transform: scale(1.05);
    color: var(--fish-primary-text, white) !important; /* Keep same on hover */
}

/* Override any link color inheritance */
a.fish-waveform-download,
a.fish-waveform-download:visited,
a.fish-waveform-download:link {
    color: var(--fish-primary-text, white) !important;
}

/* Hide the audio element */
.fish-waveform-player audio {
    display: none !important;
}

/* Remove old list item styles */
#fish-files-preview li {
    list-style: none !important;
}

#fish-files-preview li::before {
    display: none !important;
}

/* Loading state */
.fish-waveform-player.loading .fish-waveform-bar {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* Mobile responsive */
@media screen and (max-width: 768px) {
    .fish-waveform-player-wrapper {
        max-width: 100%;
    }
    
    .fish-waveform-player {
        min-width: 300px;
    }
    
    .fish-waveform {
        height: 40px;
    }
    
    .fish-play-btn,
    .fish-waveform-download {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
}

@media screen and (max-width: 480px) {
    .fish-waveform-player {
        min-width: 100%;
    }
    
    .fish-waveform {
        gap: 0.5px;
    }
}
