/* ===== LOGO ===== */
.logo { display: flex; flex-direction: column; line-height: 1; cursor: pointer; text-decoration: none; }
.logo:hover { text-decoration: none; }
.logo-sup { font-family: 'DM Sans', sans-serif; font-size: 6px; font-weight: 500; color: var(--gray-400); letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 2px; line-height: 1.5; display: flex; flex-direction: column; }
.logo-name { font-family: 'Fraunces', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--navy); letter-spacing: -.5px; line-height: 1; }
.logo-name em { color: var(--teal); font-style: normal; }
.logo-name .logo-o { color: #6B3FA0; }
.logo-name .logo-r { color: #D4A017; }
.logo-name .logo-g { color: #C42B6B; }
.logo-mark { width: 34px; height: 34px; background: var(--navy); border-radius: var(--r8); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--teal); line-height: 1; }

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 16px; border-radius: var(--r8);
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: none; transition: all 150ms; font-family: inherit;
  text-decoration: none; line-height: 1.4;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-mid); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-mid); }
.btn-acc { background: var(--acc-primary); color: var(--acc-primary-text); }
.btn-acc:hover { background: var(--acc-primary-hover); }
.btn-outline { background: var(--white); color: var(--navy); border: 1.5px solid var(--bd-md); }
.btn-outline:hover { border-color: var(--navy); }
.btn-ghost { background: none; color: var(--gray-600); }
.btn-ghost:hover { background: var(--gray-100); color: var(--gray-900); }
#btn-sair { color: var(--danger); }
#btn-sair:hover { background: #FEF2F2; color: #B91C1C; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 14px; }

/* ===== CARDS ===== */
.card {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--r12); box-shadow: var(--sh-sm);
  padding: 16px; transition: box-shadow 150ms;
}
.card:hover { box-shadow: var(--sh-md); }
.card-stat { text-align: center; padding: 16px; }
.card-stat-n { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 700; color: var(--navy); }
.card-stat-l { font-size: 11px; color: var(--gray-400); margin-top: 3px; font-weight: 500; letter-spacing: .5px; }

