.professor-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    background: #f4f6f8;
  }


  /* ======================================================
     SIDEBAR
     ====================================================== */

  .sidebar {
    min-height: 100vh;
    position: sticky;
    top: 0;

    display: flex;
    flex-direction: column;

    padding: 28px 20px 22px;

    background:
      linear-gradient(
        165deg,
        #102d47 0%,
        #183b5b 100%
      );

    color: white;
  }


  .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 0 8px 28px;
    margin-bottom: 18px;

    border-bottom:
      1px solid
      rgba(255,255,255,.1);
  }


  .sidebar-brand-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border-radius: 12px;

    background:
      rgba(255,255,255,.1);

    border:
      1px solid
      rgba(255,255,255,.18);

    font-size: 14px;
    font-weight: 750;
    letter-spacing: .06em;
  }


  .sidebar-brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.05;
  }


  .sidebar-brand-text span {
    font-size: 12px;
    color: rgba(255,255,255,.58);
  }


  .sidebar-brand-text strong {
    margin-top: 3px;

    font-size: 17px;
    font-weight: 700;
  }


  .sidebar-nav {
    display: flex;
    flex-direction: column;

    gap: 5px;
  }


  .sidebar-item {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 12px;

    padding: 12px 13px;

    border-radius: 10px;

    cursor: pointer;

    background: transparent;

    color:
      rgba(255,255,255,.7);

    font-size: 13px;
    font-weight: 600;

    text-align: left;

    transition:
      background .16s ease,
      color .16s ease;
  }


  .sidebar-item:hover {
    background:
      rgba(255,255,255,.07);

    color: white;
  }


  .sidebar-item.active {
    background:
      rgba(255,255,255,.11);

    color: white;
  }


  .sidebar-symbol {
    width: 20px;

    text-align: center;

    font-size: 18px;

    color: #d1ab60;
  }


  .sidebar-footer {
    margin-top: auto;

    padding-top: 22px;

    border-top:
      1px solid
      rgba(255,255,255,.1);
  }


  .sidebar-user {
    display: flex;
    align-items: center;

    gap: 11px;

    margin-bottom: 16px;
  }


  .sidebar-avatar,
  .topbar-avatar {
    display: grid;
    place-items: center;

    border-radius: 50%;

    font-weight: 750;
  }


  .sidebar-avatar {
    width: 40px;
    height: 40px;

    flex: 0 0 auto;

    background:
      rgba(255,255,255,.13);

    color: white;

    font-size: 12px;
  }


  .sidebar-user-data {
    min-width: 0;

    display: flex;
    flex-direction: column;
  }


  .sidebar-user-data strong {
    overflow: hidden;

    font-size: 12px;

    text-overflow: ellipsis;
    white-space: nowrap;
  }


  .sidebar-user-data span {
    margin-top: 3px;

    font-size: 11px;

    color:
      rgba(255,255,255,.5);
  }


  .sidebar-logout {
    width: 100%;

    padding: 10px;

    border-radius: 9px;

    cursor: pointer;

    background:
      rgba(255,255,255,.06);

    color:
      rgba(255,255,255,.7);

    font-size: 12px;
    font-weight: 650;
  }


  .sidebar-logout:hover {
    background:
      rgba(255,255,255,.11);

    color: white;
  }


  /* ======================================================
     CONTEÚDO
     ====================================================== */

  .professor-main {
    min-width: 0;
  }


  .professor-topbar {
    min-height: 92px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;

    padding: 20px 38px;

    background: white;

    border-bottom:
      1px solid #e4e9ed;
  }


  .topbar-heading span {
    display: block;

    margin-bottom: 5px;

    font-size: 10px;
    font-weight: 750;

    letter-spacing: .15em;

    color: #c59a45;
  }


  .topbar-heading h1 {
    margin: 0;

    font-size: 24px;
    font-weight: 700;

    letter-spacing: -.02em;

    color: #102d47;
  }


  .topbar-profile {
    display: flex;
    align-items: center;

    gap: 12px;
  }


  .topbar-profile > div:first-child {
    display: flex;
    flex-direction: column;

    text-align: right;
  }


  .topbar-profile strong {
    font-size: 12px;

    color: #354454;
  }


  .topbar-profile span {
    margin-top: 2px;

    font-size: 11px;

    color: #89949e;
  }


  .topbar-avatar {
    width: 42px;
    height: 42px;

    background: #eaf0f5;

    color: #183b5b;

    font-size: 12px;
  }


  .professor-content {
    width: min(100%, 1380px);

    margin: 0 auto;

    padding: 38px;
  }


  .dashboard-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 28px;

    margin-bottom: 32px;
  }


  .section-eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 10px;
    font-weight: 750;

    letter-spacing: .15em;

    color: #c59a45;
  }


  .dashboard-intro h2,
  .dashboard-section-header h2 {
    margin: 0;

    color: #102d47;

    letter-spacing: -.025em;
  }


  .dashboard-intro h2 {
    margin-bottom: 8px;

    font-size: 30px;
  }


  .dashboard-intro p {
    max-width: 660px;

    color: #687685;

    font-size: 14px;
    line-height: 1.6;
  }


  .btn-dashboard-primary {
    min-height: 44px;

    display: flex;
    align-items: center;

    gap: 7px;

    padding: 0 18px;

    border-radius: 10px;

    cursor: pointer;

    background: #183b5b;

    color: white;

    font-size: 13px;
    font-weight: 700;

    box-shadow:
      0 7px 18px
      rgba(24,59,91,.14);
  }


  .btn-dashboard-primary:hover {
    background: #102d47;
  }


  /* ======================================================
     CARDS
     ====================================================== */

  .dashboard-cards {
    display: grid;

    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 38px;
  }


  .dashboard-card {
    min-height: 220px;

    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 24px;

    border:
      1px solid #e0e6ea;

    border-radius: 15px;

    cursor: pointer;

    text-align: left;

    background: white;

    box-shadow:
      0 4px 18px
      rgba(16,45,71,.04);

    transition:
      transform .16s ease,
      border-color .16s ease,
      box-shadow .16s ease;
  }


  .dashboard-card:hover {
    transform:
      translateY(-3px);

    border-color:
      #cbd6de;

    box-shadow:
      0 12px 28px
      rgba(16,45,71,.09);
  }


  .dashboard-card-icon {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    margin-bottom: 22px;

    border-radius: 11px;

    background: #eaf0f5;

    color: #183b5b;

    font-size: 20px;
  }


  .dashboard-card-label {
    display: block;

    margin-bottom: 7px;

    color: #c59a45;

    font-size: 9px;
    font-weight: 800;

    letter-spacing: .13em;
  }


  .dashboard-card h3 {
    margin-bottom: 9px;

    color: #172d40;

    font-size: 17px;
  }


  .dashboard-card p {
    color: #74808b;

    font-size: 12px;
    line-height: 1.55;
  }


  .dashboard-card-arrow {
    position: absolute;

    right: 20px;
    bottom: 18px;

    color: #9aa5ae;

    font-size: 20px;
  }


  /* ======================================================
     TURMAS
     ====================================================== */

  .dashboard-section {
    padding: 27px;

    border:
      1px solid #e0e6ea;

    border-radius: 16px;

    background: white;
  }


  .dashboard-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;
  }


  .dashboard-section-header h2 {
    font-size: 22px;
  }


  .btn-link {
    cursor: pointer;

    background: transparent;

    color: #183b5b;

    font-size: 12px;
    font-weight: 700;
  }


  .turmas-dashboard {
    display: grid;

    grid-template-columns:
      repeat(4, minmax(0, 1fr));

    gap: 16px;
  }


  .turma-card {
    min-height: 175px;

    display: flex;
    flex-direction: column;

    padding: 18px;

    border:
      1px solid #e3e8ec;

    border-radius: 12px;

    cursor: pointer;

    text-align: left;

    background: #fbfcfd;
  }


  .turma-card:hover {
    border-color: #bccbd5;

    background: white;
  }


  .turma-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    margin-bottom: 17px;
  }


  .turma-status {
    padding: 4px 8px;

    border-radius: 20px;

    background: #edf8f2;

    color: #177245;

    font-size: 9px;
    font-weight: 750;
  }


  .turma-periodo {
    color: #87939e;

    font-size: 10px;
  }


  .turma-card h3 {
    margin-bottom: 7px;

    color: #183b5b;

    font-size: 14px;
  }


  .turma-card p {
    color: #77838e;

    font-size: 11px;
    line-height: 1.45;
  }


  .turma-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: auto;
    padding-top: 15px;

    color: #183b5b;

    font-size: 11px;
    font-weight: 700;
  }


  .empty-state {
    grid-column: 1 / -1;

    padding: 45px 20px;

    text-align: center;
  }


  .empty-state-icon {
    width: 52px;
    height: 52px;

    display: grid;
    place-items: center;

    margin: 0 auto 15px;

    border-radius: 14px;

    background: #edf2f6;

    color: #183b5b;

    font-size: 22px;
  }


  .empty-state h3 {
    margin-bottom: 7px;

    color: #263d50;

    font-size: 14px;
  }


  .empty-state p {
    color: #85909a;

    font-size: 12px;
  }


  .mobile-menu-button {
    display: none;

    width: 40px;
    height: 40px;

    place-items: center;

    border-radius: 9px;

    cursor: pointer;

    background: #edf2f6;

    color: #183b5b;
  }


  .sidebar-overlay {
    display: none;
  }


  /* ======================================================
     RESPONSIVO
     ====================================================== */

  @media (max-width: 1150px) {

    .dashboard-cards {
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
    }

    .turmas-dashboard {
      grid-template-columns:
        repeat(2, minmax(0, 1fr));
    }

  }


  @media (max-width: 820px) {

    .professor-shell {
      display: block;
    }


    .sidebar {
      width: 260px;

      position: fixed;

      z-index: 50;

      left: -280px;
      top: 0;
      bottom: 0;

      transition:
        left .2s ease;
    }


    .sidebar.open {
      left: 0;
    }


    .sidebar-overlay {
      position: fixed;

      z-index: 40;

      inset: 0;

      display: block;

      background:
        rgba(10,25,38,.45);
    }


    .professor-topbar {
      padding:
        16px 20px;
    }


    .mobile-menu-button {
      display: grid;
    }


    .topbar-profile > div:first-child {
      display: none;
    }


    .professor-content {
      padding:
        28px 20px;
    }


    .dashboard-intro {
      align-items: flex-start;

      flex-direction: column;
    }

  }


  @media (max-width: 580px) {

    .dashboard-cards,
    .turmas-dashboard {
      grid-template-columns: 1fr;
    }


    .dashboard-card {
      min-height: 190px;
    }


    .dashboard-section {
      padding: 20px;
    }


    .professor-topbar {
      min-height: 76px;
    }


    .topbar-heading h1 {
      font-size: 20px;
    }


    .dashboard-intro h2 {
      font-size: 26px;
    }

  }
