:root {
  --doremi-primary: #0f4c81;
  --doremi-primary-strong: #0a355e;
  --doremi-secondary: #2f8fcb;
  --doremi-accent: #1aa179;
  --doremi-bg: #f3f7fb;
  --doremi-surface: #ffffff;
  --doremi-border: #e5ebf3;
  --doremi-muted: #64748b;
  --shadow-soft: 0 20px 45px rgba(15, 76, 129, 0.08);
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f7fbff 0%, var(--doremi-bg) 100%);
  color: #14213d;
}

html, body {
  min-height: 100%;
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
  -webkit-overflow-scrolling: touch;
}

.app-body {
  min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
  max-width: 300px;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--doremi-primary) 0%, var(--doremi-primary-strong) 100%);
  color: white;
  box-shadow: 12px 0 35px rgba(10, 53, 94, 0.16);
  border-right: 1px solid rgba(255,255,255,0.08);
}

.sidebar .nav-link {
  color: rgba(255,255,255,0.9);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: all 0.2s ease;
}

.sidebar .submenu-link {
  font-size: 0.88rem;
  padding-top: 4px;
  padding-bottom: 4px;
}

.sidebar .nav-link:hover {
  background: rgba(255,255,255,0.14);
  color: white;
  transform: translateX(2px);
}

.sidebar .nav-link.active {
  background: rgba(255,255,255,0.2);
  color: white;
  font-weight: 600;
}

.sidebar-logo {
  width: 82%;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

.sidebar-brand-name {
  margin-top: 0.8rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

.sidebar-brand-subtitle {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.76);
}

/* Avatar */
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ddd;
}

.avatar img,
.avatar-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.content-shell {
  background: transparent;
}

.content-shell .card,
.card {
  border: 1px solid var(--doremi-border);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.form-control,
.form-select {
  border: 1px solid var(--doremi-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--doremi-secondary);
  box-shadow: 0 0 0 0.2rem rgba(47, 143, 203, 0.16);
}

.btn-doremi {
  background: linear-gradient(135deg, var(--doremi-secondary), var(--doremi-primary));
  color: #fff;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  font-weight: 600;
}

.btn-doremi:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(15, 76, 129, 0.2);
  color: #fff;
}

.user-pill {
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.08);
}

.notification-btn {
  font-size: 20px;
  border: none;
  background: rgba(255,255,255,0.95);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(15, 76, 129, 0.08);
}

.notification-dropdown {
  width: 300px;
  border: none;
  box-shadow: 0 16px 35px rgba(15, 76, 129, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.hero-home {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 40px;
  min-height: 180px;
  background-image:
    linear-gradient(120deg, rgba(10, 53, 94, 0.82), rgba(47, 143, 203, 0.72)),
    url("../img/herobg.jpeg?q=80&w=1600&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}

.hero-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.08), transparent 55%);
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 2;
}

.page-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.6rem;
}

.section-title h5,
.section-title h6 {
  margin: 0;
  font-weight: 700;
  color: var(--doremi-primary-strong);
}

.section-title .muted {
  color: var(--doremi-muted);
  font-size: 0.9rem;
}

.content-shell .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(15, 76, 129, 0.12);
}

.table thead th {
  background: #f5f8fc;
  color: var(--doremi-primary-strong);
  font-weight: 700;
  border-bottom: 1px solid var(--doremi-border);
}

.table td,
.table th {
  vertical-align: middle;
}

.badge-soft {
  background: rgba(47, 143, 203, 0.12);
  color: var(--doremi-primary);
  border: 1px solid rgba(47, 143, 203, 0.16);
}

.dropdown-menu {
  border: 1px solid var(--doremi-border);
  border-radius: 14px;
  box-shadow: 0 16px 35px rgba(15, 76, 129, 0.12);
}

.login-page {
  background: radial-gradient(circle at top, #ffffff 0%, #eef6fb 55%, #e4eff8 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 1rem 0;
}

.login-page .container {
  width: 100%;
  max-width: 100%;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.login-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 76, 129, 0.16);
}

.extrato-modal .modal-content {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(14, 69, 124, 0.12);
}