/* ===== BADGES ===== */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 10px; border-radius: 4px;
  font-size: 11px; font-weight: 500;
}
.badge-navy { background: var(--navy-light); color: var(--navy); }
.badge-teal { background: var(--teal-light); color: var(--teal-dark); }
.badge-warn { background: #FFF7ED; color: #C2590A; }
.badge-ok { background: #F0FDF4; color: #166534; }
.badge-err { background: #FEF2F2; color: #DC2626; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-popular { background: var(--teal); color: #fff; font-weight: 600; }

/* Badges de papel */
.badge-gestor { background: #FDE8F0; color: #C42B6B; }
.badge-coordenador { background: #EDE8FA; color: #5A339A; }
.badge-prof-coord { background: #EDE8FA; color: #6B3FA0; }
.badge-professor { background: var(--navy-light); color: var(--navy); }
.badge-aluno { background: var(--gray-100); color: var(--gray-600); }

/* Badges de aula */
.badge-seminario { background: var(--navy-light); color: var(--navy); }
.badge-aula-prof { background: var(--teal-light); color: var(--teal-dark); }
.badge-apresentacao { background: #FFF7ED; color: #C2590A; }
.badge-completo { background: #F0FDF4; color: #166534; }
.badge-aberto { background: #FFF7ED; color: #C2590A; }
.badge-finalizado { background: var(--gray-100); color: var(--gray-400); }

/* Badges de papel aluno */
.badge-apresentador { background: var(--navy-light); color: var(--navy); }
.badge-debatedor { background: #F5F0FF; color: #5B21B6; }

/* ===== CHIPS ===== */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; background: var(--gray-50);
  border: 1px solid var(--bd); border-radius: 20px;
  font-size: 12px; color: var(--gray-900);
}

/* ===== FORMULÁRIOS ===== */
input, select, textarea {
  background: var(--gray-50); border: 1.5px solid var(--bd-md);
  border-radius: var(--r8); padding: 8px 12px;
  font-size: 13px; color: var(--gray-900);
  font-family: inherit; outline: none; width: 100%;
  transition: border-color 150ms, box-shadow 150ms;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-light);
}
input::placeholder, textarea::placeholder { color: var(--gray-400); }
textarea { resize: vertical; min-height: 80px; }
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-label { font-size: 12px; font-weight: 500; color: var(--gray-600); }

/* Radio / Checkbox custom */
.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-option {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; background: var(--gray-50);
  border: 1.5px solid var(--bd); border-radius: var(--r8);
  cursor: pointer; transition: border-color 150ms;
}
.radio-option:hover { border-color: var(--teal); }
.radio-option input[type="radio"] { width: auto; margin-top: 2px; accent-color: var(--teal); }
.radio-option-label { font-size: 13px; }
.radio-option-sub { font-size: 11px; color: var(--gray-400); }

/* ===== TOGGLE ===== */
.toggle-wrap { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.toggle-track {
  position: absolute; inset: 0; background: var(--gray-200);
  border-radius: 20px; transition: background 200ms;
}
.toggle input:checked + .toggle-track { background: var(--teal); }
.toggle-thumb {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform 200ms;
  box-shadow: var(--sh-sm);
}
.toggle input:checked ~ .toggle-thumb { transform: translateX(16px); }
.toggle-label { font-size: 13px; color: var(--gray-600); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,22,35,.32);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 200ms ease;
  opacity: 0; visibility: hidden; transition: opacity 200ms, visibility 200ms;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--r20);
  box-shadow: var(--sh-lg); padding: 28px; width: 100%;
  max-width: 520px; animation: scaleIn 250ms ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-lg { max-width: 640px; }
.modal-title {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
  color: var(--navy); margin-bottom: 4px;
}
.modal-sub { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 24px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }

/* ===== TOAST ===== */
.toast-container {
  position: fixed; bottom: 20px; right: 20px; z-index: 300;
  display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--r8); padding: 12px 16px;
  box-shadow: var(--sh-md); font-size: 13px; min-width: 240px;
  animation: slideIn 300ms ease;
  display: flex; align-items: center; gap: 10px;
}
.toast-success { border-left: 3px solid var(--teal); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--navy); }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== UPLOAD ===== */
.upload-area {
  border: 1.5px dashed var(--bd-md); border-radius: var(--r12);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all 150ms; color: var(--gray-400); font-size: 13px;
}
.upload-area:hover { border-color: var(--teal); background: var(--teal-light); }

/* ===== SLIDER PARTICIPAÇÃO ===== */
.slider-wrap { display: flex; align-items: center; gap: 12px; }
input[type="range"] { flex: 1; height: 4px; accent-color: var(--teal); padding: 0; border: none; background: transparent; }
input[type="range"]:focus { box-shadow: none; }
.slider-val { min-width: 40px; font-size: 13px; font-weight: 600; text-align: right; }
.slider-val.danger { color: var(--danger); }
.slider-val.warn { color: var(--warning); }
.slider-val.ok { color: var(--teal-dark); }

/* ===== PROGRESS BAR ===== */
.progress { height: 4px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 2px; background: var(--teal); transition: width 300ms; }

/* ===== PRICING ===== */
.pricing-section { max-width: 680px; margin: 0 auto; }
.pricing-box {
  background: var(--white); border: 1.5px solid var(--bd-md);
  border-radius: var(--r12); padding: 24px;
}
.pricing-box.featured { border-color: var(--teal); position: relative; }
.pricing-result { font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700; color: var(--navy); }
.pricing-period { font-size: 13px; color: var(--gray-400); margin-left: 4px; }
.pricing-monthly { font-size: 13px; color: var(--gray-600); margin-top: 4px; }
.pricing-breakdown { font-size: 12px; color: var(--gray-400); margin-top: 8px; line-height: 1.6; }
.pricing-slider-label {
  font-size: 13px; font-weight: 500; color: var(--gray-600);
  margin-bottom: 8px; display: flex; justify-content: space-between;
}
.pricing-slider-value { color: var(--navy); font-weight: 600; }
.pricing-divider {
  text-align: center; color: var(--gray-400); font-size: 12px;
  font-weight: 600; letter-spacing: 2px; margin: 24px 0;
  display: flex; align-items: center; gap: 16px;
}
.pricing-divider::before, .pricing-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--bd-md);
}
.pricing-old-price { text-decoration: line-through; color: var(--gray-400); font-size: 14px; }
.pricing-economy { font-size: 12px; color: var(--teal-dark); font-weight: 500; }

/* ===== MATERIAL ITEM ===== */
.material-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; background: var(--gray-50);
  border: 1px solid var(--bd); border-radius: var(--r8);
  margin-bottom: 8px;
}
.material-title { font-size: 13px; font-weight: 500; }
.material-autor { font-size: 11px; color: var(--gray-400); }

/* ===== PILLS ===== */
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.pill {
  padding: 5px 12px; background: var(--gray-50);
  border: 1px solid var(--bd); border-radius: 20px;
  font-size: 12px; font-weight: 500; cursor: pointer;
  transition: all 150ms; color: var(--gray-600);
  font-family: inherit;
}
.pill:hover { border-color: var(--teal); color: var(--gray-900); }
.pill.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ===== DISC HEADER ROW ===== */
.disc-header-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.disc-header-info h1 { margin-bottom: 4px; }
.disc-header-stats {
  display: flex; gap: 12px; flex-shrink: 0; align-items: center; flex-wrap: wrap;
}
.stat-pill {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 14px; background: var(--white);
  border: 1px solid var(--bd); border-radius: var(--r8);
  min-width: 64px;
}
.stat-pill-n { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-pill-l { font-size: 9px; color: var(--gray-400); font-weight: 500; letter-spacing: .3px; text-transform: uppercase; }

/* ===== AULA CARD (aluno view) ===== */
.aula-card {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--r12); padding: 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--sh-sm); transition: box-shadow 150ms;
  margin-bottom: 12px;
}
.aula-card:hover { box-shadow: var(--sh-md); }
.aula-card-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.aula-card-number { font-size: 13px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 8px; }
.aula-card-date { font-size: 16px; font-weight: 600; color: var(--navy); }
.aula-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.aula-card-action { }
.aula-card-title { font-size: 17px; font-weight: 600; color: var(--gray-900); line-height: 1.4; }
.aula-card-ementa { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.aula-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* Material list inside aula card */
.aula-materiais { display: flex; flex-direction: column; gap: 0; margin-top: 4px; border-left: 2px solid var(--gray-200); padding-left: 12px; }
.aula-materiais-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; margin-top: 4px; border-left: 2px solid var(--gray-200); padding-left: 12px; }
.aula-mat-num { font-weight: 600; color: var(--navy); }
.aula-mat-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 8px 0; border-bottom: 1px solid var(--gray-100);
  gap: 12px;
}
.aula-mat-item:last-child { border-bottom: none; }
.aula-mat-info { flex: 1; min-width: 0; }
.aula-mat-titulo { font-size: 13px; font-weight: 500; color: var(--gray-900); }
.aula-mat-autor { font-size: 11px; color: var(--gray-400); }
.aula-mat-aluno { font-size: 11px; color: var(--teal-dark); margin-top: 2px; }

/* Inline inscription */
.aula-inscricao-panel {
  background: var(--gray-50); border: 1px solid var(--bd);
  border-radius: var(--r8); padding: 12px 16px; margin-top: 8px;
  animation: fadeIn 200ms ease;
}
.aula-inscricao-panel .form-label { margin-bottom: 8px; }
.mat-check-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: var(--r8);
  cursor: pointer; transition: background 100ms;
}
.mat-check-item:hover { background: var(--white); }
.mat-check-item input { width: auto; accent-color: var(--teal); }
.mat-check-label { font-size: 13px; }
.mat-check-sub { font-size: 11px; color: var(--gray-400); }
.inscritos-label { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--gray-400); letter-spacing: .5px; margin-bottom: 4px; }

