/**
 * Portal ANCORD - Estilos Base
 * Baseado no design do Figma
 */

/* ===== Reset e Base ===== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.portal-ancord {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* ===== Header / Navegação ===== */
.portal-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 1rem 2rem;
}

.portal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.portal-nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.portal-nav a {
    text-decoration: none;
    color: #000;
    font-weight: 400;
    transition: color 0.2s;
}

.portal-nav a:hover {
    color: #666;
}

.portal-logo {
    font-weight: 600;
    font-size: 1.25rem;
}

/* ===== Container Principal ===== */
.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Primeiro Acesso ===== */
.portal-primeiro-acesso-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-login-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.portal-login-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #000;
    margin-bottom: 2rem;
    text-align: center;
}

/* ===== Formulários ===== */
.portal-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

.portal-form-group {
    margin-bottom: 1.25rem;
}

.portal-form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #666;
}

.portal-form-input {
    width: 100%;
    height: 44px;
    padding: 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    background-color: #fff;
    transition: border-color 0.2s, outline 0.2s;
}

.portal-form-input:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    border-color: #00cdff;
}

.portal-form-button {
    width: 100%;
    max-width: 320px;
    height: 44px;
    padding: 0;
    background-color: #00cdff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Nunito Sans', sans-serif;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1.5rem auto 0;
    display: block;
}

.portal-form-button:hover {
    background-color: #00a8d4;
}

.portal-form-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.portal-form-error {
    background-color: #fee;
    color: #c00;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.portal-form-success {
    background-color: #efe;
    color: #060;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

/* ===== Footer ===== */
.portal-footer {
    background-color: #292929;
    padding: 2rem 0;
    margin-top: 0;
    text-align: left;
    font-size: 0.875rem;
    color: #999;
    width: 100%;
}

.portal-footer-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portal-footer-column {
    display: flex;
    flex-direction: column;
}

.portal-footer-column-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.portal-footer-column-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-footer-column-links a {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 8px;
    color: #999;
    text-decoration: none;
}

.portal-footer-column-links a:hover {
    color: #fff;
}

.portal-footer-social {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    align-items: center;
}

.portal-footer-social a {
    display: inline-block;
    width: 32px;
    height: 32px;
}

.portal-footer-social svg,
.portal-footer-social img {
    width: 32px;
    height: 32px;
    fill: #fff;
}

.portal-footer-cpf-field {
    max-width: 200px;
    margin: 0 auto;
}

.portal-footer-links {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.portal-footer-links a {
    color: #999;
    text-decoration: none;
    margin: 0 1rem;
}

.portal-footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.portal-footer-logo {
    margin: 2rem auto 1rem;
    text-align: center;
}

.portal-footer-logo img {
    max-height: 77px;
    opacity: 1;
}

.portal-footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 8px;
}

/* ===== Cards / Boxes ===== */
.portal-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.portal-card-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000;
}

/* ===== Listas ===== */
.portal-list {
    list-style: none;
}

.portal-list-item {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.portal-list-item:last-child {
    border-bottom: none;
}

.portal-list-item a {
    color: #000;
    text-decoration: none;
}

.portal-list-item a:hover {
    text-decoration: underline;
}

/* ===== Responsivo (Mobile) ===== */
@media (max-width: 768px) {
    .portal-container {
        padding: 1rem;
    }

    .portal-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .portal-nav ul {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        text-align: center;
    }

    .portal-form {
        padding: 1.5rem;
    }

    .portal-header {
        padding: 1rem;
    }

    .portal-footer {
        padding: 1.5rem 1rem;
    }
}

/* ===== Páginas Específicas ===== */

/* Dupla Autenticação */
.portal-2fa-container {
    max-width: 400px;
    margin: 4rem auto;
    text-align: center;
}

.portal-2fa-code-input {
    font-size: 1.5rem;
    letter-spacing: 0.5rem;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.portal-2fa-info {
    margin-top: 1rem;
    color: #666;
    font-size: 0.875rem;
}

/* Login - Baseado no Figma */
.portal-login-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    min-height: 100vh;
}

/* Logo Header */
.portal-login-logo-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.portal-login-logo-container {
    width: 200px;
    height: auto;
    max-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Box de Login */
.portal-login-box {
    width: 100%;
    max-width: 420px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
}

.portal-login-box-content {
    width: 100%;
}

.portal-login-welcome {
    text-align: center;
    margin: 0 0 1.5rem 0;
}

.portal-login-welcome-bold {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: bold;
    font-size: 20px;
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-login-welcome-text {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: #000;
    line-height: 1.5;
}

/* Form Login */
.portal-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-login-field {
    display: flex;
    flex-direction: column;
}

.portal-login-label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #666;
    margin-bottom: 0.5rem;
}

.portal-login-input {
    width: 100%;
    height: 48px;
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 1rem;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, outline 0.2s;
}

.portal-login-input:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
}

/* Opções */
.portal-login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.5rem 0;
}

.portal-login-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.portal-login-checkbox {
    width: 18px;
    height: 18px;
    background-color: #f6f6f6;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    flex-shrink: 0;
}

.portal-login-checkbox-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #666;
}

.portal-login-forgot {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #fd9733;
    text-decoration: none;
}

