/* ============================================================
   PARTE 2: PERFIL DO ALUNO - ESTILO CLEAN TECH
   CARREGAR APÓS: part1-home.css
   ============================================================ */

/* 1. FUNDO E ESTRUTURA (Consistência com a Home) */
#aluno-profile-view {
    background-color: var(--tech-bg);
    /* Mesmo padrão de pontos/grade da home */
    background-image: 
        radial-gradient(#E5E7EB 1.5px, transparent 1.5px),
        radial-gradient(#E5E7EB 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    min-height: 100vh;
}

/* 2. NAVBAR DO PERFIL */
#aluno-profile-view .navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-btn);
    box-shadow: var(--shadow-soft);
    margin-top: 20px;
}

/* Botão Voltar (Estilo Flutuante Sólido) */
#btn-back-to-dashboard-from-profile {
    /* Fundo Branco Sólido (Melhor contraste) */
    background-color: #ffffff !important; 
    
    border: 1px solid #E5E7EB !important;
    color: #374151 !important; /* Cinza Escuro */
    
    border-radius: 50% !important; /* Redondo perfeito */
    width: 42px !important;
    height: 42px !important;
    
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    
    /* Sombra suave para "flutuar" sobre o fundo */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
    transition: all 0.2s ease !important;
}

/* Hover: Fica azul e move levemente para a esquerda */
#btn-back-to-dashboard-from-profile:hover {
    background-color: #EFF6FF !important; /* Azul ultra claro */
    color: var(--tech-blue) !important;
    border-color: var(--tech-blue) !important;
    transform: translateX(-4px) !important; /* Animação de "voltar" */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Ajuste do ícone da seta */
#btn-back-to-dashboard-from-profile i {
    font-size: 1.2rem !important;
    line-height: 0 !important;
}

/* 3. CARDS PRINCIPAIS (Esquerda e Direita) */
#aluno-profile-view .card {
    background-color: var(--tech-surface);
    border: 1px solid rgba(229, 231, 235, 0.5);
    border-radius: 24px !important; /* Mais arredondado */
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

/* Títulos das Seções (Informações / Cursos) */
#aluno-profile-view h3.h5 {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    color: #111827;
    font-size: 1.1rem;
    letter-spacing: -0.3px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #E5E7EB;
    margin-bottom: 20px !important;
}

#aluno-profile-view h3.h5 i {
    color: var(--tech-blue);
    background: rgba(37, 99, 235, 0.1);
    padding: 6px;
    border-radius: 8px;
    margin-right: 8px !important;
    font-size: 1rem;
}

/* 4. AVATAR E EDIÇÃO */
/* A foto grande */
#profile-current-avatar {
    border: 4px solid #ffffff;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 0 0 1px #E5E7EB;
    transition: transform 0.3s ease;
    background-color: #F3F4F6;
}

#profile-current-avatar:hover {
    transform: scale(1.05) rotate(2deg);
}

/* Botão de Lápis (Editar) */
.avatar-edit-btn {
    background-color: var(--tech-blue) !important;
    color: white !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4) !important;
    width: 36px !important;
    height: 36px !important;
    bottom: 10px !important;
    right: 10px !important;
    transition: all 0.2s ease !important;
}

.avatar-edit-btn:hover {
    background-color: #0052cc !important;
    transform: scale(1.15) !important;
}

/* 5. LISTA DE INFORMAÇÕES PESSOAIS (Esquerda) */
.profile-info-list .list-group-item {
    border: none !important; /* Remove linhas padrão */
    padding: 12px 0 !important;
    background: transparent !important;
}

/* Ícones da lista (Email, CPF, etc) */
.profile-icon-box {
    background-color: #F3F4F6 !important; /* Cinza gelo */
    color: #6B7280 !important; /* Cinza ícone */
    border-radius: 12px !important;
    width: 42px !important;
    height: 42px !important;
    font-size: 1.1rem !important;
    transition: all 0.2s;
}

.profile-info-list .list-group-item:hover .profile-icon-box {
    background-color: #EFF6FF !important; /* Azul claro no hover */
    color: var(--tech-blue) !important;
}

/* Labels e Valores */
.profile-data-label {
    font-size: 0.65rem !important;
    color: #9CA3AF !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-data-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem !important;
    color: #1F2937 !important;
    font-weight: 600 !important;
}

