/**
 * Estilos do Briefing Analyzer - Frontend
 */

.ba-analyzer-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.ba-header {
    text-align: center;
    margin-bottom: 40px;
}

.ba-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.ba-header p {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

/* Dropzone */
.ba-dropzone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    background: #f9fafb;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ba-dropzone:hover,
.ba-dropzone.drag-over {
    border-color: #10b981;
    background: #f0fdf4;
}

.ba-upload-icon {
    width: 64px;
    height: 64px;
    color: #9ca3af;
    margin: 0 auto 20px;
}

.ba-dropzone-text {
    font-size: 18px;
    color: #374151;
    margin-bottom: 8px;
}

.ba-dropzone-hint {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Botões */
.ba-btn {
    display: inline-block;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.ba-btn-primary {
    background: #10b981;
    color: #fff;
}

.ba-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
}

.ba-btn-success {
    background: #10b981;
    color: #fff;
}

.ba-btn-success:hover {
    background: #059669;
}

.ba-btn-secondary {
    background: #6b7280;
    color: #fff;
}

.ba-btn-secondary:hover {
    background: #4b5563;
}

.ba-btn-lg {
    padding: 16px 32px;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Seção de entrada de texto */
.ba-text-input-section {
    margin-top: 30px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
}

.ba-text-input-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #374151;
}

#ba-briefing-text {
    width: 100%;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-family: monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

/* Arquivo selecionado */
.ba-file-selected {
    margin-top: 30px;
    padding: 20px;
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 8px;
}

.ba-file-info {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.ba-file-icon {
    width: 40px;
    height: 40px;
    color: #10b981;
    margin-right: 15px;
    flex-shrink: 0;
}

.ba-file-details {
    flex: 1;
}

.ba-file-name {
    font-weight: 600;
    color: #374151;
    margin: 0 0 5px 0;
}

.ba-file-status {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Barra de progresso */
.ba-progress-section {
    margin-top: 30px;
    text-align: center;
}

.ba-progress-section h3 {
    animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.3;
    }
}

.ba-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin: 20px 0;
}

.ba-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #059669);
    width: 0%;
    transition: width 0.3s ease;
}

.ba-progress-text {
    color: #6b7280;
    font-size: 14px;
}

/* Resultado */
.ba-result-section,
.ba-error-section {
    margin-top: 30px;
}

.ba-success-message,
.ba-error-message {
    padding: 40px;
    background: #f0fdf4;
    border-radius: 8px;
}

.ba-error-message {
    background: #fef2f2;
}

.ba-success-icon,
.ba-error-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
}

.ba-success-icon {
    color: #10b981;
}

.ba-error-icon {
    color: #ef4444;
}

.ba-success-message h3,
.ba-error-message h3 {
    font-size: 24px;
    margin-bottom: 12px;
    text-align: center;
}

.ba-success-message p,
.ba-error-message p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    text-align: center;
}

/* Abas */
.ba-tabs {
    display: flex;
    gap: 10px;
    margin: 30px 0 20px 0;
    flex-wrap: wrap;
    border-bottom: 2px solid #e5e7eb;
}

.ba-tab-btn {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    transition: all 0.2s ease;
}

.ba-tab-btn:hover {
    color: #374151;
}

.ba-tab-btn.ba-tab-active {
    color: #10b981;
    border-bottom-color: #10b981;
}

.ba-tab-content {
    margin: 20px 0;
}

.ba-tab-pane {
    display: none;
}

.ba-tab-pane.ba-tab-active {
    display: block;
}

/* Seções */
.ba-section {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.ba-section:last-child {
    border-bottom: none;
}

.ba-section h4 {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.ba-section ul,
.ba-section ol {
    margin-left: 20px;
    padding: 0;
}

.ba-section li {
    margin-bottom: 10px;
    color: #374151;
    line-height: 1.6;
}

.ba-section p {
    color: #374151;
    line-height: 1.8;
}

/* Lacunas e Riscos */
.ba-item {
    padding: 15px;
    background: #f9fafb;
    border-left: 4px solid #10b981;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ba-item.risk {
    border-left-color: #ef4444;
}

.ba-item-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.ba-item-label {
    display: inline-block;
    padding: 4px 8px;
    background: #e5e7eb;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    margin-right: 10px;
    margin-bottom: 10px;
}

.ba-item-label.high {
    background: #fee2e2;
    color: #991b1b;
}

.ba-item-label.medium {
    background: #fef3c7;
    color: #92400e;
}

.ba-item-label.low {
    background: #dbeafe;
    color: #1e40af;
}

.ba-item-text {
    color: #374151;
    margin: 8px 0;
    line-height: 1.6;
}

.ba-item-text strong {
    color: #1a1a1a;
}

/* Briefing reorganizado */
.ba-reorganized-briefing {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    line-height: 1.8;
    color: #374151;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Hint */
.ba-hint {
    font-size: 14px;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 15px;
}

/* Ações */
.ba-actions {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.ba-actions .ba-btn {
    margin: 8px;
}

/* Como funciona */
.ba-how-it-works {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}

.ba-how-it-works h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: #374151;
}

.ba-how-it-works ol {
    padding-left: 20px;
}

.ba-how-it-works li {
    margin-bottom: 12px;
    color: #6b7280;
    line-height: 1.6;
}

/* Responsivo */
@media (max-width: 768px) {
    .ba-analyzer-container {
        padding: 20px;
        margin: 20px;
    }
    
    .ba-header h2 {
        font-size: 24px;
    }
    
    .ba-dropzone {
        padding: 40px 15px;
    }
    
    .ba-btn-lg {
        width: 100%;
    }
    
    .ba-tabs {
        gap: 5px;
    }
    
    .ba-tab-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}
