/* ---- DASHBOARD / LOBBY LAYOUT ---- */
.lobby-wrapper {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-bottom: 0;
  border-bottom: none;
  margin-bottom: 16px;
}

.dashboard-header h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 4px;
}

.dashboard-header p {
  font-size: 13.5px;
  color: var(--text-secondary);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

.portal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease;
}

.portal-card:hover {
  border-color: var(--border-hover);
}

.portal-card.highlight {
  border-color: var(--text);
}

.card-header-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 16px;
}

.portal-card h2 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: -0.015em;
}

.portal-card .card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* Rooms Table / List in Dashboard */
.rooms-section {
  margin-top: 32px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-header h3,
#rooms-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: -0.01em;
}

.rooms-table {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.room-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s ease;
}
.room-row:last-child {
  border-bottom: none;
}
.room-row:hover {
  background: var(--surface-elevated);
}

.room-row-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.room-row-title {
  font-weight: 500;
  color: var(--text);
  font-size: 13.5px;
}

.room-row-meta {
  font-size: 12px;
  color: var(--text-muted);
}


   LAYOUT META EDUC AI — Sem Menu Superior + Menu Lateral Azul/Laranja/Branco
   ========================================================================== */

body.tc-layout {
  overflow-x: hidden;
  background-color: var(--bg);
}

/* Logo Redonda Oficial (apenas a logo em formato circular) */
.tc-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 0 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  flex-shrink: 0;
}