/* ============================================================
   MODAL — NOVA TURMA
   ============================================================ */

.professor-modal {
  position: fixed;

  inset: 0;

  z-index: 9999;

  display: flex;

  align-items: center;
  justify-content: center;

  padding: 20px;
}


.professor-modal.hidden {
  display: none;
}


.professor-modal-overlay {
  position: absolute;

  inset: 0;

  background:
    rgba(
      15,
      35,
      51,
      .58
    );
}


.professor-modal-card {
  position: relative;

  z-index: 1;

  width:
    min(
      100%,
      680px
    );

  max-height:
    calc(
      100vh - 40px
    );

  overflow-y: auto;

  border-radius: 16px;

  background: #ffffff;

  box-shadow:
    0 24px 70px
    rgba(
      9,
      29,
      44,
      .24
    );
}


/* ============================================================
   CABEÇALHO
   ============================================================ */

.professor-modal-header {
  display: flex;

  align-items: flex-start;
  justify-content: space-between;

  gap: 22px;

  padding:
    24px 26px 20px;

  border-bottom:
    1px solid #e1e7eb;
}


.professor-modal-header h2 {
  margin:
    0 0 6px;

  color: #153550;

  font-size: 22px;
}


.professor-modal-header p {
  margin: 0;

  color: #7c8994;

  font-size: 11px;

  line-height: 1.5;
}


