/* ===== RESET E CONFIGURAÇÕES GERAIS ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --accent-color: #e53e3e;
    --success-color: #48bb78;
    --warning-color: #ed8936;
    --info-color: #4299e1;

    --text-dark: #2d3748;
    --text-medium: #4a5568;
    --text-light: #718096;
    --text-white: #ffffff;

    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --bg-gray: #edf2f7;
    --bg-dark: #2d3748;

    --border-light: #e2e8f0;
    --border-medium: #cbd5e0;
    --border-dark: #a0aec0;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== TIPOGRAFIA ===== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
    color: var(--text-dark);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1em;
    line-height: 1.6;
}

small {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-medium);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    transform: translateY(-1px);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--text-medium);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    padding: 8px;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-medium);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== PORTAL CONTAINER ===== */
.portal-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== HERO SECTION ===== */
.hero-portal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
    padding: 60px 40px;
    border-radius: var(--radius-2xl);
    margin-bottom: 30px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.hero-portal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
    background-size: cover;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 10px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
    display: block;
}

.hero-stat .stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== PORTAL GRID ===== */
.portal-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 30px;
    align-items: start;
}

.portal-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* ===== PORTAL CARDS ===== */
.portal-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    padding: 25px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.portal-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.card-icon {
    font-size: 1.2em;
}

/* ===== ESTATÍSTICAS PSICOGRAFIAS ===== */
.estatisticas-psicografias {
    display: flex;
    gap: 15px;
    align-items: center;
}

.estatistica-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 8px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    min-width: 70px;
}

.estatistica-numero {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.estatistica-label {
    font-size: 0.7em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
    font-weight: 600;
}

/* ===== ABAS ===== */
.tabs-container {
    margin-top: 10px;
}

.tabs-nav {
    display: flex;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: 5px;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-button:hover {
    background: var(--bg-white);
    color: var(--primary-color);
}

.tab-button.active {
    background: var(--primary-color);
    color: var(--text-white);
    box-shadow: var(--shadow-md);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== BUSCA NO PORTAL ===== */
.search-box-portal {
    margin-bottom: 20px;
}

.search-group-portal {
    display: flex;
    gap: 10px;
}

.search-group-portal input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-light);
}

.search-group-portal input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button-portal {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 15px 25px;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.search-button-portal:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.clear-search {
    display: block;
    margin-top: 10px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
}

.clear-search:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* ===== LISTA COMPACTA PORTAL ===== */
.lista-compacta-portal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.item-lista-compacta-portal {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.item-lista-compacta-portal:hover {
    background: var(--bg-gray);
    transform: translateX(5px);
}

.badge-numero-portal {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9em;
    min-width: 70px;
    text-align: center;
    margin-right: 15px;
}

.info-principal-portal {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nome-desencarnado-portal {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-dark);
}

.data-cadastro-portal {
    color: var(--text-light);
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.indicador-disponivel-portal {
    background: var(--success-color);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 15px;
}

/* ===== ESTADOS VAZIOS ===== */
.estado-vazio-portal {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.estado-vazio-portal .icone {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.5;
}

.estado-vazio-portal h3 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 1.3em;
}

.estado-vazio-portal p {
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.5;
}

/* ===== FORMULÁRIO PORTAL ===== */
.portal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-grid-portal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-portal {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-portal label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95em;
}

.form-group-portal input {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-light);
}

.form-group-portal input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-portal-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-white);
    padding: 15px 30px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.btn-portal-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.form-info {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--info-color);
}

.form-info ul {
    margin: 10px 0 0 20px;
}

.form-info li {
    margin-bottom: 5px;
    color: var(--text-medium);
}

/* ===== EVENTOS SIDEBAR ===== */
.evento-card-sidebar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-white);
}

.evento-sidebar-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.evento-sidebar-imagem {
    text-align: center;
}

.evento-sidebar-img {
    width: 100%;
    max-width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255, 255, 255, 0.3);
    margin: 0 auto;
}

