/* Header personalizado */
.header {
   /* background: linear-gradient(135deg, #002B49 0%, #004182 100%) !important;*/
    background: linear-gradient(120deg, #6a4ee1 0%, #05bdd7 100%) !important;
}

.header .header-container .nav-left > li > a,
.header .header-container .nav-right > li > a {
    color: #ffffff !important;
}

.header .header-container .nav-left > li > a:hover,
.header .header-container .nav-right > li > a:hover {
    color: #ffffff !important;
}

/* Logo com tamanho fixo */
.header .header-container .nav-logo > a {
    width: 200px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
}

.header .header-container .nav-logo > a .logo {
    width: 100% !important;
    height: 100% !important;
    background-size: contain !important;
    background-position: center left !important;
    background-repeat: no-repeat !important;
}

/* Responsividade do logo */
@media (max-width: 768px) {
    .header .header-container .nav-logo {
        display: none !important;
    }
}

/* ALTERNATIVA: Se quiser manter o logo no mobile, descomente o código abaixo */
/*
@media (max-width: 768px) {
    .header .header-container .nav-logo {
        display: block !important;
        position: absolute !important;
        right: 20px !important;
        top: 0 !important;
        width: auto !important;
        padding: 0 !important;
    }
    
    .header .header-container .nav-logo > a {
        width: 120px !important;
        height: 40px !important;
    }
    
    .header .header-container .nav-right {
        margin-right: 140px !important;
    }
}
*/

/* Estilos específicos para o formulário de login */
.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.login-form .form-group {
    margin-bottom: 1.5rem;
}

.login-form .form-control {
    border-radius: 8px;
    border: 1px solid #e9eaec;
    padding: 12px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    border-color: #04a1f4;
    box-shadow: 0 0 0 0.2rem rgba(4, 161, 244, 0.25);
}

.login-form .btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Estilos para mensagens de alerta */
.alert {
    border-radius: 8px;
    padding: 12px 15px;
    margin-top: 1rem;
    border: none;
    font-size: 14px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* Animação para mensagens */
.alert {
    animation: slideIn 0.3s ease-in-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .login-form {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .card-body {
        padding: 20px 15px;
    }
}



/* Estilos para cards de perfil - Layout da imagem */
.profile-section {
    text-align: center;
    padding: 20px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: left;
}

.avatar-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #3b82f6;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-circle i {
    font-size: 2.5rem;
    color: white;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.profile-title {
    font-size: 16px;
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 4px;
}

.profile-company {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e5e7eb;
}

.contact-icon:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    text-decoration: none;
}

.contact-icon i {
    font-size: 18px;
}

/* Tags clean */
.tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3b82f6;
    border-radius: 16px;
    padding: 6px 12px;
    margin: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* Seções de análise e comunicação */
.analysis-section, .tags-section, .communication-section {
    padding: 20px;
    height: 100%;
}

.section-content {
    color: #4b5563;
    line-height: 1.6;
    font-size: 14px;
    text-align: justify;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Qualidades profissionais e pessoais - mesmo estilo das tags */
.quality-tag {
    display: inline-block;
    background: #e0e7ff;
    color: #3b82f6;
    border-radius: 16px;
    padding: 6px 12px;
    margin: 3px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quality-tag:hover {
    background: #c7d2fe;
    transform: translateY(-1px);
}

/* Características únicas - estilo da imagem */
.characteristics-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.characteristic-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #4b5563;
    transition: all 0.2s ease;
    text-align: center;
}

.characteristic-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Conteúdo de interesse - estilo da imagem */
.content-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.content-item {
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    color: #4b5563;
    transition: all 0.2s ease;
    text-align: center;
}

.content-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

/* Seções de qualidades */
.qualities-section {
    background: #fafbfc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e1e5e9;
}

.qualities-section h6 {
    color: #1f2937;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid #6366f1;
    padding-bottom: 5px;
    font-size: 0.9rem;
}

/* Cards de perfil clean com altura igual */
.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e5e9;
    overflow: hidden;
    transition: all 0.2s ease;
    height: 100%; /* Garante que todos os cards tenham a mesma altura */
    display: flex;
    flex-direction: column;
}

.profile-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.profile-card .card-body {
    padding: 20px;
    flex: 1; /* Faz o card-body ocupar todo o espaço disponível */
    display: flex;
    flex-direction: column;
}

/* Garantir que as seções dentro dos cards também se ajustem */
.profile-section, .analysis-section, .qualities-section, .tags-section, .characteristics-section, .content-section, .personalidade-section, .compatibilidade-section, .insights-section, .comunicacao-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Ajustar containers de tags para ocupar espaço disponível */
.tags-container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-content: flex-start;
}

/* Ajustar conteúdo das seções */
.section-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.nav-tabs .nav-link {
    color: #6c757d;
    border: none;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #007bff;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

.nav-tabs .nav-link.active {
    color: #007bff;
    font-weight: 500;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

.nav-tabs .nav-link i {
    margin-right: 5px;
}

/* Loading spinner personalizado */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Melhorias de layout */
.profile-card {
    margin-bottom: 24px;
}

/* Garantir que as linhas de cards tenham altura igual */
.row {
    display: flex;
    flex-wrap: wrap;
}

.row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Ajustar espaçamento entre seções de qualidades */
.qualities-section:not(:last-child) {
    margin-bottom: 20px;
}

.profile-card .card-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0; /* Impede que o header encolha */
}

/* Melhorar espaçamento das tags */
#tagsContainer, #qualidadesProfissionais, #qualidadesPessoais {
    line-height: 1.6;
}

/* Estilo para textos em itálico */
.analysis-section em {
    color: #6c757d;
    font-style: italic;
    font-size: 0.9rem;
}

/* Responsividade para perfis */
@media (max-width: 768px) {
    .avatar-circle {
        width: 60px;
        height: 60px;
    }
    
    .avatar-circle i {
        font-size: 1.5rem !important;
    }
    
    .profile-card .card-body {
        padding: 15px;
    }
    
    .tag, .quality-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .characteristic-item, .content-item {
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .profile-card {
        margin-bottom: 16px;
    }
}

/* Melhorias adicionais */
.profile-card .card-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 15px 20px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.profile-card .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.profile-card .card-header h5 {
    margin: 0;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* Efeito hover nos cards */
.profile-card:hover .card-header {
    background: linear-gradient(135deg, #0056b3, #004085);
}

/* Melhorar espaçamento das tags */
#tagsContainer, #qualidadesProfissionais, #qualidadesPessoais {
    line-height: 1.8;
}

/* Estilo para textos em itálico */
.analysis-section em {
    color: #6c757d;
    font-style: italic;
    font-size: 0.95rem;
}

/* Log Detalhado para Importação */
.log-section {
    margin-bottom: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 1rem;
}

.log-section h6 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.log-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.log-item:last-child {
    margin-bottom: 0;
}

.log-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.log-item.error {
    border-left: 4px solid #dc2626;
    background: #fef2f2;
}

.log-item.success {
    border-left: 4px solid #059669;
    background: #f0fdf4;
}

.log-item.info {
    border-left: 4px solid #3b82f6;
    background: #f0f9ff;
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.log-line {
    background: #3b82f6;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.log-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.log-message {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Stat Cards */
.stat-card {
    text-align: center;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .log-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .stat-card {
        margin-bottom: 0.5rem;
    }
}