/* Reset e configurações base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    text-decoration: none;
}
span {
    text-decoration: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: #fafafa;
    color: #262626;
    line-height: 1.5;
}

.container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar esquerda */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 245px;
    height: 100vh;
    background-color: #fff;
    border-right: 1px solid #dbdbdb;
    padding: 25px 12px 20px 12px;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.logo {
    padding: 25px 12px 16px;
    margin-bottom: 30px;
}

.logo h2 {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    flex-grow: 1;
}

.nav-item {
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: #262626;
    border-radius: 8px;
    transition: background-color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #f2f2f2;
}

.nav-item.active .nav-link {
    font-weight: bold;
}

.nav-link i {
    font-size: 24px;
    margin-right: 16px;
    width: 24px;
}

.nav-link .profile-pic-nav {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 16px;
}

.message-count {
    background-color: #ff3040;
    color: white;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: auto;
    min-width: 20px;
    text-align: center;
}


.notification-dot {
    width: 6px;
    height: 6px;
    background-color: #ff3040;
    border-radius: 50%;
    margin-left: auto;
}

.nav-more {
    margin-top: auto;
}

.main-content {
    margin-top: 1vw;
    margin-left: 30vw; /* espaço da sidebar esquerda */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza horizontalmente os filhos */
}

/* Conteúdo principal */
.main-content-profile {
    margin-top: 1vw;
    margin-left: 10vw; /* espaço da sidebar esquerda */
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center; /* centraliza horizontalmente os filhos */
}

/* Stories */
.stories-container {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    padding: 16px 0;
    margin: 24px 0;
    overflow: hidden;
}

.stories-scroll {
    display: flex;
    gap: 16px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.stories-scroll::-webkit-scrollbar {
    display: none;
}

.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    cursor: pointer;
}

.story-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    padding: 2px;
    margin-bottom: 8px;
}

.story-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
}

.story-username {
    font-size: 12px;
    color: #262626;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Posts */
.posts-container, .stories-container {
    max-width: 630px; /* mantém a largura fixa */
    width: 100%; /* se quiser que ocupe todo o max-width */
}

.post {
    background-color: #fff;
    border: 1px solid #dbdbdb;
    border-radius: 8px;
    overflow: hidden;
}

.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
}