.extrato-modal .modal-header {
  border-bottom: 1px solid var(--doremi-border);
  padding: 1rem 1.5rem;
}

.extrato-modal .modal-title {
  font-size: 1.05rem;
  color: var(--doremi-primary-strong);
}

.extrato-modal .modal-body {
  padding: 1.25rem 1.5rem;
}

.extrato-table th,
.extrato-table td {
  vertical-align: middle;
  padding: 0.85rem 0.9rem;
}

.extrato-table tbody tr:last-child {
  font-weight: 700;
}

.extrato-table td.text-end {
  white-space: nowrap;
}

.extrato-table .text-danger {
  font-weight: 600;
}

.login-illustration {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(15, 76, 129, 0.95), rgba(47, 143, 203, 0.9));
  color: #fff;
}

@media (max-width: 991.98px) {
  .login-illustration {
    padding: 2rem 1.5rem;
  }

  .login-logo {
    width: 70%;
    max-width: 220px;
  }
}

@media (max-width: 767.98px) {
  .login-page {
    padding: 0.75rem 0;
    align-items: flex-start;
  }

  .login-page .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .login-card {
    margin: 0.5rem 0;
  }

  .login-illustration {
    padding: 1.5rem 1rem 1rem;
  }

  .login-logo {
    width: 58%;
    max-width: 170px;
    margin-bottom: 0.9rem;
  }

  .login-illustration-copy h3 {
    font-size: 1.15rem;
  }

  .login-illustration-copy p {
    font-size: 0.95rem;
    padding: 0 0.25rem;
  }

  .form-control-user {
    font-size: 0.95rem;
  }

  .btn-user {
    padding: 0.7rem 0.9rem;
  }
}

.login-logo {
  width: 80%;
  max-width: 270px;
  border-radius: 16px;
  margin-bottom: 1.25rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
}

.login-illustration-copy h3 {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.login-illustration-copy p {
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 320px;
}

/* Sombras suaves (estilo SaaS) */
.shadow-soft {
  border: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Badge suave */
.badge-soft {
  background: #eef2ff;
  color: #2f5bea;
  font-weight: 500;
}

/* Melhor imagem */
.object-fit-cover {
  object-fit: cover;
}


.submenu-container {
  background: white;
  border-radius: 10px;
  margin-top: 6px;
  padding: 6px;
}

/* Links do submenu */
.submenu-link {
  color: #333 !important;
  border-radius: 6px;
  padding: 8px 10px;
  transition: all 0.2s ease;
}

/* Hover */
.submenu-link:hover {
  background: #f1f3f7;
  color: #2f5bea !important;
  padding-left: 14px;
}

/* Item ativo submenu (opcional) */
.submenu-link.active {
  background: #eef2ff;
  color: #2f5bea !important;
  font-weight: 500;
}


.sensor-card {
  border: none;
}

.sensor-label {
  font-size: 13px;
  color: #777;
}

.sensor-value {
  font-size: 32px;
  font-weight: 700;
}

.sensor-icon {
  font-size: 26px;
  opacity: 0.8;
}

.sensor-status {
  font-size: 13px;
  color: #666;
  background: #f5f7fb;
  padding: 8px 10px;
  border-radius: 8px;
}

/* Botão sino */
.notification-btn {
  font-size: 20px;
  border: none;
  background: transparent;
}

/* Badge vermelho */
.notification-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #ff4d4f;
  color: white;
  font-size: 11px;
  border-radius: 50%;
  padding: 2px 6px;
}

/* Dropdown */
.notification-dropdown {
  width: 280px;
  border: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-radius: 12px;
  overflow: hidden;
}

/* Header */
.notification-header {
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  background: #fafbff;
}

/* Item */
.notification-item {
  padding: 12px 15px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #f1f1f1;
}

.notification-item:hover {
  background: #f5f7fb;
}

/* Footer */
.notification-footer {
  text-align: center;
  padding: 10px;
  font-size: 13px;
  color: #2f5bea;
  cursor: pointer;
}

.hero-home {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  padding: 40px;
  min-height: 140px;

  background-image:
    linear-gradient(rgba(30,60,180,0.55), rgba(30,60,180,0.55)),
    url("../img/herobg.jpeg?q=80&w=1600&auto=format&fit=crop");

  background-size: cover;
  background-position: center;
}

/* Overlay interno */
.hero-overlay {
  position: relative;
  z-index: 2;
}

/* Mobile */

@media (max-width: 768px){
  .hero-home{
    height: auto;
    padding: 32px 20px;
  }

  .hero-overlay h2{
    font-size: 1.4rem;
  }

  .hero-overlay p{
    font-size: .9rem;
  }
}

.fichaaluno {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
}

.fichaaluno td {
  padding: 12px;
  border: none;
}

.fichaaluno .secao-titulo {
  background: #278c9b;
  color: #fff;
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.5px;
}

.fichaaluno .campo-label {
  font-weight: 600;
  color: #555;
  width: 180px;
}

.fichaaluno .campo-valor {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 6px 10px;
}

#fotoaluno {
  width: 140px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.btn-doremi {
  background: linear-gradient(135deg, rgb(255, 255, 255), rgb(0, 64, 128));
  color: #fff;
  border: none;
  border-radius: 10px;
  transition: all 0.2s ease-in-out;
  font-weight: 500;
}

.btn-doremi:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(39, 140, 155, 0.3);
  color: #fff;
}

