/* MP3 to MP4 Converter – Tool-specific styles */

/* ── Drop Zone (audio) ───────────────────────────────────── */
.mp3mp4-dropzone {
    border: 2px dashed rgba(116, 229, 0, 0.45);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    transition: border-color 0.25s, background 0.25s;
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.mp3mp4-dropzone:hover,
.mp3mp4-dropzone.drag-over {
    border-color: #74e500;
    background: rgba(116, 229, 0, 0.06);
}

.mp3mp4-dropzone .dz-icon {
    font-size: 3rem;
    color: #74e500;
    margin-bottom: 0.75rem;
}

.mp3mp4-dropzone .dz-label {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.mp3mp4-dropzone .dz-hint {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Options Panel ───────────────────────────────────────── */
.mp3mp4-options-panel {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.4rem 1.5rem;
}

.mp3mp4-section-title {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #74e500;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mp3mp4-options-panel label.form-label {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.mp3mp4-options-panel select,
.mp3mp4-options-panel input[type="text"] {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    border-radius: 8px;
    font-size: 0.93rem;
    transition: border-color 0.2s;
}

.mp3mp4-options-panel select:focus,
.mp3mp4-options-panel input[type="text"]:focus {
    outline: none;
    border-color: #74e500;
    box-shadow: 0 0 0 3px rgba(116, 229, 0, 0.18);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

/* ── Aspect Ratio Pills ──────────────────────────────────── */
.aspect-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.aspect-pill {
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 20px;
    padding: 0.3rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.aspect-pill:hover {
    border-color: #74e500;
    color: #74e500;
}

.aspect-pill.active {
    background: #74e500;
    border-color: #74e500;
    color: #000;
}

/* ── Background type tabs ────────────────────────────────── */
.bg-type-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 0.9rem;
}

.bg-type-tab {
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.bg-type-tab.active {
    color: #74e500;
    border-bottom-color: #74e500;
}

.bg-type-pane { display: none; }
.bg-type-pane.active { display: block; }

/* ── Color Pickers ───────────────────────────────────────── */
.color-swatch-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

input[type="color"] {
    width: 44px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: transparent;
    padding: 2px;
    cursor: pointer;
}

/* ── Range / Slider ──────────────────────────────────────── */
input[type="range"] {
    accent-color: #74e500;
    width: 100%;
}

.range-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
    margin-top: 0.2rem;
}

/* ── Canvas Preview ──────────────────────────────────────── */
.mp3mp4-preview-wrap {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-radius: 12px;
    overflow: hidden;
    min-height: 180px;
}

#previewCanvas {
    display: block;
    max-width: 100%;
    max-height: 320px;
    border-radius: 10px;
    object-fit: contain;
}

.mp3mp4-preview-label {
    position: absolute;
    top: 8px;
    left: 10px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 7px;
    border-radius: 6px;
}

/* ── File Info (audio) ───────────────────────────────────── */
.mp3mp4-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(116, 229, 0, 0.07);
    border: 1px solid rgba(116, 229, 0, 0.3);
    border-radius: 10px;
    padding: 0.6rem 1rem;
}

.mp3mp4-file-info .fi-icon {
    font-size: 1.5rem;
    color: #74e500;
    flex-shrink: 0;
}

.mp3mp4-file-info .fi-name {
    font-weight: 600;
    color: #fff;
    font-size: 0.95rem;
    word-break: break-all;
}

.mp3mp4-file-info .fi-size {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.8rem;
}

/* ── Progress / Status ───────────────────────────────────── */
.mp3mp4-progress-wrap {
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.07);
    height: 10px;
    margin: 0.5rem 0;
}

.mp3mp4-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #74e500, #99ff00);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.mp3mp4-status-text {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.6);
    min-height: 1.4em;
}

.mp3mp4-engine-bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    position: relative;
    margin: 0.5rem 0;
}

