/* =========================================================================
   ADMIN STEPPER - Vertical Linear Stepper para crear música
   ========================================================================= */

.musica-create-stepper {
    max-width: 1300px;
    margin: 0 auto;
}

/* ----- Stepper Navigation (Left Panel) ----- */

.stepper-nav {
    padding: 1.5rem 1rem;
    position: sticky;
    top: 70px;
    border-radius: 0.5rem;
    background: var(--theme-background-color, #fff);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.dark-mode .stepper-nav {
    background: #343a40;
    border-color: rgba(255, 255, 255, 0.1);
}

.stepper-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 0.75rem;
    border-radius: 0.5rem;
    cursor: default;
    opacity: 0.45;
    transition: all 0.3s ease;
    user-select: none;
}

.stepper-step.active {
    opacity: 1;
    background: rgba(102, 126, 234, 0.08);
}

.stepper-step.completed {
    opacity: 1;
    cursor: pointer;
}

.stepper-step.completed:hover {
    background: rgba(40, 167, 69, 0.08);
}

.step-indicator {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.dark-mode .step-indicator {
    background: #495057;
    color: #adb5bd;
}

.stepper-step.active .step-indicator {
    background: #4b8ca9;
    color: #fff;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.stepper-step.completed .step-indicator {
    background: #28a745;
    color: #fff;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.step-number {
    display: inline;
}

.step-check {
    display: none;
}

.stepper-step.completed .step-number {
    display: none;
}

.stepper-step.completed .step-check {
    display: inline;
}

.step-label {
    flex: 1;
    min-width: 0;
}

.step-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dark-mode .step-title {
    color: #e9ecef;
}

.step-subtitle {
    font-size: 0.78rem;
    color: #999;
    margin-top: 2px;
}

.dark-mode .step-subtitle {
    color: #b3b3b3;
}

/* Connector lines */
.stepper-connector {
    width: 2px;
    height: 28px;
    background: #dee2e6;
    margin-left: calc(0.75rem + 20px);
    transition: background 0.3s ease;
}

.dark-mode .stepper-connector {
    background: #495057;
}

.stepper-connector.completed {
    background: #28a745;
}

/* ----- Step Content (Right Panel) ----- */

.step-content {
    animation: stepFadeIn 0.35s ease;
}

.step-content.hidden {
    display: none !important;
}

@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-panel {
    background: var(--theme-background-color, #fff);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    padding: 1.75rem;
}

.dark-mode .step-panel {
    background: #343a40;
    border-color: rgba(255, 255, 255, 0.1);
}

.step-panel-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-mode .step-panel-header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

.step-panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.step-panel-header .step-badge {
    background: #4b8ca9;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ----- Navigation Buttons ----- */

.step-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dark-mode .step-navigation {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.btn-step-next {
    background: #4b8ca9;
    color: #fff;
    border: none;
    padding: 0.6rem 1.75rem;
    border-radius: 0.4rem;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-step-next:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-step-prev {
    background: transparent;
    color: #4b8ca9;
    border: 1px solid #4b8ca9;
    padding: 0.6rem 1.5rem;
    border-radius: 0.4rem;
    font-weight: 500;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-step-prev:hover {
    background: rgba(102, 126, 234, 0.08);
    color: #5a6fd6;
}

.btn-publish {
    background: #ffcc00;
    color: #000;
    border: none;
    padding: 0.7rem 2rem;
    border-radius: 0.4rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-publish:hover {
    background: #e6b800;
    color: #000;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

label.label-forms {
    margin-bottom: 0px;
}

.dark-mode .file-upload, 
.dark-mode .clasefileupload {
    background: #383f4d !important;    
}

.file-upload, .clasefileupload{
    background: #ffffff;
    min-height: 149px;
}

button#btn-mastering-use {
    min-width: 100px;
}

.file-upload-icon {
    display: inline-block;
    float: left;
}


.div_form_field.field-musica-nombre_tema.required, .div_form_field.field-artista-selector.required, .classpadding20izq  {
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.div_form_field {
    background: rgba(102, 126, 234, 0.08);
    padding: 8px;
    border-radius: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    padding-left: 10px;
    padding-right: 10px;
}

div#fileinfo-audio, div#fileinfo-video {
    display: none !important;
}

.nomargin_div{
    
}


.m3step2{
    margin: 1rem !important;
    background: rgba(102, 126, 234, 0.08);
    padding: 13px;
    border: 1px solid #ededed;
    border-radius: 10px;
    margin-bottom: 40px !important;
    padding-bottom: 33px;
}
/* ----- Upload Zones (extends formulario-upload.css) ----- */

.upload-zone-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding-left: 20px;
    padding-right: 20px; 
}

button#btn-execute-mastering {
    background: #4b8ca9;
    color: #fff;
}

@media (max-width: 768px) {
    .upload-zone-row {
        grid-template-columns: 1fr;
    }
}

.upload-zone-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.file-info-display{
    display: none !important;
}
.file-upload-icon p, .p_bajo{ padding: 0px !important; margin: 0px !important;}

.upload-zone-label .badge {
    font-weight: 500;
    font-size: 0.7rem;
}

/* ----- AI Action Buttons ----- */

.btn-ai-action {
    background: linear-gradient(135deg, #4b8ca9 0%, #4c9cdb 100%);
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.coloreslineas {
    background: linear-gradient(135deg, #4b8ca9 0%, #4c9cdb 100%);
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    
}

.btn-ai-action:hover {
    opacity: 0.9;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
}

.btn-ai-action:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-ai-action .spinner-border {
    width: 14px;
    height: 14px;
    border-width: 2px;
}

/* ----- Mastering Modal Styles ----- */

#masteringModal .modal-header {
    background: linear-gradient(135deg, #5a5a5a 0%, #607D8B 100%);
    color: #fff;
    border-bottom: none;
}

#masteringModal .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.mastering-profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0.85rem;
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.dark-mode .mastering-profile-item {
    border-color: #495057;
}


.dark-mode .preview-container {
    background: #2d2a2a;
}
.dark-mode .form-help {
    color: #e1e1e1; 
}

.mastering-profile-item:hover {
    border-color: #4b8ca9;
    background: rgba(102, 126, 234, 0.04);
}

.mastering-profile-item.selected {
    border-color: #4b8ca9;
    background: rgba(102, 126, 234, 0.08);
    box-shadow: 0 0 0 1px #4b8ca9;
}

.mastering-profile-item-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mastering-profile-values {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #dee2e6;
    border-radius: 0.4rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.dark-mode .mastering-profile-values {
    background: rgba(255, 255, 255, 0.03);
    border-color: #495057;
}

.profile-value-item {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.88rem;
}

.dark-mode .profile-value-item {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.profile-value-item:last-child {
    border-bottom: none;
}

.profile-value-label {
    font-weight: 600;
    color: #555;
}

.dark-mode .profile-value-label {
    color: #adb5bd;
}

.profile-value-data {
    color: #4b8ca9;
    font-weight: 500;
}

/* ----- Metadata Display ----- */

.metadata-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .metadata-grid {
        grid-template-columns: 1fr;
    }
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0.35rem;
    font-size: 0.88rem;
}

.dark-mode .metadata-item {
    background: rgba(255, 255, 255, 0.04);
}

.metadata-item .meta-label {
    font-weight: 600;
    color: #555;
}

.dark-mode .metadata-item .meta-label {
    color: #adb5bd;
}

.metadata-item .meta-value {
    color: #333;
}

.dark-mode .metadata-item .meta-value {
    color: #e9ecef;
}

/* ----- Preview Section ----- */

.preview-container {
    background: rgba(102, 126, 234, 0.08);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
}

.nomargin_div {
    margin-right: 0px !important;
    margin-left: 0px !important;
}

.preview-container audio,
.preview-container video {
    width: 100%;
    border-radius: 0.35rem;
}

.preview-container .preview-label {
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}

/* ----- Detected Badge ----- */

.detected-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: rgba(40, 167, 69, 0.12);
    color: #28a745;
    padding: 0.2rem 0.6rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

.dark-mode .detected-badge {
    background: rgba(40, 167, 69, 0.2);
}

/* ----- Cover Preview ----- */

.cover-preview-container {
    text-align: center;
    margin-top: 0.75rem;
}

.cover-preview-container img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* ----- Declaración ----- */

.declaracion-stepper {
    border: 1px solid #dee2e6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    padding-left: 30px;
}

label#declaracion-label {
    padding-left: 9px;
}

.dark-mode .declaracion-stepper {
    border-color: #495057;
}

/* ----- Loading Overlay ----- */

.stepper-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.stepper-loading-content {
    text-align: center;
    color: #fff;
}

.stepper-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #ffcc00;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* ----- Lyrics Sync Editor ----- */

.lyrics-editor {
    margin-top: 0.5rem;
}

.lyrics-player {
    background: #1a1a2e;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.lyrics-player-no-audio {
    color: #999;
    text-align: center;
    padding: 1rem;
    font-size: 0.88rem;
}

.lyrics-player-no-audio i {
    margin-right: 0.4rem;
}

.btn-lyrics-play {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #4b8ca9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.btn-lyrics-play:hover {
    background: #5a6fd6;
}

.lyrics-time-display {
    color: #ccc;
    font-size: 0.85rem;
    font-family: monospace;
    min-width: 100px;
}

.lyrics-speed-control select {
    background: #2a2a3e;
    color: #ccc;
    border-color: #444;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

#lyrics-waveform {
    border-radius: 0.35rem;
    overflow: hidden;
}

/* Captions container */
.lyrics-captions-container {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

.dark-mode .lyrics-captions-container {
    border-color: rgba(255, 255, 255, 0.1);
}

.lyrics-captions-header {
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.82rem;
    color: #666;
}

.lyrics-captions-header .lyrics-captions-duration {
    margin-left: 0.6rem;
    font-size: 0.75rem;
    font-family: monospace;
    color: #999;
    white-space: nowrap;
}

.dark-mode .lyrics-captions-header .lyrics-captions-duration {
    color: #6c757d;
}

.lyrics-captions-actions {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.lyrics-captions-header .btn-caption-clear-all,
.lyrics-captions-actions #guardar-letra-status {
    margin-left: auto;
}

.btn-copy-lyrics {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-copy-lyrics:hover {
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.35);
    background: rgba(37, 99, 235, 0.06);
}

.btn-copy-lyrics.is-copied {
    color: #198754;
    border-color: rgba(25, 135, 84, 0.3);
    background: rgba(25, 135, 84, 0.08);
}

.dark-mode .lyrics-captions-header {
    background: rgba(255, 255, 255, 0.04);
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #adb5bd;
}

.dark-mode .btn-copy-lyrics {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    color: #adb5bd;
}

.dark-mode .btn-copy-lyrics:hover {
    color: #8ec5ff;
    border-color: rgba(142, 197, 255, 0.35);
    background: rgba(142, 197, 255, 0.08);
}

.dark-mode .btn-copy-lyrics.is-copied {
    color: #8ce99a;
    border-color: rgba(140, 233, 154, 0.35);
    background: rgba(140, 233, 154, 0.08);
}

.btn-caption-clear-all {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-caption-clear-all:hover {
    background: #dc3545;
    color: #fff;
}

.lyrics-captions-list {
    max-height: 350px;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.lyrics-captions-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #999;
}

.lyrics-captions-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}

.lyrics-captions-empty p {
    margin: 0.25rem 0;
}

/* Caption line */
.lyrics-caption-line {
    display: grid;
    grid-template-columns: 30px 170px 1fr 26px 26px;
    gap: 0.4rem;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.2s;
}

.dark-mode .lyrics-caption-line {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.lyrics-caption-line:hover {
    background: rgba(102, 126, 234, 0.04);
}

#btnCapturarInicio, #btnCapturarFin {
    color:#4b8ca9
}


.form-group.field-musica-youtube_url {
    margin-bottom: 0px;
}

.lyrics-caption-line.active {
    background: #ffee6a; 
    border-left: 3px solid #4b8ca9;
    padding-left: calc(0.75rem - 3px);
}
#btn-fix-cover-accept {
    background: #4b98d0;
    color: #ffffff
}

.helpyoutube{
    margin-bottom: 0px !important;
    padding-bottom: 0px !important;
    margin-top: 0px !important;
    padding-top: 0px !important;
}


.dark-mode .lyrics-caption-line.active {
    background: rgba(102, 126, 234, 0.15);
}

.lyrics-caption-line .btn-caption-play {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #4b8ca9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all 0.2s;
    padding: 0;
}

.lyrics-caption-line .btn-caption-play:hover {
    background: rgba(102, 126, 234, 0.12);
}

.caption-time {
    display: flex;
    align-items: center;
    gap: 2px;
}

.caption-time .time-input {
    width: 50px;
    border: 1px solid transparent;
    background: transparent;
    text-align: center;
    font-size: 0.78rem;
    font-family: monospace;
    color: #666;
    padding: 2px 4px;
    border-radius: 3px;
    transition: all 0.2s;
}

.dark-mode .caption-time .time-input {
    color: #adb5bd;
}

.caption-time .time-input:hover,
.caption-time .time-input:focus {
    border-color: #4b8ca9;
    background: rgba(102, 126, 234, 0.06);
    outline: none;
}

.caption-time .time-input.overlap {
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.5);
    background: rgba(220, 53, 69, 0.06);
}

.caption-time .time-input.overlap:hover,
.caption-time .time-input.overlap:focus {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.caption-time .time-sep {
    color: #999;
    font-size: 0.75rem;
}

.lyrics-caption-line .caption-text {
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.88rem;
    min-height: 24px;
    outline: none;
    transition: background 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lyrics-caption-line .caption-text:hover {
    background: rgba(0, 0, 0, 0.03);
}

.dark-mode .lyrics-caption-line .caption-text:hover {
    background: rgba(255, 255, 255, 0.05);
}

.lyrics-caption-line .caption-text:focus {
    background: rgba(102, 126, 234, 0.06);
    white-space: normal;
}

.lyrics-caption-line .btn-caption-delete {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 3px;
    transition: all 0.2s;
    padding: 0;
    opacity: 0;
}

.lyrics-caption-line:hover .btn-caption-delete {
    opacity: 1;
}

.lyrics-caption-line .btn-caption-delete:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.lyrics-caption-line .btn-caption-add {
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 3px;
    transition: all 0.2s;
    padding: 0;
    opacity: 0;
}

.lyrics-caption-line:hover .btn-caption-add {
    opacity: 1;
}

.lyrics-caption-line .btn-caption-add:hover {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.caption-time .btn-mark-time {
    width: 18px;
    height: 18px;
    border: none;
    background: transparent;
    color: #b5b5b5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border-radius: 3px;
    transition: all 0.2s;
    padding: 0;
    opacity: 0;
    flex-shrink: 0;
}

.lyrics-caption-line:hover .caption-time .btn-mark-time {
    opacity: 1;
}

.caption-time .btn-mark-time:hover {
    background: rgba(75, 140, 169, 0.15);
    color: #4b8ca9;
}

.dark-mode .caption-time .btn-mark-time {
    color: #6c757d;
}

/* ----- Responsive ----- */

@media (max-width: 991px) {
    .stepper-nav {
        position: static;
        margin-bottom: 1.25rem;
    }

    .stepper-nav .stepper-step {
        padding: 0.5rem;
    }

    .stepper-nav .stepper-connector {
        height: 15px;
    }
}

@media (max-width: 576px) {
    .step-panel {
        padding: 1rem;
    }

    .step-navigation {
        flex-direction: column;
        gap: 0.75rem;
    }

    .step-navigation .btn-step-prev,
    .step-navigation .btn-step-next,
    .step-navigation .btn-publish {
        width: 100%;
        justify-content: center;
    }
}

/* =========================================================================
   ID3 Metadata Editor (Step 3)
   ========================================================================= */

#section-id3-editor {
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 0.5rem;
    padding: 1.25rem;
    background: rgba(102, 126, 234, 0.03);
}

.dark-mode #section-id3-editor {
    border-color: rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.06);
}

#section-id3-editor h5 {
    margin-bottom: 0.5rem;
}

/* ID3 Metadata button + indicator */

#section-id3-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

#section-id3-button{
    display: inline-block !important;
    margin-left: 40px;
}

#btn-open-id3-modal i.fas.fa-tags {
    color: #f9f9f9;
}
    
#section-tech-metadata i.fas.fa-info-circle {
    color: #9c9c9c;
}

.btn-id3-metadata {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: linear-gradient(135deg, #4b8ca9 0%, #4b8ca9b0 100%);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-id3-metadata:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.btn-id3-metadata .badge {
    font-size: 0.7rem;
    font-weight: 400;
}

.id3-saved-indicator {
    color: #10b981;
    font-size: 0.85rem;
    font-weight: 500;
    animation: id3FadeIn 0.3s ease;
}

@keyframes id3FadeIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ID3 Modal form labels */

#id3MetadataModal .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#id3MetadataModal .form-control {
    font-size: 0.88rem;
}

.id3-cover-preview-box {
    width: 120px;
    height: 120px;
    border: 2px dashed #dee2e6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.02);
}

.dark-mode .id3-cover-preview-box {
    border-color: #495057;
    background: rgba(255, 255, 255, 0.04);
}

.id3-cover-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#section-id3-editor .form-label {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

#section-id3-editor .form-control {
    font-size: 0.88rem;
}

#section-tech-metadata .metadata-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.75rem;
}

#section-tech-metadata .metadata-item {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
}