#fotonoticia {
    height: 100%;
    max-height: 260px;
    object-fit: cover;
}


.card-mes {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.card-mes:hover {
    transform: translateY(-5px);
}

.mes-header {
    background-color: #004a99; /* Cor baseada no tema escolar */
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 10px;
    text-align: center;
    font-weight: 600;
}


.comentario-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 10px 12px;
}

.comentario-header {
    font-size: 0.85rem;
    color: #6c757d;
}

.comentario-texto {
    font-size: 0.95rem;
}

/*  Financeiro */

.card{
border-radius:10px;
}

.card h3{
font-weight:600;
}

.status{
font-weight:500;
padding:5px 10px;
border-radius:20px;
font-size:13px;
}

.status-pago{
background:#e6f7ee;
color:#1f9d55;
}

.status-aberto{
background:#fff5d6;
color:#d39e00;
}

.status-vencido{
background:#fdecea;
color:#dc3545;
}

.financeiro #tabelaFinanceiro tbody tr.financeiro-row-vencido td {
  background: #fff5f5;
}

.financeiro #tabelaFinanceiro tbody tr.financeiro-row-vencido:hover td {
  background: #ffe9e9;
}

.financeiro .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.financeiro #tabelaFinanceiro th,
.financeiro #tabelaFinanceiro td {
  white-space: nowrap;
}

.financeiro #tabelaFinanceiro th:nth-child(1),
.financeiro #tabelaFinanceiro td:nth-child(1) {
  min-width: 220px;
}

.financeiro #tabelaFinanceiro th:nth-child(4),
.financeiro #tabelaFinanceiro td:nth-child(4),
.financeiro #tabelaFinanceiro th:nth-child(5),
.financeiro #tabelaFinanceiro td:nth-child(5) {
  min-width: 120px;
}

.document-card{

    background:#f8fafc;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:18px;
    height:100%;

    transition:all .2s ease;
}

.document-card:hover{

    transform:translateY(-2px);

    box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.document-label{

    font-size:.78rem;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;

    color:#64748b;

    margin-bottom:8px;
}

.document-value{

    font-size:1.05rem;
    font-weight:600;

    color:#0f172a;

    word-break:break-word;
}

.profile-info-card{

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:16px;

    padding:16px;

    height:100%;

    transition:all .2s ease;
}

.profile-info-card:hover{

    transform:translateY(-2px);

    box-shadow:0 4px 14px rgba(0,0,0,.06);
}

.profile-info-label{

    font-size:.78rem;

    font-weight:700;

    text-transform:uppercase;

    letter-spacing:.04em;

    color:#64748b;

    margin-bottom:6px;
}

.profile-info-value{

    font-size:1rem;

    font-weight:600;

    color:#0f172a;
}