/* assets/css/style.css */

/* --- FONTES E CONFIGURAÇÕES GLOBAIS --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

body.public-page {
    font-family: 'Inter', sans-serif;
    color: white;
    background-image: url('https://images.unsplash.com/photo-1507608442743-33c33a14a46a?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- EFEITO GLASSMORPHISM --- */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
}

/* --- ESTILOS DA PÁGINA PÚBLICA --- */
.profile-pic {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.link-button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.link-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    border-color: white;
}

.link-button i {
    width: 20px; /* Alinha o texto mesmo com ícones de larguras diferentes */
}

/* --- ESTILOS DO PAINEL ADMIN --- */
body.admin-page {
    background-color: #f8f9fa; /* Um cinza claro para o fundo do admin */
}

.login-container {
    max-width: 400px;
    margin-top: 10vh;
}

/* assets/css/style.css */

/* ... (seus estilos da página pública continuam aqui em cima) ... */

/* --- NOVOS ESTILOS PARA O PAINEL ADMIN COM SIDEBAR --- */

body.admin-page {
    background-color: #f4f7f6; /* Um cinza ainda mais claro */
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    z-index: 100;
    padding: 48px 0 0;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.main-content {
    margin-left: 250px; /* Mesma largura da sidebar */
    padding: 2rem;
    width: calc(100% - 250px); /* Garante que o conteúdo ocupe o resto da tela */
}

.nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* ... (todos os seus estilos anteriores aqui) ... */

/* --- NOVOS ESTILOS PARA A PÁGINA PÚBLICA REFINADA --- */

/* Fundo com degradê para melhor legibilidade */
body.public-page::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    z-index: -1;
}

/* Animações de entrada */
@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slide-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fade-in 0.8s ease-in-out forwards; }
.slide-in { animation: slide-in 0.8s ease-in-out forwards; }

.profile-pic { animation-delay: 0.2s; }
header h1 { animation-delay: 0.4s; }
header p { animation-delay: 0.6s; }

/* Seção de Ícones Sociais */
.social-icons {
    opacity: 0; /* Começa invisível para animação */
    animation-delay: 0.8s;
}
.social-icons a {
    display: inline-block;
    color: white;
    font-size: 1.8rem;
    margin: 0 0.75rem;
    transition: all 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.2);
    color: #00c6ff; /* Cor de destaque no hover */
}

/* Efeito Neon-Glass nos botões de link */
.link-button {
    opacity: 0; /* Começa invisível para animação */
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 5px rgba(0, 198, 255, 0), 0 0 10px rgba(0, 198, 255, 0);
}
.link-button:hover {
    border-color: #00c6ff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.6), 0 0 30px rgba(0, 198, 255, 0.4);
    transform: translateY(-5px) scale(1.02);
}

/* ... (todos os seus estilos anteriores ficam aqui em cima) ... */

/* --- NOVOS ESTILOS PARA FOTO DE PERFIL E EFEITO PULSANTE --- */

/* Contêiner que envolve a foto e a pulsação */
.profile-picture-wrapper {
    position: relative; /* Essencial para posicionar os filhos */
    width: 160px;
    height: 160px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo para a FOTO DE PERFIL (agora redonda) */
.profile-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* <--- ALTERADO */
    object-fit: contain; 
    position: relative; 
    z-index: 2;
}

/* O elemento de fundo que vai pulsar (agora redondo) */
.pulsating-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    border-radius: 50%; /* <--- ALTERADO */
    z-index: 1;
    animation: pulse 2.5s infinite ease-in-out;
}

/* Definição da Animação de Pulsação */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

/* --- ESTILOS PARA FUNDO DINÂMICO --- */
.background-media {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover; /* Garante que o vídeo/imagem cubra tudo */
}

/* --- ESTILOS PARA ÍCONES CUSTOMIZADOS --- */
.custom-link-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-right: 1rem;
}
.custom-link-icon.social {
    width: 32px;
    height: 32px;
    margin: 0;
}


/* ... (todos os seus estilos anteriores ficam aqui em cima) ... */

/* --- NOVOS ESTILOS PARA O DASHBOARD PROFISSIONAL --- */

/* Estilo para os cards de estatísticas */
.stat-card {
    border: none;
    border-left: 5px solid;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.stat-card.border-primary { border-color: #0d6efd !important; }
.stat-card.border-success { border-color: #198754 !important; }
.stat-card.border-warning { border-color: #ffc107 !important; }

.stat-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #6c757d;
}

.stat-card .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #343a40;
}

/* Estilo para o container do gráfico */
.chart-container {
    position: relative;
    height: 350px; /* Altura fixa para o gráfico */
    width: 100%;
}


/* Ajusta o container principal da sidebar */
.sidebar .sidebar-sticky {
    height: 100%;
}
/* Seção do perfil no topo do menu */
.sidebar-profile {
    background-color: rgba(0,0,0,0.2);
}
.sidebar-profile-pic {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.8);
}
.sidebar-profile-name {
    font-size: 1.1rem;
    font-weight: 600;
}
.sidebar-profile-email {
    font-size: 0.8rem;
}

/* Estilos dos links de navegação */
.sidebar .nav-link {
    color: #adb5bd !important; /* Cor mais suave para links inativos */
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 12px;
    font-size: 1rem;
}

/* Efeito ao passar o mouse */
.sidebar .nav-link:not(.active):hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff !important;
}

/* Estilo do link ATIVO */
.sidebar .nav-link.active {
    background-color: #0d6efd; /* Cor primária do Bootstrap */
    color: #ffffff !important;
    border-left: 4px solid #4da3ff;
}

/* ... (todos os seus estilos anteriores ficam aqui em cima) ... */

/* --- NOVOS ESTILOS PARA O SELETOR DE PERFIS --- */

/* Botão flutuante no canto da tela */
#profileSwitcherBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

#profileSwitcherBtn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Estilo do Modal com efeito de vidro */
.glass-modal {
    background: rgba(20, 20, 20, 0.6); /* Cor de fundo escura e semi-transparente */
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Card de cada perfil dentro do modal */
.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.profile-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.profile-card span {
    color: #ffffff;
    font-weight: 500;
    text-align: center;
    font-size: 0.9rem;
}

/* ... (todos os seus estilos anteriores ficam aqui em cima) ... */

/* --- FUNDO DEGRADÊ DUPLO PARA A PÁGINA DE SELEÇÃO --- */
body.selection-page {
    font-family: 'Inter', sans-serif;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: #000;
}

body.selection-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, #00b007, #000);
    z-index: -2;
}

body.selection-page::after {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to left, #007bff, #000);
    z-index: -2;
}

/* ... (todos os seus estilos anteriores ficam aqui em cima) ... */

/* --- NOVOS ESTILOS PARA A TELA DE LOGIN MODERNIZADA --- */

/* Fundo da página de login */
.login-modern {
    background: linear-gradient(-45deg, #007bff, #00b007, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card de login com efeito de vidro */
.login-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-card .card-title,
.login-card .form-label {
    color: #fff;
    font-weight: 500;
}
.login-card hr {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Botões de acesso rápido com as logos */
.quick-login-btn {
    display: inline-block;
    transition: all 0.3s ease;
}

.quick-login-btn:hover {
    transform: scale(1.15);
}

.quick-login-btn img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}