.portal-login-forgot:hover {
    text-decoration: underline;
}

/* Botão Entrar */
.portal-login-button {
    width: 100%;
    max-width: 280px;
    height: 44px;
    background-color: #00cdff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin: 1.5rem auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-login-button:hover {
    background-color: #00a8d4;
}

.portal-login-button-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsivo Login */
@media (max-width: 768px) {
    .portal-login-wrapper {
        padding: 1.5rem 1rem;
    }

    .portal-login-logo-container {
        width: 180px;
        max-width: 100%;
        height: auto;
        margin-bottom: 1.5rem;
    }

    .portal-login-box {
        padding: 1.5rem;
        max-width: 100%;
    }

    .portal-login-welcome-bold {
        font-size: 18px;
    }

    .portal-login-welcome-text {
        font-size: 14px;
    }

    .portal-login-label {
        font-size: 13px;
    }

    .portal-login-input {
        height: 44px;
        font-size: 16px;
    }

    .portal-login-button {
        width: 100%;
        max-width: 100%;
    }

    .portal-login-button-text {
        font-size: 15px;
    }

    .portal-login-checkbox {
        width: 16px;
        height: 16px;
    }

    .portal-login-checkbox-text,
    .portal-login-forgot {
        font-size: 13px;
    }
}

/* Home / Dashboard - Layout com Sidebar (Baseado no Figma) */
.portal-home-page {
    min-height: 100vh;
    background-color: #fff;
}

.portal-home-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Esquerda (265px) */
.portal-sidebar {
    width: 265px;
    background-color: #fff;
    border-right: 1px solid rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
}

.portal-sidebar-logo {
    padding: 2rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-sidebar-logo-img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.portal-user-card {
    background-color: #475569;
    margin: 1rem;
    padding: 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.portal-user-name {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #fff;
}

/* Menu Lateral */
.portal-sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-sidebar-section {
    margin-bottom: 1.5rem;
}

.portal-sidebar-section-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #474747;
    text-transform: uppercase;
    padding: 0 1.5rem 0.5rem;
}

.portal-sidebar-menu {
    display: flex;
    flex-direction: column;
}

.portal-sidebar-menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    color: #000;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    transition: background-color 0.2s;
}

.portal-sidebar-menu-item:hover,
.portal-sidebar-menu-item.active,
.admin-sidebar .portal-sidebar-menu-item.active {
    background-color: #475569;
    color: #fff;
}

.portal-sidebar-icon {
    font-size: 16px;
    width: 16px;
    text-align: center;
}

.portal-sidebar-submenu {
    padding-left: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-sidebar-submenu-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    padding-left: 2.5rem;
    text-decoration: none;
    color: #666;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 4px;
}

.portal-sidebar-submenu-icon {
    font-size: 12px;
    width: 12px;
    text-align: center;
    color: #999;
}

.portal-sidebar-submenu-item:hover {
    background-color: rgba(71, 85, 105, 0.1);
    color: #000;
}

.portal-sidebar-submenu-item.active {
    background-color: rgba(71, 85, 105, 0.15);
    color: #000;
    font-weight: 400;
}

/* Menu item com submenu retrátil */
.portal-sidebar-menu-item.has-submenu {
    cursor: pointer;
    user-select: none;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-sidebar-menu-item.has-submenu .portal-sidebar-menu-item-arrow {
    margin-left: auto;
    font-size: 12px;
    transition: transform 0.2s;
    color: #666;
    display: inline-block;
    flex-shrink: 0;
}

.portal-sidebar-menu-item.has-submenu.expanded .portal-sidebar-menu-item-arrow {
    transform: rotate(90deg);
}

.portal-sidebar-submenu.collapsed {
    display: none;
}

/* Section Institucional */
.portal-sidebar-institutional {
    background-color: #ddd;
    padding: 1.5rem;
    margin-top: auto;
}

.portal-sidebar-institutional-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 600;
    font-size: 10px;
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-sidebar-institutional-links {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.portal-sidebar-institutional-links a {
    color: #000;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 8px;
}

.portal-sidebar-institutional-links a:hover {
    text-decoration: underline;
}

/* Botão Sair */
.portal-sidebar-logout {
    background-color: #474747;
    padding: 0.75rem 1rem;
}

.portal-sidebar-logout-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
}

/* Conteúdo Principal */
.portal-home-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portal-home-header {
    background-color: #475569;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portal-home-header-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #fff;
    margin: 0;
}

.portal-home-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-home-notification {
    position: relative;
    display: inline-block;
}

.portal-home-notification-icon {
    font-size: 24px;
}

.portal-home-notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    background-color: #ff4444;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* Breadcrumb */
.portal-home-breadcrumb {
    background-color: rgba(171, 171, 171, 0.2);
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portal-breadcrumb-icon {
    font-size: 16px;
}

.portal-breadcrumb-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #000;
}

.portal-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #666;
    transition: color 0.2s;
}

.portal-breadcrumb-link:hover {
    color: #000;
}

.portal-breadcrumb-link .portal-breadcrumb-text {
    color: inherit;
}

.portal-breadcrumb-separator {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #000;
    margin: 0 0.25rem;
}