.professor-modal-close {
  width: 36px;
  height: 36px;

  flex:
    0 0 auto;

  display: grid;
  place-items: center;

  border: 0;

  border-radius: 50%;

  cursor: pointer;

  background: #eef3f6;

  color: #3d5669;

  font-size: 21px;

  line-height: 1;
}


/* ============================================================
   FORMULÁRIO
   ============================================================ */

.professor-modal-form {
  padding:
    24px 26px 26px;
}


.professor-form-field {
  display: flex;

  flex-direction: column;

  gap: 7px;

  margin-bottom: 17px;
}


.professor-form-field label {
  color: #314b60;

  font-size: 10px;

  font-weight: 750;
}


.professor-form-field input,
.professor-form-field select {
  width: 100%;

  box-sizing: border-box;

  min-height: 42px;

  padding:
    10px 12px;

  border:
    1px solid #d2dde4;

  border-radius: 8px;

  outline: none;

  background: #ffffff;

  color: #243d51;

  font: inherit;

  font-size: 12px;
}


.professor-form-field input:focus,
.professor-form-field select:focus {
  border-color: #7892a6;

  box-shadow:
    0 0 0 3px
    rgba(
      50,
      91,
      122,
      .08
    );
}


.professor-form-field input::placeholder {
  color: #a2adb5;
}