/* Legend */
.aulas-legenda {
  display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: center;
  margin-top: 8px; padding: 12px 16px;
  font-size: 11px; color: var(--gray-400); line-height: 1.8;
  border-top: 1px solid var(--gray-100);
  grid-column: 1 / -1;
}
.aulas-legenda .badge { margin-right: 4px; }

/* ===== PROFESSOR CARD (aluno view) ===== */
.prof-card { display: flex; gap: 20px; padding: 24px; }
.prof-card img { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.prof-info h2 { margin-bottom: 4px; }
.prof-info .titulo { color: var(--teal-dark); font-size: 13px; margin-bottom: 12px; }
.prof-info .bio { font-size: 13px; color: var(--gray-600); line-height: 1.6; }

/* ===== QUICK ACCESS (login) ===== */
.quick-access { margin-top: 20px; border-top: 1px solid var(--bd); padding-top: 12px; }
.quick-access summary { cursor: pointer; color: var(--gray-400); font-size: 12px; margin-bottom: 10px; }
.quick-access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px; }
.quick-access-btn {
  display: flex; flex-direction: column; padding: 8px 10px;
  background: var(--gray-50); border: 1px solid var(--bd);
  border-radius: var(--r8); cursor: pointer; transition: border-color 150ms;
  font-family: inherit; text-align: left; color: var(--gray-900);
}
.quick-access-btn:hover { border-color: var(--teal); }
.qa-name { font-size: 12px; font-weight: 500; }
.qa-role { font-size: 10px; color: var(--gray-400); text-transform: uppercase; letter-spacing: .5px; }

/* ===== LOGIN BOX ===== */
.login-box {
  background: var(--white); border: 1px solid var(--bd);
  border-radius: var(--r20); box-shadow: var(--sh-lg);
  padding: 32px; width: 100%; max-width: 400px;
}
.login-box .logo { align-items: center; margin-bottom: 28px; }
.login-error {
  background: var(--danger-bg); border: 1px solid var(--danger);
  border-radius: var(--r8); padding: 8px 12px;
  color: var(--danger); font-size: 12px; margin-bottom: 12px;
  display: none;
}

/* ===== DETAILS ROW ===== */
.details-row { display: none; }
.details-row.active { display: table-row; }
.details-row td { background: var(--gray-50); }

/* ===== RESPONSIVE ===== */
@media(max-width: 600px) {
  .prof-card { flex-direction: column; align-items: center; text-align: center; }
  .modal { padding: 20px; border-radius: var(--r12); }
  .login-box { padding: 24px; }
}
