/* ====== ANO LECTIVO ====== */
#ano-lectivo { padding: 20px; }

/* TITULO */
#ano-lectivo .titulo {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 10px 0 20px; margin-bottom: 20px;
}
#ano-lectivo .titulo h2 {
    display: flex; align-items: center; gap: 12px;
    font-size: 24px; font-weight: 700; color: #2f0375; margin: 0;
}
#ano-lectivo .titulo h2 i { color: #7163ba; font-size: 24px; }
#ano-lectivo .subtitulo {
    font-size: 13px; color: #6b7280; margin: 4px 0 0 36px;
}

/* BOTAO */
.btn-ano {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: none; border-radius: 6px; font-weight: 600; cursor: pointer;
    transition: all 0.2s ease; white-space: nowrap; height: 38px; padding: 0 16px;
    font-size: 14px;
}
.btn-ano-primary {
    background-color: #8978df; color: #fff;
    box-shadow: 0 2px 6px rgba(137, 120, 223, 0.25);
}
.btn-ano-primary:hover { background-color: #7163ba; transform: translateY(-1px); }

/* TOOLBAR BUSCA */
#ano-lectivo .toolbar-ano {
    background: #fff; padding: 14px 16px; border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 20px;
}
#ano-lectivo .search-box-ano {
    display: flex; align-items: center; gap: 10px; background: #f3f4f6;
    padding: 0 14px; border-radius: 6px; height: 38px; border: 1px solid transparent;
}
#ano-lectivo .search-box-ano:focus-within { background: #fff; border-color: #8978df; }
#ano-lectivo .search-box-ano input {
    border: none; background: transparent; outline: none; width: 100%; font-size: 14px;
}

/* AREA DE RESULTADOS DESTACADA */
#ano-lectivo .area-resultados {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
}

/* GRID DE CARDS */
#ano-lectivo .grid-anos {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* CARD ANO - MAIS NEUTRO */
.card-ano {
    background: #fff; border-radius: 8px; border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden;
    transition: all 0.2s ease;
}
.card-ano:hover { transform: translateY(-2px); box-shadow: 0 3px 8px rgba(0,0,0,0.08); border-color: #d1d5db; }

.card-ano-header {
    background: #f3f4f6;
    color: #374151; padding: 12px; text-align: center;
    font-size: 16px; font-weight: 700; border-bottom: 1px solid #e5e7eb;
}
.card-ano-header i { color: #7163ba; margin-right: 6px; }
.card-ano-body { padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.card-ano-linha { display: flex; justify-content: space-between; font-size: 13px; color: #374151; }
.card-ano-linha span:first-child { font-weight: 600; color: #6b7280; }

.card-ano-footer {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-top: 1px solid #f1f5f9; background: #fafafa;
}
.badge-ano {
    padding: 4px 10px; border-radius: 16px; font-size: 11px; font-weight: 700;
    text-transform: uppercase;
}
.badge-ano.ativo { background: #d1fae5; color: #065f46; }
.badge-ano.finalizado { background: #fee2e2; color: #991b1b; }
.badge-ano.suspenso { background: #fef3c7; color: #92400e; }

.btn-ano-acoes {
    background: none; border: none; cursor: pointer; font-size: 16px; color: #6b7280;
    padding: 4px 8px; border-radius: 6px;
}
.btn-ano-acoes:hover { background: #f3f4f6; }

/* CHECKBOX */
.checkbox-group { display: flex; align-items: center; gap: 8px; }
.checkbox-group input { width: 18px; height: 18px; accent-color: #8978df; }

/* PAGINAÇÃO */
#ano-lectivo .table-footer-ano {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; font-size: 12px; color: #6b7280; flex-wrap: wrap; gap: 10px;
}
.pagination-ano { display: flex; gap: 4px; align-items: center; }
.pagination-ano button {
    border: 1px solid #d1d5db; background: #fff; color: #374151;
    padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; min-width: 32px;
}
.pagination-ano button.active { background: #8978df; color: #fff; border-color: #8978df; }
.pagination-ano button:disabled { opacity: 0.5; cursor: not-allowed; }

/* MENU AÇÕES */
.actions-menu-ano {
    position: absolute; display: none; flex-direction: column;
    background: #fff; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 6px; z-index: 1000; min-width: 180px;
}
.actions-menu-ano button {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: none; background: none;
    text-align: left; cursor: pointer; border-radius: 6px;
    font-size: 13px; color: #374151;
}
.actions-menu-ano button:hover { background: #f3f4f6; }

/* ESTADO VAZIO */
.empty-state-ano { text-align: center; padding: 50px 20px; color: #64748b; }
.empty-state-ano i { font-size: 40px; color: #d1d5db; margin-bottom: 10px; }

/* MODAL CENTRALIZADO E MENOS ARREDONDADO */
#modalAno .modal-content {
    transform: translate(-50%, -50%);
    border-radius: 12px;
}
#modalAno .modal-header {
    border-radius: 12px 12px 0 0;
    color: #fff !important;
}
#modalAno .modal-header h3 {
    color: #fff !important;
}