.professor-form-grid {
  display: grid;

  grid-template-columns:
    repeat(
      2,
      minmax(
        0,
        1fr
      )
    );

  gap:
    0 14px;
}


/* ============================================================
   MENSAGENS
   ============================================================ */

.professor-form-message {
  margin-top: 4px;

  padding:
    11px 13px;

  border-radius: 8px;

  font-size: 10px;

  line-height: 1.5;
}


.professor-form-message.hidden {
  display: none;
}


.professor-form-message.erro {
  border:
    1px solid #f0caca;

  background: #fff2f2;

  color: #9d3c3c;
}


.professor-form-message.processando {
  border:
    1px solid #d7e2e9;

  background: #f4f8fa;

  color: #526c7e;
}


/* ============================================================
   AÇÕES
   ============================================================ */

.professor-modal-actions {
  display: flex;

  justify-content: flex-end;

  gap: 10px;

  margin-top: 23px;

  padding-top: 18px;

  border-top:
    1px solid #e5eaed;
}


.professor-btn-secondary {
  min-height: 40px;

  padding:
    10px 17px;

  border:
    1px solid #cfd9df;

  border-radius: 8px;

  cursor: pointer;

  background: #ffffff;

  color: #476073;

  font-size: 11px;

  font-weight: 700;
}


.professor-btn-secondary:hover {
  background: #f5f8fa;
}


.professor-modal-actions
.btn-dashboard-primary {
  min-height: 40px;

  padding:
    10px 18px;
}


.professor-modal-actions
.btn-dashboard-primary:disabled {
  cursor: wait;

  opacity: .6;
}


body.professor-modal-aberto {
  overflow: hidden;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (
  max-width: 650px
) {

  .professor-modal {
    padding: 10px;
  }


  .professor-modal-card {
    max-height:
      calc(
        100vh - 20px
      );

    border-radius: 12px;
  }


  .professor-modal-header {
    padding:
      19px 18px 16px;
  }


  .professor-modal-header h2 {
    font-size: 19px;
  }


  .professor-modal-form {
    padding:
      19px 18px 20px;
  }


  .professor-form-grid {
    grid-template-columns:
      1fr;

    gap: 0;
  }


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


  .professor-modal-actions
  button {
    width: 100%;
  }

}
