/* MP4 to MP3 Converter Styles - All styles use ffconv- prefix to prevent conflicts with Google AdSense */

body.ffconv-page {
    margin: 0;
    background: #f5f7fb;
    color: #333;
}

.ffconv-shell {
    max-width: 720px;
    width: min(720px, 100% - 40px);
    margin: 0 auto;
    padding: 32px 0 48px;
}

.ffconv-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 20px;
    width: 100%;
    background: #ffffff;
    color: #333;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.ffconv-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 30px;
    color: #2c3e50;
    text-align: center;
}

.ffconv-form-group {
    margin-bottom: 20px;
}

.ffconv-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #34495e;
    font-size: 14px;
}

.ffconv-file-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ffconv-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.ffconv-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.ffconv-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #3498db;
    color: white;
}

.ffconv-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.ffconv-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.ffconv-btn-success {
    background: #27ae60;
}

.ffconv-btn-success:hover {
    background: #229954;
}

.ffconv-btn-danger {
    background: #e74c3c;
}

.ffconv-btn-danger:hover {
    background: #c0392b;
}

.ffconv-options-panel {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.ffconv-options-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.ffconv-options-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.ffconv-option-group {
    flex: 1;
    min-width: 150px;
}

.ffconv-select {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.ffconv-select:focus {
    outline: none;
    border-color: #3498db;
}

.ffconv-progress-section {
    margin: 30px 0;
}

.ffconv-progress-bar {
    width: 100%;
    height: 20px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
}

.ffconv-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    width: 100%;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.ffconv-progress-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: ffconv-busy 1.5s infinite;
}

@keyframes ffconv-busy {
    0% { left: -100%; }
    100% { left: 100%; }
}

.ffconv-progress-text {
    text-align: center;
    font-weight: 500;
    color: #7f8c8d;
}

.ffconv-log-area {
    width: 100%;
    height: 200px;
    padding: 15px;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 12px;
    background: #2c3e50;
    color: #ecf0f1;
    resize: vertical;
    overflow-y: auto;
    line-height: 1.5;
}

.ffconv-log-area::-webkit-scrollbar {
    width: 8px;
}

.ffconv-log-area::-webkit-scrollbar-track {
    background: #34495e;
}

.ffconv-log-area::-webkit-scrollbar-thumb {
    background: #7f8c8d;
    border-radius: 4px;
}

.ffconv-action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.ffconv-file-info {
    background: #e8f5e8;
    border: 1px solid #c3e6c3;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-size: 13px;
    color: #2d5a2d;
}

.ffconv-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.ffconv-status-ready {
    background: #dff0d8;
    color: #3c763d;
}

.ffconv-status-processing {
    background: #d9edf7;
    color: #31708f;
}

.ffconv-status-completed {
    background: #dff0d8;
    color: #3c763d;
}

.ffconv-status-error {
    background: #f2dede;
    color: #a94442;
}
