/* Estilos do frontend - Download Multiplataforma */

.dm-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Tema escuro */
.dm-container[data-theme="dark"] {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #e2e2e2;
    border: 1px solid #404040;
}

/* Tema claro */
.dm-container[data-theme="light"] {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #333333;
    border: 1px solid #e0e0e0;
}

/* Header */
.dm-header {
    text-align: center;
    margin-bottom: 30px;
}

.dm-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.dm-container[data-theme="dark"] .dm-title {
    color: #a78bfa;
}

.dm-container[data-theme="light"] .dm-title {
    color: #6366f1;
}

.dm-subtitle {
    font-size: 16px;
    margin: 0;
    opacity: 0.8;
}

/* Formulário */
.dm-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dm-input-group {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.dm-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid transparent;
    font-size: 16px;
    transition: all 0.3s ease;
}

.dm-container[data-theme="dark"] .dm-input {
    background: #2a2a2a;
    color: #e2e2e2;
    border-color: #404040;
}

.dm-container[data-theme="light"] .dm-input {
    background: #ffffff;
    color: #333333;
    border-color: #d1d5db;
}

.dm-input:focus {
    outline: none;
    border-color: #a78bfa;
    box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.1);
}

/* Botões */
.dm-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.dm-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dm-btn-primary {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
}

.dm-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #5b5bf6 0%, #7c3aed 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.dm-btn-secondary {
    background: transparent;
    border: 2px solid #6366f1;
    color: #6366f1;
}

.dm-btn-secondary:hover:not(:disabled) {
    background: #6366f1;
    color: white;
}

.dm-btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Opções */
.dm-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    border-radius: 8px;
}

.dm-container[data-theme="dark"] .dm-options {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #404040;
}

.dm-container[data-theme="light"] .dm-options {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid #e5e7eb;
}

.dm-option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dm-option-group label {
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dm-select {
    padding: 10px 12px;
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: 14px;
    transition: all 0.3s ease;
}

.dm-container[data-theme="dark"] .dm-select {
    background: #2a2a2a;
    color: #e2e2e2;
    border-color: #404040;
}

.dm-container[data-theme="light"] .dm-select {
    background: #ffffff;
    color: #333333;
    border-color: #d1d5db;
}

.dm-select:focus {
    outline: none;
    border-color: #a78bfa;
}

/* Informações da plataforma */
.dm-platform-info {
    animation: slideDown 0.3s ease-out;
}

.dm-platform-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    border: 2px dashed #a78bfa;
}

.dm-container[data-theme="dark"] .dm-platform-card {
    background: rgba(167, 139, 250, 0.1);
}

.dm-container[data-theme="light"] .dm-platform-card {
    background: rgba(167, 139, 250, 0.05);
}

.dm-platform-icon {
    font-size: 32px;
    color: #a78bfa;
}

.dm-platform-details h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.dm-platform-details p {
    margin: 0;
    font-size: 14px;
    opacity: 0.8;
}

/* Informações do vídeo */
.dm-video-info {
    animation: slideDown 0.3s ease-out;
}

.dm-info-card {
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #a78bfa;
}

.dm-container[data-theme="dark"] .dm-info-card {
    background: rgba(255, 255, 255, 0.05);
}

.dm-container[data-theme="light"] .dm-info-card {
    background: rgba(0, 0, 0, 0.02);
}

.dm-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.dm-info-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.dm-info-header i {
    color: #a78bfa;
    font-size: 20px;
}

.dm-info-content p {
    margin: 8px 0;
    font-size: 14px;
}

/* Progresso */
.dm-progress {
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.dm-progress-bar {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.dm-container[data-theme="dark"] .dm-progress-bar {
    background: #404040;
}

.dm-container[data-theme="light"] .dm-progress-bar {
    background: #e5e7eb;
}

.dm-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    width: 0%;
    animation: progressPulse 2s ease-in-out infinite;
}

.dm-progress-text {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    color: #a78bfa;
}

/* Resultado */
.dm-result {
    animation: slideUp 0.5s ease-out;
}

.dm-result-card {
    padding: 25px;
    border-radius: 12px;
    text-align: center;
}

.dm-container[data-theme="dark"] .dm-result-card {
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid rgba(16, 185, 129, 0.3);
}

.dm-container[data-theme="light"] .dm-result-card {
    background: rgba(16, 185, 129, 0.05);
    border: 2px solid rgba(16, 185, 129, 0.2);
}

.dm-result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
}

.dm-result-header h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #10b981;
}

.dm-result-header i {
    font-size: 24px;
    color: #10b981;
}

.dm-result-content {
    text-align: left;
}

/* Transcrição */
.dm-transcription-content {
    margin: 15px 0;
    padding: 15px;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.dm-container[data-theme="dark"] .dm-transcription-content {
    background: #1a1a1a;
    border: 1px solid #404040;
}

.dm-container[data-theme="light"] .dm-transcription-content {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
}

.dm-transcription-content pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Erro */
.dm-error {
    animation: shake 0.5s ease-out;
}

.dm-error-card {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #ef4444;
}

.dm-container[data-theme="dark"] .dm-error-card {
    background: rgba(239, 68, 68, 0.1);
}

.dm-container[data-theme="light"] .dm-error-card {
    background: rgba(239, 68, 68, 0.05);
}

.dm-error-card i {
    font-size: 32px;
    color: #ef4444;
    margin-bottom: 10px;
}

.dm-error-card h4 {
    margin: 10px 0;
    color: #ef4444;
    font-size: 18px;
    font-weight: 600;
}

.dm-error-card p {
    margin: 0;
    font-size: 14px;
}

/* Animações */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes progressPulse {
    0%, 100% {
        width: 0%;
    }
    50% {
        width: 100%;
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .dm-container {
        margin: 10px;
        padding: 15px;
    }
    
    .dm-input-group {
        flex-direction: column;
    }
    
    .dm-options {
        grid-template-columns: 1fr;
    }
    
    .dm-title {
        font-size: 24px;
    }
    
    .dm-platform-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Scrollbar personalizada */
.dm-transcription-content::-webkit-scrollbar {
    width: 8px;
}

.dm-transcription-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.dm-transcription-content::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.5);
    border-radius: 4px;
}

.dm-transcription-content::-webkit-scrollbar-thumb:hover {
    background: rgba(167, 139, 250, 0.7);
}