.logo-round-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.logo-round-circle {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--logo-blue, #0048B4);
  box-shadow: 0 4px 14px rgba(0, 72, 180, 0.25);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: width 0.25s ease, height 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

.logo-round-circle:hover {
  transform: scale(1.04);
}

.logo-round-img {
  width: 122%;
  height: 122%;
  object-fit: contain;
  display: block;
}

.logo-round-lg {
  width: 84px;
  height: 84px;
  border: 3px solid var(--logo-blue, #0048B4);
}

.logo-round-sm {
  width: 44px;
  height: 44px;
  border: 2px solid var(--logo-blue, #0048B4);
}

.auth-logo-center {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

body.sidebar-collapsed .logo-round-circle {
  width: 46px;
  height: 46px;
  border: 2px solid var(--logo-blue, #0048B4);
}

/* Pílula de Seção Ativa e Perfil no Cabeçalho do Painel */
.active-section-pill {
  display: inline-flex;
  align-items: center;
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid rgba(0, 72, 180, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 2px 6px rgba(0, 72, 180, 0.06);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tc-user-profile {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border: 2px solid var(--brand-blue-dark);
  padding: 6px 12px 6px 10px;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(19, 58, 97, 0.25);
}

/* Campo de Foto de Perfil Circular (clicável para enviar foto) */
.tc-user-avatar {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  border: 2.5px solid var(--brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tc-user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.32);
}

.tc-user-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.tc-user-initials {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.tc-avatar-cam-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #ffffff;
  border: 1.5px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tc-avatar-cam-badge .svg-icon {
  width: 10px;
  height: 10px;
}

.tc-user-avatar-lg {
  width: 72px;
  height: 72px;
  border-width: 2.5px;
}

.tc-user-avatar-lg .tc-user-initials {
  font-size: 22px;
}

.tc-user-avatar-lg .tc-avatar-cam-badge {
  width: 24px;
  height: 24px;
}

.tc-user-avatar-lg .tc-avatar-cam-badge .svg-icon {
  width: 13px;
  height: 13px;
}

.perfil-photo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.tc-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.tc-user-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.tc-user-role {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tc-logout-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

.tc-logout-btn:hover {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

/* Menu Lateral Flutuante Esquerdo em Azul da Logo + Laranja + Branco (Altura Total sem Topbar) */
.tc-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: fixed;
  top: 16px;
  bottom: 16px;
  left: 16px;
  width: 260px;
  height: calc(100vh - 32px);
  background: linear-gradient(180deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 16px 12px;
  z-index: 1000;
  box-shadow: 0 14px 36px -4px rgba(19, 58, 97, 0.35);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.tc-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
}
.tc-sidebar-nav::-webkit-scrollbar {
  display: none;
}

.tc-nav-section-label {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
  padding: 6px 12px 2px;
}

/* Item do Menu Lateral com Borda SVG Animada em Laranja e Estado Ativo Branco */
.tc-nav-item {
  position: relative;
  overflow: visible;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  color: #ffffff;
  border-radius: 10px;
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background-color: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.tc-nav-item .svg-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.tc-nav-item .nav-label {
  position: relative;
  z-index: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Borda SVG que se desenha no hover em Laranja da Logo */
.nav-border-draw {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.nav-border-draw rect {
  x: 1px;
  y: 1px;
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  fill: none;
  stroke: var(--brand-orange);
  stroke-width: 2;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tc-nav-item:not(.active):hover .nav-border-draw rect {
  stroke-dashoffset: 0;
}

.tc-nav-item:not(.active):hover {
  border-color: transparent;
  background-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* Estado Ativo Branco Sólido com Texto Azul e Detalhe Laranja */
.tc-nav-item.active {
  background-color: #ffffff !important;
  color: var(--brand-blue) !important;
  font-weight: 700;
  border-color: var(--brand-orange) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18) !important;
}

.tc-nav-item.active .svg-icon,
.tc-nav-item.active .nav-label {
  color: var(--brand-blue) !important;
}

.tc-sidebar-footer {
  padding-top: 10px;
  margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Botão Flutuante Circular Laranja para Recolher/Expandir Menu Lateral */
.sidebar-collapse-toggle {
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  padding: 0;
  background-color: var(--brand-orange);
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.sidebar-collapse-toggle:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-50%) scale(1.12);
}

.sidebar-collapse-toggle .svg-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

/* Estado Recolhido (Sidebar Collapsed) */
body.sidebar-collapsed .tc-sidebar {
  width: 76px !important;
  padding: 16px 8px;
}

body.sidebar-collapsed .tc-nav-section-label {
  display: none;
}

body.sidebar-collapsed .tc-nav-item {
  padding: 10px 0 !important;
  justify-content: center !important;
  gap: 0 !important;
}

body.sidebar-collapsed .tc-nav-item .nav-label {
  display: none !important;
}

body.sidebar-collapsed .sidebar-collapse-toggle .svg-icon {
  transform: rotate(180deg);
}

/* Área Principal de Conteúdo ao lado do Menu Lateral (Sem Menu Superior — Ganho Total de Espaço) */
.tc-main-content {
  min-height: 100vh;
  padding-top: 24px;
  padding-bottom: 40px;
}

.tc-view-container {
  margin-left: 296px;
  margin-right: 24px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .tc-view-container {
  margin-left: 112px;
}

@media (max-width: 860px) {
  .tc-sidebar {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto !important;
    height: auto;
    flex-direction: row;
    padding: 8px;
  }
  .tc-sidebar-brand {
    display: none;
  }
  .tc-sidebar-nav {
    flex-direction: row;
  }
  .tc-sidebar-footer,
  .sidebar-collapse-toggle,
  .tc-nav-section-label {
    display: none;
  }
  .tc-nav-item {
    justify-content: center;
    padding: 10px 8px;
  }
  .tc-nav-item .nav-label {
    display: none;
  }
  .tc-view-container,
  body.sidebar-collapsed .tc-view-container {
    margin-left: 20px;
  }
}

/* Ícones dos Módulos Pedagógicos no Menu Lateral */
.nav-img-badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-module-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(1.68) translateY(13%);
  transform-origin: center center;
  display: block;
}

.tc-nav-item.active .nav-img-badge {
  box-shadow: 0 2px 8px rgba(0, 72, 180, 0.15);
  border-color: rgba(0, 72, 180, 0.15);
}

/* Divisor sutil no menu lateral */
.tc-nav-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
  margin: 6px 8px;
  flex-shrink: 0;
}

/* Painel de visualização do Módulo Pedagógico selecionado */
.module-showcase-card {
  background: #ffffff;
  border: 3.5px solid var(--brand-blue);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(0, 72, 180, 0.08);
}

.module-showcase-thumb {
  width: 112px;
  height: 112px;
  border-radius: 18px;
  background: #ffffff;
  border: 3px solid var(--brand-blue);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 72, 180, 0.12);
}

.module-showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Cards completos com a borda Azul larga em toda a volta e Botões em Laranja */
.portal-card,
#card-professor,
#card-aluno,
#card-perfil {
  background: #ffffff;
  border: 3.5px solid var(--brand-blue);
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(0, 72, 180, 0.07);
}

.portal-card:hover,
#card-professor:hover,
#card-aluno:hover {
  border-color: var(--brand-blue-dark);
}

.rooms-table {
  border: 3.5px solid var(--brand-blue);
  background: #ffffff;
}

.tc-user-profile {
  border: 3px solid var(--brand-blue);
}

.card-header-icon,
#card-professor .card-header-icon {
  background: var(--brand-blue-soft);
  border: 2px solid var(--brand-blue);
  color: var(--brand-blue);
}

.auth-card {
  background: #ffffff;
  border: 3.5px solid var(--brand-blue);
  box-shadow: 0 12px 32px rgba(0, 72, 180, 0.1);
}

.btn-primary {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  border-color: var(--brand-orange-hover);
  color: #ffffff;
}

/* Sino de Notificações Azul com Contador Laranja */
.tc-notif-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.tc-notif-btn {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #ffffff;
  border: 3px solid var(--brand-blue);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 72, 180, 0.12);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.tc-notif-btn:hover {
  background: var(--brand-blue-soft);
  transform: translateY(-1px);
}

.tc-notif-btn .svg-icon {
  width: 22px;
  height: 22px;
  color: var(--brand-blue);
}

.tc-notif-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  border: 2px solid #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(232, 119, 34, 0.45);
  line-height: 1;
}

/* Dropdown de Notificações */
.tc-notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  background: #ffffff;
  border: 3px solid var(--brand-blue);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(19, 58, 97, 0.22);
  z-index: 1200;
  overflow: hidden;
  display: none;
}

.tc-notif-dropdown.open {
  display: block;
}

.tc-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
}

.tc-notif-clear {
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  background: var(--brand-orange);
  color: #ffffff;
  border: none;
  border-radius: 6px;
}

.tc-notif-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.tc-notif-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--brand-blue);
  transition: background 0.15s ease;
}

.tc-notif-item:last-child {
  border-bottom: none;
}

.tc-notif-item:hover {
  background: var(--brand-blue-soft);
}

.tc-notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-hover);
  margin-top: 5px;
  flex-shrink: 0;
}

.tc-notif-item.unread .tc-notif-dot {
  background: var(--brand-orange);
}

.tc-notif-item strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 2px;
}

.tc-notif-item p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

/* Seletor Profissional de Emojis no Chat */
.chat-emoji-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-xs);
  background: var(--brand-blue-soft);
  border: 1.5px solid var(--brand-blue);
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.chat-emoji-btn:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.chat-emoji-btn .svg-icon {
  width: 18px;
  height: 18px;
}

.emoji-popover {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 12px;
  right: 12px;
  background: #ffffff;
  border: 2.5px solid var(--brand-blue);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(19, 58, 97, 0.22);
  z-index: 200;
  overflow: hidden;
  display: none;
}

.emoji-popover.open {
  display: block;
}

.emoji-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--brand-blue-soft);
  border-bottom: 1.5px solid var(--border);
  padding: 4px;
  gap: 4px;
}

.emoji-tab {
  height: 28px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-blue);
  background: transparent;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

.emoji-tab.active {
  background: var(--brand-orange);
  color: #ffffff;
  font-weight: 700;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  padding: 10px;
  max-height: 180px;
  overflow-y: auto;
}

.emoji-item {
  height: 34px;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

.emoji-item:hover {
  background: var(--brand-blue-soft);
  border-color: var(--border);
  transform: scale(1.15);
}