/* Conteúdo */
.portal-home-content {
    flex: 1;
    padding: 1rem 2rem;
    overflow-y: auto;
}

.portal-home-section-header {
    margin-bottom: 2rem;
}

.portal-home-section-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-home-section-date {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #000;
}

/* Feed de Publicações */
.portal-home-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.portal-home-post {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    padding-left: calc(80px + 20px); /* Largura da barra (80px) + distância do texto (20px) */
    background: transparent;
    position: relative;
}

.portal-home-post-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.portal-home-post-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.portal-home-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.portal-home-post-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: #000;
    margin: 0;
}

.portal-home-post-group {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: #000;
}

.portal-home-post-badge {
    background-color: rgba(255, 246, 0, 0.2);
    border-radius: 30px;
    padding: 0.25rem 0.75rem;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 12px;
    color: #ff9500;
}

.portal-home-post-description {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portal-home-post-attachments {
    margin-top: 1rem;
    padding-top: 1rem;
}

.portal-home-post-attachments-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #000;
    margin-bottom: 0.5rem;
}

.portal-home-post-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.portal-home-post-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #000;
    text-decoration: underline;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
}

.portal-attachment-icon {
    font-size: 12px;
}

.portal-home-post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-home-post-date {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #000;
}

.portal-home-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

/* Grid de Grupos */
.portal-home-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portal-home-group-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    background: transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.portal-home-group-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-home-group-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portal-home-group-header {
    margin-bottom: 1rem;
}

.portal-home-group-name {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: bold;
    font-size: 16px;
    color: #000;
    margin: 0;
}

.portal-home-group-description {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.portal-home-group-footer {
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.portal-home-group-tipo {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #666;
}

/* Card de Informações do Grupo */
.portal-home-group-info-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background: transparent;
    margin-bottom: 2rem;
    overflow: hidden;
}

.portal-home-group-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background-color: #f1f1f1;
}

.portal-home-group-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-home-group-image.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-home-group-info-content {
    padding: 2rem;
}

.portal-home-group-info-section {
    margin-bottom: 2rem;
}

.portal-home-group-info-section:last-child {
    margin-bottom: 0;
}

.portal-home-group-info-title {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: bold;
    font-size: 12px;
    color: #000;
    margin-bottom: 1rem;
}

.portal-home-group-info-text {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #000;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.portal-home-group-info-meta {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
    color: #000;
    margin-top: 0.5rem;
}