.dark-mode #section-tech-metadata .metadata-item {
    background: rgba(255, 255, 255, 0.05);
}

#section-tech-metadata .meta-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 0.15rem;
}

#section-tech-metadata .meta-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
}

#section-tech-metadata .metadata-grid-basic {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.75rem;
}

.dark-mode #section-tech-metadata .metadata-grid-basic {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

#section-tech-metadata .metadata-item-highlight {
    background: rgba(102, 126, 234, 0.06);
    border-left: 3px solid #667eea;
}

.dark-mode #section-tech-metadata .metadata-item-highlight {
    background: rgba(102, 126, 234, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.step-content {
     margin-bottom: 1.5rem;
}

/* ----- Clip Promocional (Step 3) ----- */

.audio-compact-clip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.audio-compact-clip audio {
    flex: 1;
    height: 36px;
    max-width: 682px;
}

.btn-capture-inicio {
    
    color: white;
    white-space: nowrap;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-capture-inicio:hover {
    
    color: white;
    transform: scale(1.02);
}

.btn-capture-fin {
    
    color: white;
    white-space: nowrap;
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-capture-fin:hover {
    color: white;
    transform: scale(1.02);
}

.clip-label {
    min-width: 66px;
    display: inline-block;
    padding-right: 0.5rem;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .audio-compact-clip {
        flex-wrap: wrap;
    }
    .audio-compact-clip audio {
        width: 100%;
        max-width: 100%;
    }
}


#ia-config-banner {
    background:#f5f2e9 !important; 
    display: none;
    padding: 0.6rem 1rem; 
    border-radius: 0.35rem; 
    font-size: 0.85rem; 
    margin: 1rem; 
    align-items: center; 
    gap: 0.5rem; 
    flex-wrap: wrap;
}


#btn-transcribe-lyrics {
    border-radius: 0.35rem 0 0 0.35rem !important;
}

button.btn.btn-ai-action.dropdown-toggle.dropdown-toggle-split {
    color: #fff;
}
