.crud-page {
  background:
    radial-gradient(circle at 12% 18%, rgba(34, 108, 185, 0.14), transparent 34%),
    radial-gradient(circle at 86% 82%, rgba(17, 68, 126, 0.13), transparent 33%),
    linear-gradient(145deg, #f7faff 0%, #edf3fb 52%, #f8fbff 100%);
}

.crud-container {
  max-width: 1380px;
}

.crud-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 68, 126, 0.11);
  border-radius: 1rem;
  box-shadow: 0 20px 40px -34px rgba(9, 42, 80, 0.75);
}

.crud-chip {
  border-radius: 999px;
  border: 1px solid rgba(19, 71, 130, 0.2);
  background: rgba(255, 255, 255, 0.75);
  color: #1d4f85;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.crud-tabs a {
  border: 1px solid #d3dfed;
  color: #264f7f;
  background: #fff;
}

.crud-tabs a.is-active {
  border-color: #1e4f89;
  background: #1f5da8;
  color: #fff;
}

.table-wrap {
  overflow-x: auto;
  padding: 0.2rem;
}

.table-modern {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 1120px;
}

.table-modern th {
  text-align: left;
  color: #355779;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid #dbe7f3;
  background: #f7fbff;
}

.table-modern td {
  padding: 0.95rem 0.9rem;
  border-bottom: 1px solid #e8f0f8;
  color: #163455;
  font-size: 0.88rem;
  line-height: 1.45;
  vertical-align: middle;
}

.table-modern tr:last-child td {
  border-bottom: none;
}

.table-modern tbody tr {
  transition: background-color 0.18s ease;
}

.table-modern tbody tr:hover {
  background: rgba(241, 247, 255, 0.78);
}

.alunos-col--matricula {
  width: 10%;
}

.alunos-col--nome {
  width: 15%;
}

.alunos-col--turma {
  width: 7%;
}

.alunos-col--email {
  width: 26%;
}

.alunos-col--responsavel {
  width: 17%;
}

.alunos-col--status {
  width: 8%;
}

.alunos-col--acoes {
  width: 17%;
}

.alunos-table .cell-matricula,
.alunos-table .cell-email,
.alunos-table .cell-nome,
.alunos-table .cell-responsavel {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alunos-table .cell-matricula {
  font-size: 0.82rem;
  font-weight: 600;
  color: #27496e;
}

.alunos-table .cell-nome,
.alunos-table .cell-email,
.alunos-table .cell-responsavel .cell-primary {
  font-size: 0.82rem;
}

.alunos-table .cell-secondary {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: #64748b;
}

.alunos-table .cell-turma,
.alunos-table .cell-status {
  white-space: nowrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.2rem 0.58rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-badge--active {
  color: #166534;
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
}

.status-badge--inactive {
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.cell-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.65rem;
  padding: 0.38rem 0.64rem;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-add {
  background: linear-gradient(100deg, #0f3967 0%, #2a68b0 100%);
  color: #fff;
  border: 1px solid #0f3967;
}

.btn-edit {
  color: #0f4c8f;
  background: #eef5fd;
  border-color: #c8dff6;
}

.btn-delete {
  color: #9f1239;
  background: #fff1f2;
  border-color: #fecdd3;
}

.csv-sample {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .crud-tabs {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crud-container {
    max-width: 100%;
  }

  .table-modern {
    min-width: 980px;
  }
}