.portal-home-group-members {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.portal-home-group-member-avatar {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portal-home-group-member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-home-group-member-avatar-more {
    background-color: #474747;
    color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: bold;
    font-size: 10px;
}

.portal-home-group-link {
    color: #000;
    text-decoration: none;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 300;
    font-size: 10px;
}

.portal-home-group-link:hover {
    text-decoration: underline;
}

/* Filtros */
.portal-home-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Garante que inputs e botões na mesma linha tenham a mesma altura */
.portal-home-filters > * {
    height: 36px;
    box-sizing: border-box;
}

.portal-home-filters input[type="text"] {
    height: 36px;
    box-sizing: border-box;
}

/* Regra global: garante altura consistente de botões e inputs em containers flex horizontais */
div[style*="display: flex"]:not([style*="flex-direction: column"]) button:not([style*="position: absolute"]):not([style*="position:absolute"]),
div[style*="display: flex"]:not([style*="flex-direction: column"]) a.ancord-btn,
div[style*="display: flex"]:not([style*="flex-direction: column"]) .ancord-btn,
div[style*="display: flex"]:not([style*="flex-direction: column"]) .ancord-button,
div[style*="display: flex"]:not([style*="flex-direction: column"]) .portal-button,
.portal-home-header-actions button,
.portal-home-header-actions .ancord-button,
.portal-home-header-actions .portal-button,
.portal-home-header-actions a.ancord-btn {
    height: 36px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Garante que inputs em containers flex também tenham altura consistente */
div[style*="display: flex"]:not([style*="flex-direction: column"]) input[type="text"]:not([style*="position: absolute"]):not([style*="position:absolute"]),
.portal-home-header-actions input[type="text"] {
    height: 36px !important;
    box-sizing: border-box !important;
}

.portal-home-filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: #fff;
    border: 0.5px solid #000;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 400;
    height: 36px;
    box-sizing: border-box;
    font-size: 12px;
    color: #000;
    transition: background-color 0.2s;
}

.portal-home-filter-btn:hover {
    background-color: #f9f9f9;
}

.portal-home-filter-search {
    background-color: #474747;
    color: #fff;
    border-color: #474747;
}

.portal-home-filter-search:hover {
    background-color: #333;
}

/* Mobile: ajusta altura dos filtros */
@media (max-width: 768px) {
    .portal-home-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portal-home-filters > * {
        width: 100%;
        height: auto;
        min-height: 44px;
    }
    
    .portal-home-filters input[type="text"] {
        height: 44px;
        min-height: 44px;
    }
    
    .portal-home-filter-btn {
        height: 44px;
        min-height: 44px;
    }
    
    #portal-date-filter {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
    }
}

.portal-home-filter-icon {
    font-size: 14px;
}

.portal-home-filter-text {
    font-size: 12px;
}

/* Barra lateral dos posts */
.portal-home-post-barra {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    border-radius: 10px 0 0 10px;
}

/* Mobile Header - oculto em desktop */
.portal-mobile-header {
    display: none;
}

/* Responsivo */
@media (max-width: 768px) {
    /* Mobile: Sidebar vira drawer oculto */
    .portal-home-layout {
        flex-direction: column;
    }

    .portal-sidebar {
        width: 265px;
        max-width: 265px;
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        z-index: 1000;
        transition: left 0.3s ease;
        background-color: #fff;
        border-right: 1px solid rgba(0, 0, 0, 0.2);
    }

    .portal-sidebar.mobile-open {
        left: 0;
    }

    .portal-sidebar-nav {
        max-height: none;
        overflow-y: auto;
        flex: 1;
    }

    /* Mobile Header - Branco com logo pequena */
    .portal-mobile-header {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 41px;
        background-color: #fff;
        border-bottom: 1px solid rgba(0, 0, 0, 0.2);
        justify-content: space-between;
        align-items: center;
        padding: 0.25rem 0.5rem;
        z-index: 999;
    }

    .portal-mobile-header-logo {
        height: 30px;
        width: auto;
        max-width: 87.5px;
    }

    .portal-mobile-header-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .portal-mobile-menu-toggle {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .portal-mobile-menu-toggle-icon {
        font-size: 24px;
        color: #474747;
    }

    .portal-home-header {
        display: none;
    }

    .portal-home-header-title {
        font-size: 24px;
    }

    .portal-home-header-actions {
        width: auto;
    }

    .portal-home-notification-icon {
        font-size: 24px;
    }

    .portal-home-notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        top: -3px;
        right: -3px;
    }

    .portal-home-breadcrumb {
        flex-wrap: wrap;
        padding: 0.25rem 0.5rem;
        font-size: 10px;
        background-color: #eeeeee;
    }

    .portal-breadcrumb-icon {
        font-size: 12px;
    }

    .portal-breadcrumb-text {
        font-size: 10px;
    }

    .portal-home-groups-grid {
        grid-template-columns: 1fr;
    }

    .portal-home-feed {
        gap: 1rem;
    }

    .portal-home-post {
        padding: 1rem;
        margin-left: 0;
    }

    .portal-home-post-badge {
        font-size: 10px;
        padding: 0.15rem 0.5rem;
    }

    .portal-home-post-description {
        font-size: 8px;
    }

    .portal-home-post-title {
        font-size: 12px;
    }

    .portal-home-post-group {
        font-size: 8px;
    }

    .portal-home-post-attachments-title {
        font-size: 10px;
    }

    .portal-home-post-attachment-item {
        font-size: 10px;
    }

    .portal-home-post-date {
        font-size: 12px;
    }

    .portal-home-post-barra {
        display: none;
    }

    .portal-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .portal-home-content {
        padding: 1rem;
    }

    .portal-home-section-title {
        font-size: 14px;
    }

    .portal-home-section-date {
        font-size: 12px;
    }

    /* Footer mobile */
    .portal-footer-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }

    .portal-footer-social {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ===== Estilos Admin ===== */
.admin-page {
    background-color: #f9f9f9;
}

.admin-header {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.admin-nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Page Header */
.portal-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: 0;
}

.portal-page-title {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
}

.portal-page-subtitle {
    color: #666;
    margin-bottom: 2rem;
}

/* Buttons */
.portal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
    height: 36px;
    box-sizing: border-box;
    line-height: 1;
}

.portal-button:hover {
    background-color: #333;
}

.portal-button-primary {
    background-color: #000;
}

.portal-button-secondary {
    background-color: #666;
}

/* Form Inline */
.portal-form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.portal-form-inline .portal-form-group {
    margin-bottom: 0;
    flex: 1;
    min-width: 200px;
}

/* Tables */
.portal-table-responsive {
    overflow-x: auto;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.portal-table thead {
    background-color: #f5f5f5;
}

.portal-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 500;
    border-bottom: 2px solid #e0e0e0;
}

.portal-table td {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.portal-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Badges */
.portal-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

.portal-badge-ativo {
    background-color: #d4edda;
    color: #155724;
}

.portal-badge-pendente {
    background-color: #fff3cd;
    color: #856404;
}

.portal-badge-inativo {
    background-color: #f8d7da;
    color: #721c24;
}

/* Stats List */
.portal-stats-list {
    list-style: none;
}

.portal-stats-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.portal-stats-list li:last-child {
    border-bottom: none;
}

.portal-stat-label {
    color: #666;
}

.portal-stat-value {
    font-weight: 500;
}

/* Links */
.portal-link {
    color: #0066cc;
    text-decoration: none;
}

.portal-link:hover {
    text-decoration: underline;
}

.portal-meta {
    color: #666;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .portal-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .portal-form-inline {
        flex-direction: column;
    }

    .portal-form-inline .portal-form-group {
        width: 100%;
        min-width: auto;
    }

    .portal-table-responsive {
        overflow-x: scroll;
        -webkit-overflow-scrolling: touch;
    }
}

/* ===== TABELAS ANCORD ===== */
.ancord-table-responsive {
    overflow-x: auto;
    width: 100%;
}

.ancord-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ancord-table thead {
    background-color: rgba(51, 65, 85, 0.1);
}

.ancord-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #1E1E1E;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 12px;
    color: #1E1E1E;
}