.mp3mp4-engine-bar::after {
    content: '';
    position: absolute;
    left: -40%;
    top: 0;
    height: 100%;
    width: 40%;
    background: linear-gradient(90deg, transparent, #74e500, transparent);
    animation: engine-sweep2 1.4s infinite;
}

@keyframes engine-sweep2 {
    0%   { left: -40%; }
    100% { left: 110%; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn-convert-primary {
    background: linear-gradient(135deg, #74e500 0%, #99ff00 100%);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.65rem 2rem;
    transition: opacity 0.2s, transform 0.15s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-convert-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
    color: #000;
}

.btn-convert-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.btn-cancel-secondary {
    background: transparent;
    border: 1px solid rgba(255, 80, 80, 0.5);
    color: #ff6060;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    transition: background 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-cancel-secondary:hover {
    background: rgba(255, 80, 80, 0.1);
    border-color: #ff6060;
}

.btn-start-over {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.65);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.55rem 1.3rem;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-start-over:hover {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ── Done State ──────────────────────────────────────────── */
.mp3mp4-done-card {
    background: rgba(116, 229, 0, 0.05);
    border: 1px solid rgba(116, 229, 0, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
}

.mp3mp4-done-card video {
    width: 100%;
    border-radius: 10px;
    max-height: 320px;
    background: #000;
    margin-bottom: 1rem;
}

.btn-download-video {
    background: #74e500;
    color: #000;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
}

.btn-download-video:hover {
    background: #99ff00;
    color: #000;
    transform: translateY(-1px);
}

/* ── CTA Card ────────────────────────────────────────────── */
.mp3mp4-cta-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.mp3mp4-cta-card .cta-icon {
    font-size: 1.8rem;
    color: #74e500;
    flex-shrink: 0;
}

.mp3mp4-cta-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.88rem;
}

.mp3mp4-cta-card a {
    color: #74e500;
    font-weight: 600;
    text-decoration: none;
}

.mp3mp4-cta-card a:hover { text-decoration: underline; }

/* ── Error Panel ─────────────────────────────────────────── */
.mp3mp4-error-card {
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.4);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    color: #ff8080;
}

.mp3mp4-error-card .err-title {
    font-weight: 700;
    color: #ff6060;
    margin-bottom: 0.4rem;
}

/* ── Info Sections ───────────────────────────────────────── */
.mp3mp4-info-section {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 1.5rem;
    margin-top: 1.5rem;
}

.mp3mp4-info-section h3 {
    color: #74e500;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.mp3mp4-info-section p,
.mp3mp4-info-section li {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    line-height: 1.65;
}

.mp3mp4-info-section ol,
.mp3mp4-info-section ul {
    padding-left: 1.25rem;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.mp3mp4-faq .accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 10px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.mp3mp4-faq .accordion-button {
    background: transparent;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: none;
}

.mp3mp4-faq .accordion-button:not(.collapsed) {
    background: rgba(116, 229, 0, 0.07);
    color: #74e500;
}

.mp3mp4-faq .accordion-button::after {
    filter: invert(1) brightness(2) sepia(1) hue-rotate(60deg) saturate(5);
}

.mp3mp4-faq .accordion-body {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    background: transparent;
    padding-top: 0.5rem;
}

/* ── Step Numbers ────────────────────────────────────────── */
.mp3mp4-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: #74e500;
    color: #000;
    font-weight: 800;
    font-size: 0.85rem;
    margin-right: 0.5rem;
}

.format-badge {
    display: inline-block;
    background: rgba(116, 229, 0, 0.12);
    border: 1px solid rgba(116, 229, 0, 0.3);
    color: #99ff00;
    border-radius: 20px;
    padding: 0.2rem 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.15rem;
}

/* ── State helpers ───────────────────────────────────────── */
[data-state] { display: none; }
[data-state].active { display: block; }

/* ── Image upload preview ─────────────────────────────────── */
#imgPreviewThumb {
    max-height: 100px;
    border-radius: 8px;
    display: none;
    margin-top: 0.5rem;
}

/* ── Compatibility checkbox ───────────────────────────────── */
.form-check-input:checked {
    background-color: #74e500;
    border-color: #74e500;
}

/* ── Notice banner ───────────────────────────────────────── */
.mp3mp4-notice {
    background: rgba(255, 193, 7, 0.07);
    border-left: 3px solid #ffc107;
    padding: 0.6rem 1rem;
    border-radius: 0 8px 8px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    margin-top: 0.75rem;
}

@media (max-width: 576px) {
    .mp3mp4-dropzone { min-height: 140px; padding: 1.25rem; }
    .aspect-pill { font-size: 0.78rem; padding: 0.25rem 0.65rem; }
    .mp3mp4-options-panel { padding: 1rem; }
    .bg-type-tab { padding: 0.35rem 0.65rem; font-size: 0.8rem; }
}
