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

/* ── Drop Zone ───────────────────────────────────────────── */
.mp4mp3-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;
}

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

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

.mp4mp3-dropzone .dz-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

/* ── Options Panel ───────────────────────────────────────── */
.mp4mp3-options-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.mp4mp3-options-card label {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
    display: block;
}

.mp4mp3-options-card select {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    border-radius: 8px;
    padding: 0.45rem 0.75rem;
    width: 100%;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    appearance: auto;
}

.mp4mp3-options-card select:focus {
    outline: none;
    border-color: #74e500;
    box-shadow: 0 0 0 3px rgba(116, 229, 0, 0.18);
}

/* ── File Info Badge ─────────────────────────────────────── */
.mp4mp3-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;
    margin-top: 0.75rem;
}

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

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

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

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

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

.mp4mp3-status-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    min-height: 1.4em;
}

/* ── Action 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;
}

.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, border-color 0.2s;
    cursor: pointer;
}

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

/* ── Result Panel ────────────────────────────────────────── */
.mp4mp3-result-card {
    background: rgba(116, 229, 0, 0.05);
    border: 1px solid rgba(116, 229, 0, 0.25);
    border-radius: 16px;
    padding: 1.5rem;
}

.mp4mp3-result-card audio {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 1rem;
    accent-color: #74e500;
}

.btn-download-audio {
    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;
}

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

/* ── Error / Alert Panels ────────────────────────────────── */
.mp4mp3-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;
}

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

/* ── Loading Engine Bar ──────────────────────────────────── */
.mp4mp3-engine-bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    position: relative;
}

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

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

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

/* ── Info Sections ───────────────────────────────────────── */
.mp4mp3-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;
}

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

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

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

/* ── FAQ Accordion ───────────────────────────────────────── */
.mp4mp3-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;
}

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

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

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

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

/* ── Misc ────────────────────────────────────────────────── */
.mp4mp3-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;
}

@media (max-width: 576px) {
    .mp4mp3-dropzone { min-height: 140px; padding: 1.25rem; }
    .mp4mp3-dropzone .dz-icon { font-size: 2rem; }
}