.ancord-table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.ancord-table tbody tr:last-child td {
    border-bottom: none;
}

.ancord-table-empty {
    text-align: center;
    padding: 2rem !important;
    color: #666;
    font-style: italic;
}

/* Filtro de busca estilo imagem */
.ancord-filter-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.ancord-form-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ancord-form-inline .ancord-form-group {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ancord-form-label {
    font-size: 12px;
    font-weight: 500;
    color: #1E1E1E;
    margin: 0;
}

.ancord-form-input {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    font-size: 12px;
    min-width: 300px;
}

.ancord-form-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.1);
}

/* ===== PADRÃO ANCORD-WRAP (NOVO) ===== */
.ancord-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px;
}

/* Ajuste de espaçamento para páginas do portal */
.portal-main-content {
    padding: 0;
}

.portal-main-content .ancord-wrap {
    padding-top: 1rem;
}

/* Reduz espaçamento do breadcrumb nas páginas do portal */
.portal-main-content nav.portal-breadcrumb {
    margin-bottom: 1rem;
    margin-top: 0;
}

/* Desktop - visível apenas em telas maiores */
.ancord-desktop {
    display: block;
}

.ancord-mobile {
    display: none;
}

/* Mobile - visível apenas em telas menores */
@media (max-width: 768px) {
    .ancord-desktop {
        display: none;
    }

    .ancord-mobile {
        display: block;
    }
}

/* Footer padrão */
.ancord-footer {
    text-align: center;
    padding: 2rem;
    color: #666;
    font-size: 0.875rem;
}

/* ===== Notificações ===== */
.ancord-notificacoes-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ancord-notificacao-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: background-color 0.2s;
}

.ancord-notificacao-item:hover {
    background-color: #f9f9f9;
}

.ancord-notificacao-item:last-child {
    border-bottom: none;
}