.evento-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.evento-sidebar-nome {
    color: var(--text-white);
    font-size: 1.4em;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.evento-sidebar-datahora {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.evento-sidebar-data,
.evento-sidebar-hora {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    color: var(--text-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9em;
}

.evento-sidebar-descricao {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1em;
}

.evento-sidebar-vazio {
    text-align: center;
    padding: 30px 20px;
}

.evento-vazio-icone {
    font-size: 3em;
    margin-bottom: 15px;
    opacity: 0.7;
}

.evento-vazio-titulo {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.evento-vazio-texto {
    font-size: 1em;
    opacity: 0.9;
    margin: 0;
}

/* ===== INFORMAÇÕES EECAM ===== */
.info-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    border-bottom: none;
}

.info-icon {
    font-size: 1.2em;
    width: 30px;
    text-align: center;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.info-text strong {
    color: var(--text-dark);
    font-size: 0.9em;
}

.info-text span {
    color: var(--text-light);
    font-size: 0.85em;
}

/* ===== ESTATÍSTICAS PORTAL ===== */
.stats-grid-portal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item-portal {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.stat-item-portal:hover {
    transform: translateX(5px);
}

.stat-icon-portal {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.stat-info-portal {
    flex: 1;
}

.stat-number-portal {
    font-size: 1.4em;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label-portal {
    font-size: 0.8em;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* ===== FOOTER PORTAL ===== */
.portal-footer {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    color: var(--text-light);
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.footer-content p {
    margin-bottom: 8px;
}

.footer-content p:last-child {
    margin-bottom: 0;
    font-style: italic;
}

/* ===== ADMIN STYLES ===== */
.admin-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.admin-header h1 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.admin-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

/* Tabs Admin */
.tabs-container-admin {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.tabs-nav-admin {
    display: flex;
    background: rgba(102, 126, 234, 0.1);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    padding: 0 20px;
}

.tab-button-admin {
    padding: 20px 30px;
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.tab-button-admin:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
}

.tab-button-admin.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    background: var(--bg-white);
}

.tab-count {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    min-width: 25px;
    text-align: center;
}

.tab-content-admin {
    display: none;
    padding: 30px;
}

.tab-content-admin.active {
    display: block;
}

/* Form Toggle */
.form-toggle-section {
    margin-bottom: 25px;
}

.btn-toggle-form {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    padding: 15px 25px;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-toggle-form:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Formulário Compacto */
.add-psicografia-compacto {
    background: rgba(248, 250, 252, 0.8);
    border: 2px dashed var(--border-medium);
    border-radius: var(--radius-xl);
    padding: 25px;
    margin-bottom: 30px;
}

.add-psicografia-compacto h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.form-row-compacto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: var(--text-medium);
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-add-compacto {
    background: linear-gradient(135deg, var(--success-color), #38a169);
    color: var(--text-white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-add-compacto:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-cancelar {
    background: var(--accent-color);
    color: var(--text-white);
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-cancelar:hover {
    background: #c53030;
    transform: translateY(-2px);
}

/* Lista de Psicografias */
.psicografias-list {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.section-header {
    background: rgba(248, 250, 252, 0.8);
    padding: 25px;
    border-bottom: 1px solid var(--border-light);
}

.filtros-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filtros-container h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
}

.filtros-botoes {
    display: flex;
    gap: 10px;
}

.filtro-btn {
    padding: 12px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-medium);
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filtro-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filtro-ativo {
    background: var(--primary-color);
    color: var(--text-white);
    border-color: var(--primary-color);
}

.filtro-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Search Box */
.search-box {
    margin-top: 15px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.search-group {
    position: relative;
    flex: 1;
    min-width: 300px;
}

.search-group input {
    width: 100%;
    padding: 12px 50px 12px 15px;
    border: 2px solid var(--border-light);
    border-radius: 25px;
    font-size: 1rem;
    transition: var(--transition);
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background: var(--primary-dark);
}

.search-button::after {
    content: '🔍';
    font-size: 14px;
}

/* Lista Compacta de Psicografias */
.psicografias-lista-compacta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
}

.psicografia-item-compacta {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}

.psicografia-item-compacta:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.psicografia-item-compacta.expanded {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.psicografia-header-compacta {
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
}

.psicografia-header-compacta:hover {
    background: rgba(248, 250, 252, 0.5);
}

.psicografia-numero {
    background: var(--primary-color);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

.psicografia-numero.entregue {
    background: var(--success-color);
}

.psicografia-info-principal {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.psicografia-nome {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.psicografia-detalhes {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.status-badge,
.origem-badge {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 500;
}

.status-pendente {
    background: #fed7d7;
    color: #c53030;
}

.status-entregue {
    background: #c6f6d5;
    color: #276749;
}

.origem-admin {
    background: #e9d8fd;
    color: #6b46c1;
}

.origem-publico {
    background: #bee3f8;
    color: #2c5aa0;
}

.psicografia-data {
    color: var(--text-light);
    font-size: 0.9rem;
    white-space: nowrap;
}

.psicografia-acoes {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-form {
    display: inline;
}

.btn-compacto {
    padding: 8px 15px;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    text-decoration: none;
}

.btn-info {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
}

.btn-info:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn-entregue {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success-color);
}

.btn-entregue:hover {
    background: var(--success-color);
    color: var(--text-white);
}

.btn-deletar {
    background: rgba(229, 62, 62, 0.1);
    color: var(--accent-color);
}

.btn-deletar:hover {
    background: var(--accent-color);
    color: var(--text-white);
}

/* Detalhes Expandidos */
.psicografia-detalhes-expandidos {
    display: none;
    padding: 0 20px 20px 20px;
    border-top: 1px solid var(--border-light);
    background: rgba(248, 250, 252, 0.5);
}

.detalhes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding-top: 20px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalhe-label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
}

.detalhe-valor {
    color: var(--text-dark);
    font-size: 1rem;
}

.whatsapp {
    color: #25d366;
    text-decoration: none;
    font-weight: 500;
}

.whatsapp:hover {
    text-decoration: underline;
}

/* ===== CONEXÕES ===== */
.conexoes-lista-compacta {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.conexao-item-compacta {
    background: var(--bg-white);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition);
}

.conexao-item-compacta:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.conexao-header-compacta {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 20px;
    text-align: center;
}

.conexao-titulo h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
}

.conexao-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.conexao-admin,
.conexao-publico {
    padding: 25px;
}

.conexao-admin {
    background: rgba(233, 216, 253, 0.3);
    border-right: 1px solid var(--border-light);
}

.conexao-publico {
    background: rgba(190, 227, 248, 0.3);
}

.conexao-admin h4,
.conexao-publico h4 {
    margin: 0 0 15px 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.conexao-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 600;
    color: var(--text-medium);
    font-size: 0.9rem;
    min-width: 80px;
}

.info-value {
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: right;
    flex: 1;
}

.info-value.whatsapp {
    color: #25d366;
    text-decoration: none;
}

.info-value.whatsapp:hover {
    text-decoration: underline;
}

.info-value.status-pendente {
    background: #fed7d7;
    color: #c53030;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.info-value.status-entregue {
    background: #c6f6d5;
    color: #276749;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ===== MODAIS ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--bg-white);
    margin: 5% auto;
    border-radius: var(--radius-xl);
    width: 90%;
    max-width: 500px;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    padding: 20px 25px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 25px;
}

.senha-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.senha-info {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-top: 5px;
}

.senha-match {
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.match-success {
    color: var(--success-color);
}

.match-error {
    color: var(--accent-color);
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-senha {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    border: none;
    padding: 12px 25px;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.btn-senha:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Logo Preview */
.logo-preview {
    margin-top: 20px;
    padding: 15px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: var(--radius-md);
    text-align: center;
}

.logo-preview-image {
    max-width: 100px;
    max-height: 100px;
    border-radius: var(--radius-md);
    margin-top: 10px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    border-left: 5px solid;
    animation: slideIn 0.5s ease;
    box-shadow: var(--shadow-md);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-success {
    background: #f0fff4;
    border-color: var(--success-color);
    color: #2f855a;
}

.alert-error {
    background: #fed7d7;
    border-color: #f56565;
    color: #c53030;
}

.alert-warning {
    background: #fefcbf;
    border-color: #ecc94b;
    color: #744210;
}

.duplicados-lista {
    margin-top: 10px;
    padding-left: 20px;
}

.duplicados-lista li {
    margin: 5px 0;
}

/* ===== NO DATA ===== */
.no-data-compacto {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-data-compacto p {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ===== SEARCH RESULTS ===== */
.search-results-info {
    background: rgba(102, 126, 234, 0.1);
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin: 20px;
    text-align: center;
    color: var(--text-medium);
}

.search-footer {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.back-to-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-to-all:hover {
    text-decoration: underline;
}

/* ===== ANIMAÇÕES ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== NOME DESTACADO ===== */
.nome-destaque {
    background: #ffeaa7;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    color: #333;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    .portal-grid {
        grid-template-columns: 1fr 350px;
        gap: 25px;
    }
}

@media (max-width: 968px) {
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .portal-column {
        gap: 20px;
    }

    .hero-title {
        font-size: 2.8em;
    }

    .hero-stats {
        gap: 30px;
    }

    .form-grid-portal {
        grid-template-columns: 1fr;
    }

    .conexao-content {
        grid-template-columns: 1fr;
    }

    .conexao-admin {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 15px 20px;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .portal-container {
        padding: 15px;
    }

    .hero-portal {
        padding: 40px 25px;
    }

    .hero-title {
        font-size: 2.2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .search-group-portal {
        flex-direction: column;
    }

    .item-lista-compacta-portal {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .indicador-disponivel-portal {
        margin-left: 0;
        align-self: flex-start;
    }

    .evento-sidebar-img {
        max-width: 250px;
        height: 250px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .estatisticas-psicografias {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .estatistica-item {
        min-width: 60px;
        padding: 6px 10px;
    }

    .estatistica-numero {
        font-size: 1.2em;
    }

    .estatistica-label {
        font-size: 0.65em;
    }

    .admin-header h1 {
        font-size: 2rem;
    }

    .tabs-nav-admin {
        flex-direction: column;
        padding: 0;
    }

    .tab-button-admin {
        padding: 15px 20px;
        justify-content: center;
    }

    .psicografia-header-compacta {
        grid-template-columns: 1fr;
        gap: 15px;
        text-align: center;
    }

    .psicografia-acoes {
        justify-content: center;
    }

    .filtros-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filtros-botoes {
        justify-content: center;
    }

    .search-group {
        min-width: 100%;
    }

    .form-row-compacto {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }

    .modal-actions {
        flex-direction: column;
    }

    .info-row {
        flex-direction: column;
        gap: 5px;
    }

    .info-label,
    .info-value {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-portal {
        padding: 30px 20px;
    }

    .hero-title {
        font-size: 1.8em;
    }

    .portal-card {
        padding: 20px;
    }

    .card-title {
        font-size: 1.2em;
    }

    .evento-sidebar-nome {
        font-size: 1.2em;
    }

    .evento-sidebar-datahora {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .estatisticas-psicografias {
        flex-direction: column;
        align-items: stretch;
    }

    .estatistica-item {
        flex-direction: row;
        justify-content: space-between;
        min-width: auto;
    }

    .tabs-nav {
        flex-direction: column;
        gap: 5px;
    }

    .tab-button {
        padding: 15px 20px;
    }
}
/* ===== POSTS STYLES ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-excerpt {
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===== VIDEOS STYLES ===== */
.videos-container {
    margin-top: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.video-item {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.video-item iframe {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-description {
    padding: 15px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== CHECKBOX STYLES ===== */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Responsividade para posts e vídeos */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-image {
        height: 180px;
    }
}
/* ===== POSTS STYLES ===== */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.post-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.post-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-image img {
    transform: scale(1.05);
}

.post-content {
    padding: 20px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

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

.post-date {
    color: var(--text-light);
    font-size: 0.85rem;
}

.post-excerpt {
    color: var(--text-medium);
    line-height: 1.5;
    font-size: 0.95rem;
}

/* ===== VIDEOS STYLES ===== */
.videos-container {
    margin-top: 20px;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.video-item {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.video-item iframe {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-description {
    padding: 15px;
    text-align: center;
    color: var(--text-medium);
    font-size: 0.9rem;
    margin: 0;
}

/* ===== NOME DESTACADO ===== */
.nome-destaque {
    background: #ffeaa7;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    color: #333;
}

/* Responsividade para posts e vídeos */
@media (max-width: 768px) {
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-image {
        height: 180px;
    }
}
/* Estilo para botão expandir */
.btn-expandir {
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}

.btn-expandir:hover {
    background: var(--primary-color);
    color: white;
}

/* Cards de notícias clicáveis */
.news-card {
    cursor: pointer;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Contadores menores */
.stats-grid .stat-box {
    padding: 8px 6px;
}

.stats-grid .stat-number {
    font-size: 1.1rem;
}

.stats-grid .stat-label {
    font-size: 0.65rem;
}