body {
    background: #fff;
    color: #212529;
}

.btn-primary {
    background-color: var(--anais-primary) !important;
    border-color: var(--anais-primary) !important;
    color: var(--anais-primary-text) !important;
}

.btn-outline-primary {
    color: var(--anais-primary) !important;
    border-color: var(--anais-primary) !important;
}

.btn-outline-primary:hover {
    background-color: var(--anais-primary) !important;
    color: var(--anais-primary-text) !important;
}

/* Paginação */
.pagination { gap: 4px; }
.page-link {
    border-radius: 4px !important;
    color: #1b2850;
    border: 1px solid #dee2e6;
    padding: 6px 12px;
    font-size: 0.875rem;
}
.page-item.active .page-link {
    background-color: #fff !important;
    border-color: #0d6efd !important;
    color: #0d6efd !important;
    font-weight: bold;
}
.page-item.disabled .page-link {
    background-color: #f8f9fa;
    color: #6c757d;
}
.page-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
    border-color: #dee2e6;
}

/* Ícones de seção/nav */
.icon-atividades { background-color: #e7f1ff; color: #0d6efd; }
.icon-trabalhos { background-color: #e9f7ef; color: #198754; }
.icon-programacao { background-color: #fff4e5; color: #a85400; }

.issn-badge {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 12px;
    border-radius: 20px;
    border: 1.5px solid #6c757d;
    color: #6c757d !important;
    background: #fff;
}

/* Home */
.anais-home-card {
    border: 1px solid #dee2e6;
    border-radius: 16px;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    text-align: center;
}
.anais-home-card:hover {
    border-color: var(--anais-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
    color: inherit;
}
.anais-home-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.anais-divider {
    width: 40px;
    height: 4px;
    background: #1b2850;
    margin: 2rem auto;
    border-radius: 2px;
}
.event-title {
    font-size: 2.25rem;
    color: #1b2850;
    line-height: 1.2;
}
.event-info {
    font-size: 1rem;
    color: #6c757d;
}

/* Navegação lateral */
.anais-nav .nav-link {
    border-radius: 12px;
    padding: 10px 15px;
    font-weight: 600;
    font-size: .9rem;
    color: #495057 !important;
    text-decoration: none;
    transition: all .2s ease;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}
.anais-nav .nav-link:hover {
    border-color: var(--anais-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    color: var(--anais-primary) !important;
    transform: translateX(5px);
}
.anais-nav .nav-link.active {
    border-color: var(--anais-primary) !important;
    color: var(--anais-primary) !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}
.anais-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.anais-section-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Cards de atividades */
.programme-card { border-left: 4px solid transparent; }
.sub-item {
    border-left: 3px solid #dee2e6;
    padding-left: 1rem;
}
.sub-item:hover { border-left-color: #1b2850; }
.speaker-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

/* Cards de trabalhos */
.trabalho-card { border-left: 4px solid #dee2e6; }
.trabalho-card:hover { border-left-color: #1b2850; }
.trabalho-card h6,
#trabalhoModalLabel { text-transform: uppercase; }

.modal-work-url {
    font-size: .78rem;
    color: #6c757d;
    word-break: break-all;
    min-width: 0;
    text-decoration: none;
}
.modal-work-url:hover {
    color: #0d6efd;
    text-decoration: underline;
}
.modal-work-branding {
    position: relative;
}
.modal-work-branding .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}
.modal-work-branding img {
    max-height: 60px;
    width: auto;
}

/* Filtro de tipo de atividade */
.act-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 500;
    text-decoration: none;
    border: 1.5px solid #dee2e6;
    background: #fff;
    color: #343a40 !important;
    transition: border-color .15s, background .15s, color .15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.act-filter-btn:hover {
    border-color: #adb5bd;
    background: #f8f9fa;
}
.act-filter-btn.active {
    border-color: transparent !important;
    color: #fff !important;
}
.act-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Programação */
.pdf-cta {
    border: 2px dashed #dee2e6;
    border-radius: 16px;
    transition: border-color .2s ease, background .2s ease;
}
.pdf-cta:hover {
    border-color: #1b2850;
    background: rgba(27, 40, 80, .03);
}

/* Rodapé / modal */
.anais-footer-bar {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: .78rem;
    color: #6c757d;
    word-break: break-all;
}
.modal-dialog.modal-lg {
    max-width: min(94vw, 1280px);
    width: 100%;
}
.modal-body {
    overflow-y: auto;
    max-height: calc(80vh - 8rem);
}
#arquivo-modal-body {
    max-height: none;
    overflow: hidden;
}
#arquivo-frame {
    width: 100%;
    height: 75vh;
    border: 0;
    display: block;
}

@media (max-width: 991px) {
    .anais-sidebar { position: static; }
}