.ancord-notificacao-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-notificacao-titulo {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-notificacao-link {
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.ancord-notificacao-link:hover {
    color: #00cdff;
}

.ancord-notificacao-mensagem {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.ancord-notificacao-data {
    font-size: 0.75rem;
    color: #999;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .ancord-notificacao-item {
        padding: 1rem;
    }

    .ancord-notificacao-titulo {
        font-size: 0.9375rem;
    }

    .ancord-notificacao-mensagem {
        font-size: 0.8125rem;
    }
}

/* Dashboard */
.ancord-dashboard-header {
    margin-bottom: 2rem;
}

.ancord-dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-dashboard-content {
    margin-top: 2rem;
}

/* Mobile Header */
.ancord-mobile-header {
    margin-bottom: 1rem;
}

.ancord-mobile-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

/* Seção */
.ancord-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ancord-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.ancord-section-date {
    font-size: 0.875rem;
    color: #666;
    margin: 0;
}

/* Feed */
.ancord-feed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Post */
.ancord-post {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    background: #fff;
}

.ancord-post-clickable {
    cursor: pointer;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ancord-post-clickable:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.ancord-post-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ancord-post-title {
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-post-group {
    font-size: 0.875rem;
    color: #666;
}

.ancord-post-badge {
    background-color: rgba(255, 246, 0, 0.2);
    color: #ff9500;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    margin-left: auto;
}

.ancord-post-content {
    margin-bottom: 1rem;
}

.ancord-post-description {
    font-size: 0.875rem;
    color: #000;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.ancord-post-attachments {
    margin-top: 1rem;
}

.ancord-post-attachments-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.5rem 0;
}

.ancord-post-attachments-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-post-attachment-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #000;
    text-decoration: underline;
}

.ancord-post-footer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-post-date {
    font-size: 0.875rem;
    color: #666;
}

.ancord-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* Mobile Content */
.ancord-mobile-content {
    margin-top: 1rem;
}

/* Groups */
.ancord-group-header {
    margin-bottom: 0;
    padding: 1.5rem 1.5rem 0.75rem 1.5rem;
}

.ancord-group-card:has(.ancord-group-image) .ancord-group-header {
    padding-top: 1rem;
}

.ancord-group-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-group-content {
    margin-top: 2rem;
}

.ancord-groups-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.ancord-groups-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.ancord-group-card {
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 0;
    background: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.ancord-group-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.ancord-group-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.ancord-group-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background-color: #f5f5f5;
    margin-bottom: 0;
}

.ancord-group-capa {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ancord-group-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 0.75rem 0;
}

.ancord-group-description {
    font-size: 0.875rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    padding: 0 1.5rem;
}

.ancord-group-footer {
    margin-top: 1rem;
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-group-tipo {
    font-size: 0.75rem;
    font-weight: 500;
    color: #666;
    text-transform: uppercase;
}

/* Members List */
.ancord-members-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.ancord-members-title {
    font-size: 2rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-members-content {
    margin-top: 2rem;
}

.ancord-members-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.ancord-members-table thead {
    background: #f5f5f5;
}

.ancord-members-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.875rem;
    color: #000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-members-table td {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.875rem;
    color: #000;
}

.ancord-members-table tbody tr:last-child td {
    border-bottom: none;
}

.ancord-members-table tbody tr:hover {
    background: #f9f9f9;
}

.ancord-members-actions {
    display: flex;
    gap: 0.5rem;
}

.ancord-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
    height: 36px;
    box-sizing: border-box;
    line-height: 1;
}

.ancord-btn-primary {
    background-color: #0066cc;
    color: #fff;
}

.ancord-btn-primary:hover {
    background-color: #0052a3;
}

.ancord-btn-secondary {
    background-color: #666;
    color: #fff;
}

.ancord-btn-secondary:hover {
    background-color: #555;
}

.ancord-btn-edit {
    background-color: transparent;
    color: #0066cc;
    border: 1px solid #0066cc;
}

.ancord-btn-edit:hover {
    background-color: #0066cc;
    color: #fff;
}

/* Botões dentro de tabelas */
table .ancord-btn {
    min-width: auto;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Modal */
.ancord-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.ancord-modal.active,
.ancord-modal[style*="flex"] {
    display: flex !important;
}

.ancord-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.ancord-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ancord-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ancord-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin: 0;
}

.ancord-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ancord-modal-close:hover {
    color: #000;
}

.ancord-modal-body {
    margin-bottom: 1.5rem;
}

.ancord-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

@media (max-width: 768px) {
    .ancord-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ancord-post {
        padding: 1rem;
    }

    .ancord-groups-grid {
        grid-template-columns: 1fr;
    }

    .ancord-members-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .ancord-members-table {
        font-size: 0.75rem;
    }

    .ancord-members-table th,
    .ancord-members-table td {
        padding: 0.5rem;
    }

    .ancord-modal-content {
        padding: 1rem;
        width: 95%;
    }
}

/* ===== ASSOCIADAS - Componentes específicos ===== */

/* Cards de estatísticas */
.ancord-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 2rem;
}

.ancord-stat-card {
    background-color: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ancord-stat-label {
    font-size: 0.75rem;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.ancord-stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: #334155;
}

.ancord-stats-grid-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.ancord-stat-card-mobile {
    background-color: #fff;
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Card de detalhes */
.ancord-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.ancord-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.ancord-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-detail-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 600;
}

.ancord-detail-value {
    font-size: 0.875rem;
    color: #000;
    font-weight: 400;
}

.ancord-detail-item-mobile {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-detail-item-mobile:last-child {
    border-bottom: none;
}

/* Barra de ações */
.ancord-actions-bar {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

.ancord-button-danger {
    background-color: transparent;
    color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.ancord-button-danger:hover {
    background-color: #000;
    color: #fff;
}

.ancord-btn-danger {
    background-color: #d32f2f;
    color: #fff;
    border: 1px solid #d32f2f;
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    height: 36px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-decoration: none;
}

.ancord-btn-danger:hover {
    background-color: #b71c1c;
    border-color: #b71c1c;
    color: #fff;
}

.ancord-btn-danger:disabled {
    background-color: #ccc;
    border-color: #ccc;
    color: #666;
    cursor: not-allowed;
}

/* Container de gráfico */
.ancord-chart-container {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 1rem;
    text-align: center;
}

.ancord-chart-placeholder {
    max-width: 100%;
    height: auto;
}

.ancord-chart-container-mobile {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-top: 1rem;
    overflow-x: auto;
}

/* Cards mobile para lista */
.ancord-card-mobile {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.ancord-card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.ancord-card-meta {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.ancord-card-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Botões padrão */
.ancord-button {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.2s;
    height: 36px;
    box-sizing: border-box;
    line-height: 1;
}

.ancord-button-primary {
    background-color: #00cdff;
    color: #fff;
    border-color: #00cdff;
}

.ancord-button-primary:hover {
    background-color: #00b8e6;
    border-color: #00b8e6;
}

.ancord-button-secondary {
    background-color: #666666;
    color: #fff;
    border-color: #666666;
}

.ancord-button-secondary:hover {
    background-color: #555555;
    border-color: #555555;
}

.ancord-button-link {
    background: none;
    border: none;
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.ancord-button-link:hover {
    color: #0056b3;
}

.ancord-form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .ancord-stats-grid {
        grid-template-columns: 1fr;
    }

    .ancord-detail-grid {
        grid-template-columns: 1fr;
    }

    .ancord-actions-bar {
        flex-direction: column;
    }

    .ancord-chart-container {
        padding: 1rem;
    }

    .ancord-form-actions {
        flex-direction: column-reverse;
    }

    .ancord-button {
        width: 100%;
    }
}

/* ===== FORMULÁRIOS PADRONIZADOS (FIGMA) ===== */

/* Modal melhorado - mais espaço e melhor layout */
.ancord-modal[style*="block"] {
    display: flex !important;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem 1rem;
}

.ancord-modal-content {
    max-width: 960px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 2rem auto;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Título do modal */
.ancord-modal-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Botão fechar do modal */
.ancord-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    line-height: 1;
    color: #666;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.ancord-modal-close:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Seções de formulário */
.ancord-form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ancord-form-section-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Group - Padrão Figma */
.ancord-form-group {
    margin-bottom: 1rem;
}

.ancord-form-group label {
    display: block;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9c9c9c;
    margin-bottom: 0.5rem;
    text-transform: none;
}

.ancord-form-group input[type="text"],
.ancord-form-group input[type="email"],
.ancord-form-group input[type="tel"],
.ancord-form-group input[type="number"],
.ancord-form-group input[type="password"],
.ancord-form-group textarea,
.ancord-form-group select {
    width: 100%;
    height: 39px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #000;
    transition: all 0.2s;
}

.ancord-form-group input:focus,
.ancord-form-group textarea:focus,
.ancord-form-group select:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    background-color: #fff;
}

.ancord-form-group textarea {
    min-height: 80px;
    padding: 0.75rem 1rem;
    resize: vertical;
}

.ancord-form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Campos em grid (lado a lado) */
.ancord-form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ancord-form-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.ancord-form-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.ancord-form-grid-2-1-1 {
    grid-template-columns: 2fr 1fr 1fr;
}

/* Títulos de seção dentro do modal */
.ancord-modal-content h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #000;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-modal-content h3:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Ações do formulário (botões) */
.ancord-form-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive - Formulários */
@media (max-width: 768px) {
    .ancord-modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 95vh;
    }

    .ancord-modal-close {
        top: 1rem;
        right: 1rem;
    }

    .ancord-form-grid-2,
    .ancord-form-grid-3,
    .ancord-form-grid-2-1-1 {
        grid-template-columns: 1fr;
    }

    .ancord-form-actions {
        flex-direction: column-reverse;
    }

    .ancord-form-actions .ancord-button {
        width: 100%;
    }
}

/* Melhoria nos campos de visualização (detail view) */
.ancord-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ancord-detail-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #9c9c9c;
}

.ancord-detail-value {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #000;
}

/* Cards de detalhes */
.ancord-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Grid de detalhes */
.ancord-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .ancord-detail-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ===== Questionários ===== */
.ancord-questionarios-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ancord-questionario-item {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 1.5rem;
    background-color: #fff;
}

.ancord-questionario-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ancord-questionario-header h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: #000;
    flex: 1;
}

.ancord-badge-respondido,
.ancord-badge-pendente {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.ancord-badge-respondido {
    background-color: #4caf50;
    color: #fff;
}

.ancord-badge-pendente {
    background-color: #ff9800;
    color: #fff;
}

.ancord-questionario-descricao {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.ancord-questionario-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #9c9c9c;
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-questionario-grupo {
    font-weight: 600;
}

.ancord-questionario-actions {
    display: flex;
    gap: 1rem;
}

.ancord-questionario-view {
    padding: 0;
}

.ancord-questionario-view h2 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1rem;
}

/* Barra lateral para questões de questionários */
.ancord-questao-item {
    position: relative;
    padding-left: calc(80px + 20px);
}

.ancord-questao-item-barra {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    border-radius: 10px 0 0 10px;
    background-color: #FF6B01;
}

.ancord-questao-content {
    position: relative;
}

.ancord-respostas-view {
    margin-top: 2rem;
}

.ancord-respostas-view h3 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.125rem;
    font-weight: 800;
    color: #000;
    margin-bottom: 1.5rem;
}

.ancord-resposta-item {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.ancord-resposta-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.ancord-resposta-pergunta {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.75rem;
}

.ancord-resposta-resposta {
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.ancord-resposta-vazia {
    color: #999;
    font-style: italic;
}

.ancord-radio-group {
    display: flex;
    gap: 2rem;
    margin-top: 0.5rem;
}

.ancord-radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.ancord-radio-label input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .ancord-questionario-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ancord-questionario-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ancord-questionario-actions {
        flex-direction: column;
    }

    .ancord-questionario-actions .ancord-button {
        width: 100%;
    }

    .ancord-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Botão de seleção de grupos */
.ancord-grupos-select-button {
    width: 100%;
    height: 39px;
    background-color: #f9f9f9;
    border: none;
    border-radius: 10px;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: #666;
    text-align: left;
}

.ancord-grupos-select-button:hover {
    background-color: #f0f0f0;
}

.ancord-grupos-select-button:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    background-color: #fff;
}

.ancord-grupos-select-button span:first-child {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Lista de grupos no modal */
.ancord-grupos-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-grupo-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    border-radius: 5px;
    border: 1px solid transparent;
}

.ancord-grupo-checkbox-item:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
}

.ancord-grupo-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #00cdff;
    flex-shrink: 0;
}

.ancord-grupo-checkbox-item span {
    flex: 1;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    user-select: none;
}

/* Scrollbar customizada para a lista */
.ancord-grupos-list::-webkit-scrollbar {
    width: 8px;
}

.ancord-grupos-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ancord-grupos-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.ancord-grupos-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ===== Dashboard Admin ===== */
.ancord-dashboard-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.ancord-dashboard-section {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
}

.ancord-dashboard-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-group-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #000;
    margin: 0;
}

.ancord-dashboard-group-select {
    flex: 1;
    max-width: 300px;
    height: 36px;
    padding: 0 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    background-color: #fff;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 12px;
    padding-right: 2.5rem;
}

.ancord-dashboard-group-name {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    font-weight: 400;
}

.ancord-dashboard-group-select:focus {
    outline: 2px solid #00cdff;
    outline-offset: -2px;
    border-color: #00cdff;
}

.ancord-dashboard-section-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.ancord-dashboard-section-title-outside {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    margin: 0 0 1rem 0;
}

/* Grid de Posts */
.ancord-dashboard-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-post-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ancord-dashboard-post-card-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ancord-dashboard-post-type {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: #000;
    text-transform: uppercase;
}

.ancord-dashboard-post-date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: #666;
}

.ancord-dashboard-post-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.ancord-dashboard-post-metric {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
}

.ancord-dashboard-post-metric-icon {
    font-size: 0.875rem;
}

.ancord-dashboard-post-metric-value {
    font-weight: 600;
    color: #000;
}

.ancord-dashboard-post-metric-label {
    color: #666;
}

/* Resumo de Posts */
.ancord-dashboard-posts-summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.ancord-dashboard-posts-summary-icon {
    font-size: 1.25rem;
}

.ancord-dashboard-posts-summary-text {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #666;
    flex: 1;
}

.ancord-dashboard-posts-summary-value {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

/* Link Ver todos os posts */
.ancord-dashboard-posts-link {
    text-align: left;
}

.ancord-dashboard-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #000;
    text-decoration: none;
    transition: color 0.2s;
}

.ancord-dashboard-link:hover {
    color: #00cdff;
}

.ancord-dashboard-link-arrow {
    font-size: 0.875rem;
}

/* Lista de Questionários */
.ancord-dashboard-questionarios-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ancord-dashboard-questionario-card {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
}

.ancord-dashboard-questionario-card-empty {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ancord-dashboard-questionario-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.ancord-dashboard-questionario-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ancord-dashboard-questionario-separator {
    color: #666;
}

.ancord-dashboard-questionario-group {
    color: #666;
}

.ancord-dashboard-questionario-link {
    color: #000;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.ancord-dashboard-questionario-link:hover {
    color: #00cdff;
}

.ancord-dashboard-questionario-arrow {
    display: inline-block;
}

.ancord-dashboard-questionario-description {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.ancord-dashboard-questionario-date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: #666;
}

.ancord-dashboard-questionarios-link {
    text-align: right;
}

/* Estatísticas de Membros */
.ancord-dashboard-members-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.ancord-dashboard-member-stat-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.875rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 0 auto;
    width: auto;
    min-width: 180px;
    max-width: 250px;
}

.ancord-dashboard-member-stat-icon {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    line-height: 1;
}

.ancord-dashboard-member-stat-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.75rem;
    color: #666;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.ancord-dashboard-member-stat-value {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
    line-height: 1;
}

