/* Estilos personalizados para o Neural Codex AI */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

/* Layout geral */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section Styles */
.hero-icon-container {
    position: relative;
    display: inline-block;
}

.hero-icon {
    font-size: 6rem;
    color: var(--primary-color);
    display: inline-block;
    animation: gentle-bounce 3s ease-in-out infinite;
}

.hero-badge {
    position: absolute;
    top: -10px;
    right: -20px;
    animation: pulse-badge 2s infinite;
}

.gradient-text {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Navegação */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
}

/* Workflow Steps */
.workflow-steps {
    gap: 1rem;
}

.workflow-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background-color: #e9ecef;
    color: #6c757d;
    transition: all 0.3s ease;
    min-width: 80px;
}

.workflow-steps .step.active {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.workflow-steps .step i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
}

.workflow-steps .step span {
    font-size: 0.75rem;
    font-weight: 500;
}

.workflow-steps .step:hover:not(.disabled) {
    background-color: var(--primary-color);
    color: white;
    transform: scale(1.02);
    cursor: pointer;
}

.workflow-steps .step.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Feature Cards */
.feature-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    font-weight: 600;
}

/* Botões */
.btn {
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Formulários */
.form-control, .form-select {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Textarea personalizada */
.form-control.process-text {
    min-height: 300px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Item jurídico */
.legal-item {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.legal-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.1);
}

.legal-item.disabled {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.legal-item-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.legal-item-text {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-color);
    font-weight: 500;
}

.legal-item-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

/* Artigos e fundamentação */
.articles-container {
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-top: 1rem;
}

.article-item {
    background-color: white;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
}

.article-item:hover {
    border-color: var(--info-color);
    box-shadow: 0 0.125rem 0.25rem rgba(13, 202, 240, 0.1);
}

.article-item.selected {
    border-color: var(--success-color);
    background-color: #f0fff4;
}

.article-reference {
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.article-summary {
    color: var(--info-color);
    font-style: italic;
    margin-bottom: 0.75rem;
}

.article-application, .article-relevance {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

/* Documento gerado */
.generated-document {
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 2rem;
    min-height: 500px;
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.8;
}

.generated-document h1, .generated-document h2, .generated-document h3 {
    color: var(--dark-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.generated-document h1 {
    text-align: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.generated-document h2 {
    font-size: 1.1rem;
    font-weight: bold;
}

.generated-document h3 {
    font-size: 1rem;
    font-weight: bold;
}

.generated-document p {
    text-align: justify;
    margin-bottom: 1rem;
    text-indent: 2rem;
}

/* Upload de arquivo */
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 0.75rem;
    padding: 3rem 2rem;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(13, 110, 253, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--success-color);
    background-color: rgba(25, 135, 84, 0.05);
}

/* Histórico */
.history-item {
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background-color: white;
    transition: all 0.3s ease;
}

.history-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.25rem 0.5rem rgba(13, 110, 253, 0.1);
}

.history-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.history-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Configurações */
.config-section {
    margin-bottom: 2rem;
}

.api-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.api-status.available {
    color: var(--success-color);
}

.api-status.unavailable {
    color: var(--danger-color);
}

/* Badges personalizados */
.badge-document-type {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
}

/* Loading states */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    background-color: white;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Responsividade */
@media (max-width: 768px) {
    .workflow-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .workflow-steps .step {
        min-width: 60px;
        padding: 0.25rem;
    }
    
    .workflow-steps .step i {
        font-size: 1rem;
    }
    
    .workflow-steps .step span {
        font-size: 0.7rem;
    }
    
    .legal-item-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .history-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .history-actions {
        flex-wrap: wrap;
    }
}

/* Tema escuro (opcional) */
@media (prefers-color-scheme: dark) {
    .dark-mode {
        --bs-body-bg: #212529;
        --bs-body-color: #dee2e6;
    }
    
    .dark-mode .card {
        background-color: #343a40;
        border-color: #495057;
    }
    
    .dark-mode .form-control,
    .dark-mode .form-select {
        background-color: #343a40;
        border-color: #495057;
        color: #dee2e6;
    }
    
    .dark-mode .generated-document {
        background-color: #343a40;
        border-color: #495057;
        color: #dee2e6;
    }
}

/* Utilitários */
.text-justify {
    text-align: justify;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .card-header {
        display: none !important;
    }
    
    .generated-document {
        border: none;
        box-shadow: none;
        padding: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
} 