.post-user-info {
    display: flex;
    align-items: center;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.user-details {
    display: flex;
    align-items: center;
    gap: 4px;
}

.username {
    font-weight: 600;
    color: #262626;
    font-size: 14px;
}


.post-time {
    color: #8e8e8e;
    font-size: 12px;
}

.post-options {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.post-options:hover {
    background-color: #f2f2f2;
}

.post-image img {
    width: 100%;
    height: auto;
    display: block;
}

.post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px 4px;
}

.primary-actions {
    display: flex;
    gap: 16px;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.action-btn:hover {
    background-color: #f2f2f2;
}

.action-btn i {
    font-size: 24px;
    color: #262626;
}

.like-btn.liked i {
    color: #ed4956;
}

.save-btn.saved i {
    color: #262626;
}

.post-info {
    padding: 0 16px 16px;
}

.post-likes {
    font-size: 14px;
    margin-bottom: 8px;
}

.post-caption {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.caption-text {
    color: #262626;
}

.post-comments {
    margin-bottom: 12px;
}

.view-comments {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 8px;
    display: block;
}

.comment {
    font-size: 14px;
    margin-bottom: 4px;
}

.comment .username {
    margin-right: 8px;
}

.add-comment {
    display: flex;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #efefef;
    gap: 8px;
}

.comment-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
}

.comment-input::placeholder {
    color: #8e8e8e;
}

.comment-post {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.comment-post:hover {
    color: #00376b;
}

/* Sidebar direita */
.right-sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 320px;
    height: 100vh;
    padding: 36px 0 0 64px;
    overflow-y: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
    padding-right: 24px;
}

.profile-pic {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.profile-info {
    flex: 1;
}

.profile-info .username {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.full-name {
    color: #8e8e8e;
    font-size: 12px;
}

.switch-btn {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.suggestions-section {
    margin-bottom: 32px;
    padding-right: 24px;
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.suggestions-title {
    font-weight: 600;
    color: #8e8e8e;
    font-size: 14px;
}

.see-all {
    background: none;
    border: none;
    color: #262626;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
}

.suggestion-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-username {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    margin-bottom: 2px;
}

.suggestion-reason {
    color: #8e8e8e;
    font-size: 12px;
}

.follow-btn {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: 600;
    cursor: pointer;
    font-size: 12px;
}

.follow-btn:hover {
    color: #00376b;
}

.footer-info {
    padding-right: 24px;
}

.footer-links {
    margin-bottom: 16px;
    line-height: 1.8;
}

.footer-links a {
    color: #c7c7c7;
    text-decoration: none;
    font-size: 11px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.copyright {
    color: #c7c7c7;
    font-size: 11px;
}


/* Ajustes para imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Ajustes para imagens nos stories */
.story-avatar img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Ajustes para imagens nos posts */
.post-image img {
    object-fit: contain;
    width: 100%;
    height: auto;
}

/* Ajustes para imagens no grid de posts */
.post-item img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Responsividade para imagens */
@media (max-width: 768px) {
    .story-avatar img {
        object-fit: cover;
    }

    .post-image img {
        object-fit: contain;
    }

    .post-item img {
        object-fit: cover;
    }
}

/* Responsividade */
@media (max-width: 1264px) {
    .right-sidebar {
        display: none;
    }
    
    .main-content {
        margin-right: 0;
        max-width: none;
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 72px;
        padding: 12px 4px;
    }
    
    .sidebar .logo {
        display: none;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        justify-content: center;
        padding: 12px;
    }
    
    .nav-link i {
        margin-right: 0;
    }
    
    .nav-link .profile-pic-nav {
        margin-right: 0;
    }
    
    .main-content {
        margin-left: 72px;
        padding: 0 10px;
    }
    
    .stories-container {
        margin: 12px 0;
    }
    
    .posts-container {
        gap: 12px;
    }
    
    .post {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .sidebar {
        display: none;
    }
    
    .main-content {
        margin-left: 0;
        padding: 0;
    }
    
    .stories-container {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

/* Ajustes para telas muito pequenas */
@media (max-width: 360px) {
    .story-item {
        min-width: 60px;
    }
    
    .story-avatar {
        width: 50px;
        height: 50px;
    }
    
    .story-username {
        font-size: 10px;
    }
    
    .post-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-user-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Animações */
@keyframes likeAnimation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

.like-btn.liked {
    animation: likeAnimation 0.3s ease;
}

/* Estados hover e focus */
button:focus {
    outline: 2px solid #0095f6;
    outline-offset: 2px;
}

input:focus {
    outline: 2px solid #0095f6;
    outline-offset: 2px;
}

/* Scrollbar customizada para webkit browsers */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
/* styles.css */

/* ... seu CSS existente ... */

/* Botão Flutuante do Chatbot (FAB) */
.chatbot-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 999;
}

/* Janela do Chatbot */
.chatbot-popup {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: none; /* Começa escondido */
    flex-direction: column;
    z-index: 1000;
}

.chatbot-header {
    background-color: #f5f5f5;
    padding: 15px;
    border-bottom: 1px solid #ddd;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 16px;
}

.chatbot-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.chatbot-body {
    padding: 15px;
    height: 300px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background-color: #e9e9eb;
    align-self: flex-start;
}

.user-message {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
}

.chatbot-footer {
    padding: 15px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

.chat-option-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #007bff;
    background-color: white;
    color: #007bff;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.chat-option-btn:hover {
    background-color: #f0f0f0;
}

/* Efeito de Scan */
.scan-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 123, 255, 0.1);
    z-index: 1001;
    display: none; /* Começa escondido */
    overflow: hidden;
}

.scan-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #007bff;
    box-shadow: 0 0 10px #007bff;
    animation: scan-animation 2s ease-in-out;
}

@keyframes scan-animation {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}
/* Estilos para a resposta formatada do Chatbot */
.chat-message p {
    margin: 0; /* Remove margem padrão do parágrafo */
}

.chat-message ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style-type: disc;
}

.chat-message li {
    margin-bottom: 4px;
}
/* --- NOVOS ESTILOS PARA O POPUP DE ALERTA VISUAL --- */

/* A sobreposição escura que cobre a página inteira */
#phishing-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Garante que fique acima de tudo */
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

/* Classe para esconder o popup */
.phishing-alert-hidden {
    opacity: 0;
    pointer-events: none; /* Impede cliques quando estiver escondido */
}

/* O popup em si */
#phishing-alert-popup {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease-in-out;
}

/* Efeito de "zoom" ao aparecer */
.phishing-alert-hidden #phishing-alert-popup {
    transform: scale(0.9);
}

/* Ícone de alerta "!" */
.alert-icon {
    width: 60px;
    height: 60px;
    background-color: #ffc107; /* Amarelo alerta */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    font-weight: bold;
    margin: 0 auto 20px auto;
    border: 4px solid #fff;
}

#phishing-alert-popup h2 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

#phishing-alert-popup p {
    margin-bottom: 0;
    color: #555;
    font-size: 16px;
    line-height: 1.5;
}

/* Botão de fechar (X) */
#phishing-alert-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
}

#phishing-alert-close-btn:hover {
    color: #333;
}
/* --- NOVOS ESTILOS PARA O POPUP DE ALERTA (FORMATO NOTIFICAÇÃO/TOAST) --- */

/* O container que posiciona o popup no canto */
#phishing-alert-overlay {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999; /* Valor maior para garantir que fique acima de tudo */
    width: auto;
    height: auto;
    background-color: transparent;
    pointer-events: auto; /* Permite clicar no popup */
    transition: opacity 0.3s ease-in-out;
}

/* O popup em si, agora como um "toast" */
#phishing-alert-popup {
    background-color: #fff;
    color: #333;
    padding: 15px 40px 15px 20px; /* Mais espaço à direita para o botão 'X' */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: block; /* Mudado de flex para block */
    border-left: 5px solid #dc3545; /* Borda vermelha para indicar perigo */
    transition: opacity 0.3s ease-in-out; /* Apenas transição de opacidade */
    pointer-events: auto; /* Permite interagir com o popup */
    position: relative;
    width: 300px;
    min-height: 60px;
    margin: 0; /* Remove qualquer margem que possa centralizar */
}

/* Classe para esconder o popup */
.phishing-alert-hidden {
    display: none !important;
}

#phishing-alert-popup p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
}

/* Botão de fechar (X) */
#phishing-alert-close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 24px;
    color: #aaa;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

#phishing-alert-close-btn:hover {
    color: #333;
}

/* Força o posicionamento correto do popup - regra mais específica */
body #phishing-alert-overlay {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    left: auto !important;
    margin: 0 !important;
}

body #phishing-alert-popup {
    margin: 0 !important;
    position: relative !important;
}