/* Gráfico de Membros */
.ancord-dashboard-members-chart {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    height: 300px;
    position: relative;
    width: 100%;
}

.ancord-dashboard-members-chart canvas {
    max-height: 100%;
}

/* Responsividade */
@media (max-width: 1024px) {
    .ancord-dashboard-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ancord-dashboard-container {
        padding: 1rem 0;
    }

    .ancord-dashboard-section {
        padding: 1rem;
    }

    .ancord-dashboard-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .ancord-dashboard-group-select {
        max-width: 100%;
        width: 100%;
    }

    .ancord-dashboard-posts-grid {
        grid-template-columns: 1fr;
    }

    .ancord-dashboard-members-stats {
        grid-template-columns: 1fr;
    }

    .ancord-dashboard-members-chart {
        height: 250px;
    }

    .ancord-dashboard-questionarios-link {
        text-align: left;
    }
}

/* Página de Todos os Posts do Grupo */
.portal-grupo-posts-header {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.portal-grupo-posts-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    text-transform: uppercase;
    color: #000;
    margin: 0;
}

.portal-grupo-posts-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.portal-grupo-posts-search-form {
    position: relative;
    flex: 0 0 auto;
    width: 250px;
}

.portal-grupo-posts-search-input {
    width: 100%;
    height: 36px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 0.5px solid #474747;
    border-radius: 50px;
    font-size: 10px;
    font-family: 'Nunito Sans', sans-serif;
    box-sizing: border-box;
}

.portal-grupo-posts-search-input::placeholder {
    color: #999;
    text-transform: uppercase;
}

.portal-grupo-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.portal-grupo-posts-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.portal-grupo-posts-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-grupo-posts-card-link {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.portal-grupo-posts-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.portal-grupo-posts-card-title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #000;
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.portal-grupo-posts-card-views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #666;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-content {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-content p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.portal-grupo-posts-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    position: relative;
    z-index: 2;
}

.portal-grupo-posts-card-downloads {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: #666;
}

.portal-grupo-posts-card-date {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 0.875rem;
    color: #666;
}

.portal-grupo-posts-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .portal-grupo-posts-title {
        font-size: 1.5rem;
    }

    .portal-grupo-posts-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-grupo-posts-search-form {
        width: 100%;
    }

    .portal-grupo-posts-search-input {
        flex: 1;
        min-width: 0;
    }

    .portal-grupo-posts-grid {
        grid-template-columns: 1fr;
    }
}

