.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #555;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #c4a882;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.file-upload {
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-upload:hover {
    border-color: #c4a882;
    background: #f8f9ff;
}

.file-upload.dragover {
    border-color: #c4a882;
    background: #f0f2ff;
}

.file-upload input {
    display: none;
}

.file-upload-icon {
    font-size: 48px;
    color: #c4a882;
    margin-bottom: 10px;
}

.file-upload-text {
    color: #666;
    font-size: 1rem;
}

.file-upload-hint {
    color: #999;
    font-size: 0.9rem;
    margin-top: 5px;
}

.btn {
    padding: 14px 32px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #c4a882 0%, #a89070 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 168, 130, 0.4);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-warning {
    background: #ffc107;
    color: #333;
}

.btn-warning:hover {
    background: #e0a800;
}

.audio-preview {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    display: none;
}

.audio-preview.show {
    display: block;
}

.audio-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.audio-duration {
    font-weight: 600;
    color: #c4a882;
}

.audio-player {
    width: 100%;
    margin-bottom: 15px;
}

.audio-player audio {
    width: 100%;
}

.audio-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.progress-section {
    margin-top: 30px;
    display: none;
}

.progress-section.show {
    display: block;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-title {
    font-weight: 600;
    color: #333;
}

.progress-percentage {
    font-weight: 700;
    color: #c4a882;
}

.progress-bar {
    height: 12px;
    background: #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #c4a882 0%, #a89070 100%);
    border-radius: 6px;
    transition: width 0.5s ease;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.step {
    text-align: center;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s;
}

.step.active {
    background: #e3e8ff;
    border: 2px solid #c4a882;
}

.step.completed {
    background: #d4edda;
    border: 2px solid #28a745;
}

.step-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

.step-status {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
}

.task-list {
    margin-top: 30px;
}

.task-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #c4a882;
}

.task-item.completed {
    border-left-color: #28a745;
}

.task-item.failed {
    border-left-color: #dc3545;
}

.task-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.task-name {
    font-weight: 600;
    color: #333;
}

.task-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.task-status.pending {
    background: #ffc107;
    color: #333;
}

.task-status.processing {
    background: #c4a882;
    color: white;
}

.task-status.completed {
    background: #28a745;
    color: white;
}

.task-status.failed {
    background: #dc3545;
    color: white;
}

.task-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 0.9rem;
}

.error-message {
    color: #dc3545;
    margin-top: 10px;
    padding: 10px;
    background: #f8d7da;
    border-radius: 4px;
    font-size: 0.9rem;
}

.download-links {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.download-link {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-link:hover {
    background: #218838;
}

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

    .steps {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .step {
        padding: 12px;
    }

    .step-icon {
        font-size: 20px;
    }

    .step-title {
        font-size: 0.85rem;
    }

    .file-upload {
        padding: 30px 20px;
    }

    .file-upload-icon {
        font-size: 36px;
    }

    .file-upload-text {
        font-size: 0.9rem;
    }

    .file-upload-hint {
        font-size: 0.8rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }

    .audio-controls {
        flex-direction: column;
    }

    .audio-controls .btn {
        width: 100%;
    }

    .task-item {
        padding: 16px;
    }

    .task-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .task-info {
        flex-direction: column;
        gap: 8px;
    }

    .download-links {
        flex-direction: column;
    }

    .download-link {
        text-align: center;
        display: block;
    }
}

@media (max-width: 480px) {
    .file-upload {
        padding: 24px 16px;
    }

    .file-upload-icon {
        font-size: 32px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .progress-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .step {
        padding: 10px;
    }
}