/* ============================================================
   6. LISTA DE CURSOS CONCLUÍDOS (Visual Completo + Botão Premium)
   Substitua a SEÇÃO 6 inteira por este código
   ============================================================ */

/* O "Molde" do Card de Curso */
#aluno-profile-view #profile-course-list .list-group-item {
    background: linear-gradient(to right, #F0FDF4, #ffffff) !important;
    border: 1px solid #E5E7EB !important;
    border-left: 5px solid #10B981 !important; /* Faixa verde lateral */
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    padding: 20px !important;
    
    /* Reset de bordas do Bootstrap */
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
    border-bottom-right-radius: 12px !important;
    
    box-shadow: 0 2px 6px rgba(0,0,0,0.03) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Efeito Hover no Card */
#aluno-profile-view #profile-course-list .list-group-item:hover {
    transform: translateY(-4px) translateX(2px);
    box-shadow: 0 10px 20px -5px rgba(16, 185, 129, 0.15) !important;
    border-color: #A7F3D0 !important;
    z-index: 10;
}

/* Ícone de Medalha */
#aluno-profile-view #profile-course-list .bg-success.bg-opacity-10 {
    background-color: #ffffff !important;
    color: #10B981 !important;
    border: 1px solid #D1FAE5 !important;
    border-radius: 10px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05) !important;
}

/* Título do Curso */
#aluno-profile-view #profile-course-list .fw-bold.text-dark {
    font-family: 'Inter', sans-serif !important;
    color: #1F2937 !important;
    font-size: 1rem !important;
    letter-spacing: -0.3px !important;
    margin-bottom: 2px !important;
}

/* Nota Final */
#aluno-profile-view #profile-course-list .text-success.fw-bold {
    color: #059669 !important;
    background-color: #D1FAE5 !important;
    padding: 2px 8px !important;
    border-radius: 6px !important;
    font-size: 0.8rem !important;
}

/* --- BOTÃO DE CERTIFICADO PREMIUM (DESTAQUE) --- */
#aluno-profile-view .btn-view-history-proof {
    /* Gradiente Verde Vibrante */
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    
    /* Texto e Borda */
    color: #ffffff !important;
    border: none !important;
    
    /* Tipografia */
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    
    /* Dimensões */
    padding: 10px 24px !important;
    border-radius: 50px !important;
    
    /* Sombra Glow */
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    
    /* Layout Flex para o ícone */
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
}

/* Hover do Botão */
#aluno-profile-view .btn-view-history-proof:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6) !important;
    background: linear-gradient(135deg, #34D399 0%, #059669 100%) !important;
}

/* Clique do Botão */
#aluno-profile-view .btn-view-history-proof:active {
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.4) !important;
}

/* Ícone dentro do botão */
#aluno-profile-view .btn-view-history-proof i {
    font-size: 1rem !important;
    color: #ffffff !important;
}

/* 7. MODAL DE AVATAR (Seleção) */
#avatar-modal .modal-body {
    background-color: #F9FAFB; /* Fundo levemente cinza */
}

/* Item de Avatar */
.avatar-option-wrapper {
    background: #ffffff !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 16px !important;
    padding: 10px !important;
    transition: all 0.2s !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.avatar-option-wrapper:hover {
    border-color: var(--tech-blue) !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 20px -5px rgba(0, 102, 255, 0.15) !important;
}

.avatar-option {
    border-radius: 50%;
    background-color: #F3F4F6;
}

/* ============================================================
   8. TÍTULO DA NAVBAR (Informações na Esquerda)
   Adicione ao final do part2-profile.css
   ============================================================ */

/* Texto do Título */
.profile-nav-title {
    font-family: 'Inter', sans-serif;
    color: #111827; /* Cinza Escuro */
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

/* Caixa do Ícone */
.profile-nav-icon {
    width: 36px;
    height: 36px;
    background-color: rgba(37, 99, 235, 0.1); /* Azul bem clarinho */
    color: var(--tech-blue); /* Azul Tech */
    border-radius: 10px; /* Quadrado arredondado moderno */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Efeito ao passar o mouse no ícone */
.profile-nav-icon:hover {
    background-color: var(--tech-blue);
    color: #ffffff;
    transform: rotate(10deg);
}

/* ============================================================
   9. LIMPEZA VISUAL (Ocultar título redundante)
   Adicione ao final do part2-profile.css
   ============================================================ */

/* Oculta o título "Informações" que ficava abaixo do avatar */
/* Selecionamos apenas a coluna da esquerda (.col-lg-5) para não sumir com o título dos Cursos */
#aluno-profile-view .col-lg-5 .card-body h3.h5 {
    display: none !important;
}

/* ============================================================
   10. MODO ESCURO (DARK MODE - CLEAN TECH STYLE)
   Adicione este bloco ao FINAL do arquivo part2-profile.css
   ============================================================ */

/* 1. FUNDO DA TELA (Azul Profundo com Pontos Claros) */
[data-bs-theme="dark"] #aluno-profile-view {
    background-color: #0f172a !important; /* Slate 900 (Fundo Tech Escuro) */
    background-image: 
        radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px),
        radial-gradient(rgba(255,255,255,0.1) 1.5px, transparent 1.5px) !important;
}

