/**
 * Audio Center Suite - Frontend Styles
 * Estilos para todas as ferramentas do Audio Center
 */

/* ========================================
   Resultado da Transcrição
   ======================================== */

.transcription-success {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 10px;
    margin-bottom: 30px;
}

.success-icon {
    font-size: 64px;
    color: #4caf50;
    margin-bottom: 15px;
}

.success-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #2e7d32;
}

.transcription-preview {
    margin-bottom: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #6f42c1;
}

.transcription-preview h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.transcription-preview h4 i {
    margin-right: 10px;
    color: #6f42c1;
}

.transcription-preview-content {
    padding: 20px;
    background: white;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
}

.preview-note {
    margin: 15px 0 0 0;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
}

.preview-note i {
    margin-right: 8px;
}

.transcription-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stat-item {
    padding: 20px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-item i {
    display: block;
    font-size: 24px;
    color: #6f42c1;
    margin-bottom: 10px;
}

.stat-label {
    display: block;
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.transcription-download {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f0ff 0%, #e8dff5 100%);
    border-radius: 10px;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: #6f42c1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-download:hover {
    background: #5a32a3;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
    color: white;
    text-decoration: none;
}

.btn-download i {
    font-size: 20px;
}

/* ========================================
   Drag and Drop
   ======================================== */

.file-upload-label.drag-over {
    border-color: #6f42c1;
    background: #f5f0ff;
    transform: scale(1.02);
}

/* ========================================
   Responsividade
   ======================================== */

@media (max-width: 768px) {
    .audio-center-tool-container {
        padding: 15px;
    }

    .tool-header {
        flex-direction: column;
        text-align: center;
    }

    .tool-title {
        font-size: 20px;
    }

    .audio-center-form {
        padding: 20px;
    }

    .transcription-stats {
        grid-template-columns: 1fr;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   Animações
   ======================================== */

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

.transcription-result {
    animation: fadeIn 0.5s ease;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.btn-loading i {
    animation: pulse 1.5s ease-in-out infinite;
}

/* ========================================
   Scrollbar Personalizado
   ======================================== */

.transcription-preview-content::-webkit-scrollbar {
    width: 8px;
}

.transcription-preview-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.transcription-preview-content::-webkit-scrollbar-thumb {
    background: #6f42c1;
    border-radius: 4px;
}

.transcription-preview-content::-webkit-scrollbar-thumb:hover {
    background: #5a32a3;
}

/* ========================================
   Estados de Loading
   ======================================== */

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

.progress-fill {
    background: linear-gradient(90deg, #6f42c1, #9b6fd8, #6f42c1);
    background-size: 200% 100%;
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   Ferramentas Placeholder (Em Desenvolvimento)
   ======================================== */

.tool-placeholder {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
}

.tool-placeholder i {
    font-size: 64px;
    color: #ccc;
    margin-bottom: 20px;
}

.tool-placeholder h3 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 24px;
}

.tool-placeholder p {
    margin: 0;
    color: #999;
    font-size: 16px;
}

/* ========================================
   Acessibilidade
   ======================================== */

.form-check input:focus + label {
    outline: 2px solid #6f42c1;
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid rgba(111, 66, 193, 0.5);
    outline-offset: 2px;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
    .tool-header,
    .audio-center-form,
    .transcription-download,
    .btn,
    .progress-container {
        display: none;
    }

    .transcription-preview-content {
        max-height: none;
        overflow: visible;
        border: 1px solid #000;
    }
}