/* 2. SUPERFÍCIES DE VIDRO ESCURO (Navbar, Cards, Avatar) */
[data-bs-theme="dark"] #aluno-profile-view .navbar,
[data-bs-theme="dark"] #aluno-profile-view .card,
[data-bs-theme="dark"] .avatar-option-wrapper {
    background-color: rgba(30, 41, 59, 0.7) !important; /* Slate 800 Translúcido */
    border-color: rgba(255, 255, 255, 0.08) !important; /* Borda sutil */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3) !important;
}

/* 3. TEXTOS CLAROS */
[data-bs-theme="dark"] .profile-nav-title,
[data-bs-theme="dark"] #aluno-profile-view h3.h5,
[data-bs-theme="dark"] .profile-data-value,
[data-bs-theme="dark"] #profile-course-list .fw-bold.text-dark {
    color: #f8fafc !important; /* Branco Gelo */
}

[data-bs-theme="dark"] .profile-data-label,
[data-bs-theme="dark"] .text-muted {
    color: #94a3b8 !important; /* Cinza Claro */
}

/* 4. ÍCONES E BOTÕES DE NAVEGAÇÃO */
/* Ícone na Navbar */
[data-bs-theme="dark"] .profile-nav-icon {
    background-color: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important; /* Azul Neon Suave */
}

/* Botão Voltar (Dark) */
[data-bs-theme="dark"] #btn-back-to-dashboard-from-profile {
    background-color: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #f8fafc !important;
}
[data-bs-theme="dark"] #btn-back-to-dashboard-from-profile:hover {
    background-color: rgba(59, 130, 246, 0.2) !important;
    border-color: #3b82f6 !important;
}

/* 5. LISTA DE DADOS PESSOAIS */
[data-bs-theme="dark"] .profile-icon-box {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
}

/* 6. LISTA DE CURSOS CONCLUÍDOS (O Molde Dark) */
[data-bs-theme="dark"] #aluno-profile-view #profile-course-list .list-group-item {
    /* Degradê Dark: Verde Escuro Transparente -> Slate Escuro */
    background: linear-gradient(to right, rgba(6, 78, 59, 0.4), rgba(30, 41, 59, 0.6)) !important;
    border-color: rgba(255, 255, 255, 0.05) !important;
    border-left: 5px solid #10B981 !important; /* Mantém a faixa verde vibrante */
    box-shadow: 0 4px 6px rgba(0,0,0,0.2) !important;
}

/* Ícone de Medalha no Card Escuro */
[data-bs-theme="dark"] #aluno-profile-view #profile-course-list .bg-success.bg-opacity-10 {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #34d399 !important; /* Verde Claro Neon */
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Nota Final (Pílula Dark) */
[data-bs-theme="dark"] #aluno-profile-view #profile-course-list .text-success.fw-bold {
    background-color: rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}

/* 7. AVATAR (Borda Escura) */
[data-bs-theme="dark"] #profile-current-avatar {
    border-color: #1e293b !important; /* Borda da cor do card */
    background-color: #334155 !important;
}

/* 8. MODAL DE AVATAR (Dark) */
[data-bs-theme="dark"] #avatar-modal .modal-content {
    background-color: #1e293b !important;
    color: #fff !important;
}
[data-bs-theme="dark"] .avatar-option-wrapper {
    background-color: #0f172a !important;
    border-color: rgba(255,255,255,0.1) !important;
}
[data-bs-theme="dark"] .avatar-option {
    background-color: #1e293b !important;
}