* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 1200px;
  width: 100%;
  padding: 40px;
  animation: fadeIn 0.5s ease-in;
}

.hidden {
  display: none !important;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #1e3c72;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-box {
  max-width: 400px;
  margin: 0 auto;
}

.login-box h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #555;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e3c72;
}

.btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(30, 60, 114, 0.4);
}

.btn:active {
  transform: translateY(0);
}

.btn-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  margin-top: 10px;
}

.btn-danger {
  background: linear-gradient(135deg, #ff6b6b 0%, #c92a2a 100%);
  padding: 8px 16px;
  width: auto;
  font-size: 14px;
}

.btn-small {
  padding: 8px 16px;
  width: auto;
  font-size: 14px;
  margin-right: 10px;
}

/* ── Seletor de tipo de conteúdo (Externo / Interno) ── */
.content-type-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fafafa;
}
.content-type-option:hover {
  border-color: #667eea;
  background: #f0f0ff;
}
.content-type-option input[type="radio"] {
  margin-top: 3px;
  accent-color: #667eea;
  width: auto;
}
.content-type-option input[type="radio"]:checked + span {
  color: #667eea;
  font-weight: 600;
}
.content-type-option:has(input:checked) {
  border-color: #667eea;
  background: #f0f0ff;
}
.content-type-option span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
  color: #333;
}
.content-type-option small {
  font-size: 11px;
  color: #999;
  font-weight: 400;
}

/* ── Construtor de módulos ── */
.module-builder-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.module-builder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.module-builder-header input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 13px;
}
.module-builder-body {
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lesson-builder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}
.lesson-builder-item input {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
}
.lesson-builder-item input.lesson-title {
  flex: 2;
}
.lesson-builder-item input.lesson-url {
  flex: 3;
}
.btn-remove {
  background: #f44336;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}
.btn-remove:hover { background: #d32f2f; }
.btn-add-lesson {
  background: #e3f2fd;
  color: #1976d2;
  border: 1px dashed #1976d2;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 12px;
  width: 100%;
  margin-top: 4px;
}
.btn-add-lesson:hover { background: #bbdefb; }

/* ── Construtor de materiais de mentoria ── */
.material-builder-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}
.material-builder-item input,
.material-builder-item select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 12px;
}
.material-builder-item input.material-title { flex: 2; }
.material-builder-item input.material-url   { flex: 3; }
.material-builder-item select.material-type { flex: 1; min-width: 110px; }

/* ── Construtor de perguntas de ferramentas ── */
.question-builder-item {
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.question-builder-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.question-builder-header span {
  font-size: 12px;
  color: #666;
  white-space: nowrap;
}
.question-builder-header select {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
  background: #fff;
}
.question-builder-body {
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.question-builder-body input[type="text"],
.question-builder-body textarea {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 7px 10px;
  font-size: 13px;
  box-sizing: border-box;
}
.question-options-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.question-option-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.question-option-item input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 12px;
}
.btn-add-option {
  background: #f3e5f5;
  color: #7b1fa2;
  border: 1px dashed #7b1fa2;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 11px;
  margin-top: 2px;
  align-self: flex-start;
}
.btn-add-option:hover { background: #e1bee7; }
.scale-hint {
  font-size: 11px;
  color: #999;
  padding: 6px 10px;
  background: #fafafa;
  border-radius: 6px;
  border: 1px solid #eee;
}

/* ── Aulas dentro do modal de curso interno ── */
.lesson-row:hover {
  background: #e8f0fe !important;
  border-color: #90caf9 !important;
}
.lesson-done:hover {
  background: #e8f5e9 !important;
  border-color: #a5d6a7 !important;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.alert {
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 14px;
}

.alert-error {
  background: #fee;
  color: #c00;
  border: 1px solid #fcc;
}

.alert-success {
  background: #efe;
  color: #0a0;
  border: 1px solid #cfc;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.dashboard-header h1 {
  color: #333;
  font-size: 28px;
}

.user-info {
  text-align: right;
}

.user-info p {
  color: #666;
  margin-bottom: 5px;
}

/* Badges de Rank */
.rank-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 5px;
}

.rank-adm {
  background: #ff6b6b;
  color: white;
}

.rank-mentor {
  background: #51cf66;
  color: white;
}

.rank-mentorado {
  background: #4dabf7;
  color: white;
}

.section {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 25px;
}

.section h2 {
  color: #333;
  margin-bottom: 20px;
  font-size: 22px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.content-card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.content-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.content-card h3 {
  color: #1e3c72;
  margin-bottom: 10px;
  font-size: 18px;
}

.content-card p {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: #999;
}

.empty-state i {
  font-size: 48px;
  margin-bottom: 15px;
  display: block;
}

.user-list {
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.user-item {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.user-item:hover {
  background: #f8f9fa;
}

.user-item:last-child {
  border-bottom: none;
}

.user-item-info {
  flex: 1;
}

.user-item-info h3 {
  color: #333;
  margin-bottom: 5px;
  font-size: 16px;
}

.user-item-info p {
  color: #666;
  font-size: 14px;
  margin-bottom: 3px;
}

.user-item-actions {
  display: flex;
  gap: 10px;
}

.tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  min-height: 45px;
}

.tag {
  background: #1e3c72;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tag button {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 16px;
  padding: 0;
  line-height: 1;
}

.tag-input {
  flex: 1;
  border: none;
  outline: none;
  min-width: 150px;
  font-size: 14px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-header h2 {
  color: #333;
  font-size: 22px;
}

.close-modal {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
}

.close-modal:hover {
  color: #333;
}

.modal-permissions {
  max-width: 900px !important;
  width: 90% !important;
}

.permissions-user-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.permissions-user-label {
  font-size: 14px;
  opacity: 0.9;
}

.permissions-user-name {
  font-size: 16px;
  font-weight: 600;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 25px;
}

.permissions-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.permissions-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.permissions-icon {
  font-size: 18px;
}

.permissions-count {
  font-size: 13px;
  color: #666;
  font-weight: 500;
  margin-left: auto;
}

.permissions-select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.permissions-select:hover {
  border-color: #667eea;
}

.permissions-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.permissions-tags-wrapper {
  min-height: 80px;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  background: #fafafa;
}

.permissions-tags-wrapper::-webkit-scrollbar {
  width: 8px;
}

.permissions-tags-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.permissions-tags-wrapper::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.permissions-tags-wrapper::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

.permissions-tags-wrapper .tag-input-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: auto;
  border: none;
  padding: 0;
  background: transparent;
}

.permissions-tags-wrapper .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.permissions-tags-wrapper .tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.permissions-tags-wrapper .tag button {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.2s;
}

.permissions-tags-wrapper .tag button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.permissions-tags-wrapper .tag-input-container:empty::after {
  content: "Nenhum item selecionado";
  color: #999;
  font-size: 13px;
  font-style: italic;
  display: block;
  text-align: center;
  padding: 20px;
}

.permissions-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
}

.permissions-actions .btn {
  min-width: 160px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.permissions-actions .btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.permissions-actions .btn-secondary:hover {
  background: #d0d0d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@keyframes counterPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 18px 24px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(102, 126, 234, 0.4);
}

.accordion-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.accordion-btn .accordion-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-btn.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  background: white;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.accordion-body.open {
  max-height: 99999px;
  padding: 30px;
  overflow: visible;
}

.search-bar-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.search-bar-wrapper .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}

/* Quando o wrapper usa display:flex (JS renderSearchBar), lupa fica no fluxo */
.search-bar-wrapper[style*="flex"] .search-icon {
  position: static !important;
  transform: none !important;
  font-size: 16px;
  flex-shrink: 0;
  color: #6b7a99;
}

.search-bar-wrapper input.search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 15px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
  outline: none;
}

.search-bar-wrapper input.search-input:focus {
  border-color: #1e3c72;
  box-shadow: 0 2px 12px rgba(30, 60, 114, 0.2);
}

.search-bar-wrapper[style*="flex"] input.search-input {
  padding: 11px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  flex: 1;
  min-width: 0;
}

.search-bar-wrapper[style*="flex"] input.search-input:focus {
  border-color: transparent !important;
  box-shadow: none !important;
}

.search-bar-wrapper input.search-input::placeholder {
  color: #aaa;
}

.search-bar-wrapper .search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  display: none;
  transition: color 0.2s;
}

/* Botão ✕ em wrapper flex: fica no fluxo normal */
.search-bar-wrapper[style*="flex"] .search-clear {
  position: static !important;
  transform: none !important;
  font-size: 15px;
  flex-shrink: 0;
}

.search-bar-wrapper .search-clear:hover {
  color: #f44336;
}

.search-bar-wrapper .search-clear.visible {
  display: block;
}

.search-results-count {
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
  margin-top: -8px;
}

.search-results-count span {
  color: #1e3c72;
  font-weight: 600;
}

.sidebar-btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: all 0.3s;
  text-align: left;
}

.sidebar-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.sidebar-btn.active {
  background: white;
  color: #1e3c72;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Sidebar Desktop */
#admDashboard > div:first-child,
#mentorDashboard > div:first-child,
#mentoradoDashboard > div:first-child {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

#admDashboard > div:first-child > div:first-child,
#mentorDashboard > div:first-child > div:first-child,
#mentoradoDashboard > div:first-child > div:first-child {
  flex-shrink: 0;
}

#admDashboard nav,
#mentorDashboard nav,
#mentoradoDashboard nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

#admDashboard nav::-webkit-scrollbar,
#mentorDashboard nav::-webkit-scrollbar,
#mentoradoDashboard nav::-webkit-scrollbar {
  width: 6px;
}

#admDashboard nav::-webkit-scrollbar-track,
#mentorDashboard nav::-webkit-scrollbar-track,
#mentoradoDashboard nav::-webkit-scrollbar-track {
  background: transparent;
}

#admDashboard nav::-webkit-scrollbar-thumb,
#mentorDashboard nav::-webkit-scrollbar-thumb,
#mentoradoDashboard nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

#admDashboard nav::-webkit-scrollbar-thumb:hover,
#mentorDashboard nav::-webkit-scrollbar-thumb:hover,
#mentoradoDashboard nav::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

#admDashboard > div:first-child > div:last-child,
#mentorDashboard > div:first-child > div:last-child,
#mentoradoDashboard > div:first-child > div:last-child {
  flex-shrink: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.hamburger-btn {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1001;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.hamburger-btn:active {
  transform: scale(0.95);
}

.hamburger-btn span {
  display: block;
  width: 30px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.mobile-menu-header {
  display: none;
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 20px;
}

.mobile-menu-header img {
  max-width: 80px;
  height: auto;
  margin: 0 auto 15px;
  filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.mobile-menu-header h2 {
  margin: 0 0 5px 0;
  font-size: 20px;
  color: white;
}

.mobile-menu-header p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
}

.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 94%;
  max-width: 1400px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

/* Fullscreen toggle */
.video-modal-content.modal-fullscreen {
  width: 100%;
  max-width: 100%;
  max-height: 100vh;
  border-radius: 0;
}

.video-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  flex-shrink: 0;
  gap: 10px;
}

.video-modal-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Grupo de botões de ação no header */
.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.modal-action-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s;
  line-height: 1;
}
.modal-action-btn:hover {
  background: rgba(255,255,255,0.28);
}
.modal-action-btn svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Iframe mode ocupa todo espaço disponível no modal flex */
#modalModeIframe {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
#modalModeIframe #contentIframe {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 75vh;
  border: none;
  background: #fff;
}
.video-modal-content.modal-fullscreen #modalModeIframe #contentIframe {
  min-height: calc(100vh - 54px);
}

.video-close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.video-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Bloqueia cliques na barra inferior do YouTube (Mais vídeos, Compartilhar) */
.yt-bar-blocker {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 42px;
  z-index: 10;
  background: transparent;
  pointer-events: all;
}

/* Overlays bloqueadores das barras do YouTube */
.yt-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 2147483647;
  pointer-events: all;
  background: transparent;
  cursor: default;
}

/* Topo — cobre título, canal e ícone (~80px) */
.yt-overlay-top {
  top: 0;
  height: 80px;
}

/* Base — cobre compartilhar, mais vídeos, logo (~68px) */
.yt-overlay-bottom {
  bottom: 0;
  height: 68px;
}

/* ── Mini Player ── */
#videoModalContent.modal-mini {
  position: fixed !important;
  bottom: 24px;
  right: 24px;
  width: 500px !important;
  max-width: none !important;
  height: 320px !important;
  max-height: none !important;
  z-index: 99999;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.55);
  border-radius: 12px;
  pointer-events: all;
}
#videoModalContent.modal-mini .video-modal-header {
  cursor: move;
  padding: 8px 12px;
}
#videoModalContent.modal-mini .video-modal-header h3 {
  font-size: 12px;
}
#videoModalContent.modal-mini .modal-action-btn span {
  display: none;
}
#videoModalContent.modal-mini .video-close-btn {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

.search-container,
.content-search-container,
.rank-search-container {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.search-wrapper,
.content-search-wrapper,
.rank-search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-input,
.content-search-input,
.rank-search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.3s;
  background: white;
}

.search-input:focus,
.content-search-input:focus,
.rank-search-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon,
.content-search-icon,
.rank-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 16px;
  pointer-events: none;
}

.filter-select,
.content-sort-select,
.rank-filter-select {
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 150px;
}

.filter-select:focus,
.content-sort-select:focus,
.rank-filter-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:hover,
.content-sort-select:hover,
.rank-filter-select:hover {
  border-color: #667eea;
}

.search-results-count,
.content-results-count,
.rank-results-count {
  padding: 8px 15px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 6px;
  font-size: 13px;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.clear-search,
.content-clear-search,
.rank-clear-search {
  padding: 10px 20px;
  background: #f5f5f5;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  color: #666;
  font-weight: 500;
}

.clear-search:hover,
.content-clear-search:hover,
.rank-clear-search:hover {
  background: #ff6b6b;
  border-color: #ff6b6b;
  color: white;
  transform: translateY(-1px);
}

.no-results,
.content-no-results,
.rank-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #999;
  background: white;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.no-results-icon,
.content-no-results-icon,
.rank-no-results-icon {
  font-size: 64px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.no-results strong,
.content-no-results strong,
.rank-no-results strong {
  display: block;
  font-size: 18px;
  margin-bottom: 10px;
  color: #666;
}

.no-results p,
.content-no-results p,
.rank-no-results p {
  font-size: 14px;
  color: #999;
}

mark.highlight {
  background: #ffeb3b;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
  color: #333;
}

.match-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
}

.match-badge.match-name {
  background: #e3f2fd;
  color: #1976d2;
}

.match-badge.match-course {
  background: #f3e5f5;
  color: #7b1fa2;
}

.match-badge.match-tool {
  background: #e8f5e9;
  color: #388e3c;
}

.match-badge.match-mentorship {
  background: #fff3e0;
  color: #f57c00;
}

.match-badge.match-aula {
  background: #fce4ec;
  color: #c2185b;
}

.sort-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  margin-left: 5px;
  animation: pulse 1.5s infinite;
}



/* Força background escuro no conteúdo principal dos dashboards */

/* Força background escuro nas seções brancas */

/* Força texto claro nos cards e divs com cor inline */

/* Cards de conteúdo em modo escuro */

/* Força background escuro em divs com background inline branco */

/* Força texto claro em elementos com cor preta inline */

/* Inputs e selects com background branco inline */

/* Bordas que ficam brancas */

/* Seção específica do conteúdo (área branca grande) */

/* Cards de estatísticas (mantém gradientes mas escurece texto se necessário) */


/* Lista de aulas/cards brancos */

/* Botões que ficam brancos */

/* Texto dos títulos */

/* Labels e spans com cor preta */

/* Strong tags */

/* Shadows que precisam ficar mais escuros */

@media (max-width: 768px) {

  .hamburger-btn {
    display: flex;
  }

  .mobile-menu-header {
    display: block !important;
  }

  #admDashboard > div:first-child > div:first-child,
  #mentorDashboard > div:first-child > div:first-child,
  #mentoradoDashboard > div:first-child > div:first-child {
    display: none !important;
  }

  #admDashboard > div:first-child, 
  #mentorDashboard > div:first-child, 
  #mentoradoDashboard > div:first-child { 
    position: fixed !important;
    top: 0 !important;
    left: -100% !important;
    width: 280px !important;
    height: 100vh !important;
    padding: 0 !important;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.3) !important;
    z-index: 1000 !important;
    transition: left 0.3s ease !important;
    overflow-y: auto !important;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%) !important;
  }

  #admDashboard.menu-open > div:first-child,
  #mentorDashboard.menu-open > div:first-child,
  #mentoradoDashboard.menu-open > div:first-child {
    left: 0 !important;
  }

  #admDashboard nav,
  #mentorDashboard nav,
  #mentoradoDashboard nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    overflow-y: visible !important;
    max-height: none !important;
    padding: 0 20px !important;
  }

  .sidebar-btn {
    padding: 15px !important;
    font-size: 15px !important;
    gap: 12px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    border-radius: 8px !important;
    width: 100% !important;
  }

  .sidebar-btn span:first-child {
    font-size: 22px !important;
    margin-bottom: 0 !important;
    min-width: 30px;
    text-align: center;
  }

  .sidebar-btn span:last-child {
    font-size: 14px !important;
    line-height: 1.3;
    flex: 1;
  }

  #admDashboard > div:first-child > div:nth-child(2),
  #mentorDashboard > div:first-child > div:nth-child(2),
  #mentoradoDashboard > div:first-child > div:nth-child(2) {
    padding: 0 20px 20px 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  #admDashboard > div:first-child > div:last-child,
  #mentorDashboard > div:first-child > div:last-child,
  #mentoradoDashboard > div:first-child > div:last-child {
    padding: 20px !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  #admDashboard > div:last-child, 
  #mentorDashboard > div:last-child, 
  #mentoradoDashboard > div:last-child { 
    width: 100% !important;
    padding: 80px 15px 20px 15px !important;
    overflow-y: auto !important;
  }

  .content-grid,
  .section > div:first-child[style*="grid-template-columns: repeat(2, 1fr)"],
  .section > div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"],
  .section > div[style*="grid-template-columns: repeat(auto-fill, minmax(200px, 1fr))"],
  .section > div[style*="grid-template-columns: repeat(auto-fill, minmax(300px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  .permissions-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .permissions-tags-wrapper {
    height: 120px !important;
  }

  .permissions-actions {
    flex-direction: column !important;
  }

  .permissions-actions .btn {
    width: 100% !important;
  }

  .item-card {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 15px !important;
    padding: 15px !important;
  }

  .item-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .btn-small {
    flex: 1 1 calc(50% - 4px);
    min-width: 120px;
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  /* Oculta header "Email" (th da 2ª coluna) */
  #usersTableContainer table thead th:nth-child(2),
  #usersTableContainer thead th:nth-child(2),
  #mentorUsersList table thead th:nth-child(2),
  #mentorUsersList thead th:nth-child(2) {
    display: none !important;
  }

  /* Oculta células de email (td da 2ª coluna) */
  #usersTableContainer table tbody tr td:nth-child(2),
  #usersTableContainer tbody tr td:nth-child(2),
  #usersTableContainer tr td:nth-child(2),
  #mentorUsersList table tbody tr td:nth-child(2),
  #mentorUsersList tbody tr td:nth-child(2),
  #mentorUsersList tr td:nth-child(2) {
    display: none !important;
  }

  /* Reduz padding das células */
  #usersTableContainer td,
  #mentorUsersList td {
    padding: 10px 8px !important;
    font-size: 13px !important;
  }

  /* Nome (1ª coluna) */
  #usersTableContainer td:nth-child(1),
  #mentorUsersList td:nth-child(1) {
    font-size: 14px !important;
    font-weight: 600 !important;
  }

  /* Badge do tipo (2ª coluna - antes era 3ª) */
  #usersTableContainer td:nth-child(2) span,
  #mentorUsersList td:nth-child(2) span {
    font-size: 10px !important;
    padding: 4px 10px !important;
  }

  /* Coluna de ações (3ª coluna - antes era 4ª) */
  #usersTableContainer td:nth-child(3),
  #mentorUsersList td:nth-child(3) {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding: 10px !important;
  }

  /* Botões empilhados */
  #usersTableContainer td:nth-child(3) button,
  #mentorUsersList td:nth-child(3) button {
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Scroll horizontal suave */
  #usersTableContainer,
  #mentorUsersList {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  /* Tabela largura completa */
  #usersTableContainer table,
  #mentorUsersList table {
    width: 100% !important;
    min-width: 100% !important;
  }

  /* Hover */
  #usersTableContainer tr:hover,
  #mentorUsersList tr:hover {
    background: #f8f9fa !important;
  }

  /* Modo escuro */


  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px !important;
  }

  .modal-content {
    width: 95% !important;
    max-width: 95% !important;
    padding: 20px !important;
    margin: 10px !important;
  }

  .modal-header h2 {
    font-size: 18px !important;
  }

  .modal-permissions {
    max-width: 95% !important;
    width: 95% !important;
  }

  .search-container,
  .content-search-container,
  .rank-search-container {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 15px !important;
  }

  .search-wrapper,
  .content-search-wrapper,
  .rank-search-wrapper {
    width: 100% !important;
    min-width: 100% !important;
  }

  .filter-select,
  .content-sort-select,
  .rank-filter-select {
    width: 100% !important;
    min-width: 100% !important;
  }

  .clear-search,
  .content-clear-search,
  .rank-clear-search {
    width: 100% !important;
  }

  .search-results-count,
  .content-results-count,
  .rank-results-count {
    text-align: center !important;
    width: 100%;
  }

  .search-input {
    width: 100% !important;
  }

  .section {
    padding: 15px !important;
    margin-bottom: 15px !important;
  }

  .section h2 {
    font-size: 18px !important;
  }

  .section > div:first-child button {
    width: 100% !important;
    margin-top: 10px !important;
  }

  h1 {
    font-size: 24px !important;
  }

  .btn {
    font-size: 15px !important;
    padding: 12px !important;
  }

  .tag-input-container {
    padding: 10px !important;
  }

  .tag {
    font-size: 12px !important;
    padding: 5px 10px !important;
  }

  .empty-state {
    padding: 40px 20px !important;
  }

  .login-box {
    padding: 20px !important;
  }

  .login-box img {
    max-width: 140px !important;
  }

  .login-box h1 {
    font-size: 20px !important;
  }


  .section > div[style*="display: grid"] > div[style*="background: linear-gradient"] {
    padding: 20px 15px !important;
  }

  .section > div[style*="display: grid"] > div[style*="background: linear-gradient"] > div:first-child {
    font-size: 28px !important;
  }

  .section > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #admSectionStats .section > div[style*="display: grid"],
  #mentorSectionStats .section > div[style*="display: grid"],
  #mentoradoSectionStats .section > div[style*="display: grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #admSectionStats .section > div > div,
  #mentorSectionStats .section > div > div,
  #mentoradoSectionStats .section > div > div {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  canvas {
    max-height: 280px !important;
    width: 100% !important;
    height: auto !important;
  }

  .section > div[style*="display: grid"] > div[style*="background: white"] {
    padding: 15px !important;
  }

  .section > div > div h3 {
    font-size: 14px !important;
    margin-bottom: 12px !important;
  }

  .video-modal-content {
    width: 100%;
    margin: 0;
    border-radius: 0;
    max-height: 100vh;
  }

  .video-modal-header h3 {
    font-size: 14px;
  }

  .modal-action-btn span {
    display: none; /* esconde texto, mantém só ícone no mobile */
  }

  .video-close-btn {
    width: 35px;
    height: 35px;
    font-size: 24px;
  }

}

@media (min-width: 769px) {

  /* Desktop mostra todas as colunas normalmente */
  #usersTableContainer table thead th:nth-child(2),
  #usersTableContainer tbody tr td:nth-child(2),
  #mentorUsersList table thead th:nth-child(2),
  #mentorUsersList tbody tr td:nth-child(2) {
    display: table-cell !important;
  }
}

@media (max-width: 480px) {

  #admDashboard > div:first-child, 
  #mentorDashboard > div:first-child, 
  #mentoradoDashboard > div:first-child {
    width: 260px !important;
  }

  .container {
    padding: 10px !important;
  }

  #admDashboard > div:last-child, 
  #mentorDashboard > div:last-child, 
  #mentoradoDashboard > div:last-child {
    padding: 70px 10px 15px 10px !important;
  }

  .btn {
    padding: 10px !important;
    font-size: 14px !important;
  }

  .btn-small {
    padding: 8px 10px !important;
    font-size: 12px !important;
  }

  h1 {
    font-size: 20px !important;
  }

  .section h2 {
    font-size: 16px !important;
  }

  .content-card,
  .item-card {
    padding: 15px !important;
  }

  .login-box img {
    max-width: 120px !important;
  }

  canvas {
    max-height: 240px !important;
  }

  .section > div[style*="display: grid"] > div[style*="background: white"] {
    padding: 12px !important;
  }

  .section > div > div h3 {
    font-size: 13px !important;
  }

  .hamburger-btn {
    width: 45px !important;
    height: 45px !important;
    top: 12px !important;
    right: 12px !important;
  }

  .hamburger-btn span {
    width: 22px !important;
  }
}

@media (max-width: 896px) and (orientation: landscape) {

  #admDashboard > div:first-child, 
  #mentorDashboard > div:first-child, 
  #mentoradoDashboard > div:first-child {
    padding: 10px 15px !important;
  }

  #admDashboard > div:first-child > div:first-child,
  #mentorDashboard > div:first-child > div:first-child,
  #mentoradoDashboard > div:first-child > div:first-child {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  #admDashboard nav,
  #mentorDashboard nav,
  #mentoradoDashboard nav {
    grid-template-columns: repeat(3, 1fr) !important;
  }

  .sidebar-btn {
    padding: 8px !important;
    font-size: 11px !important;
  }

  .sidebar-btn span:first-child {
    font-size: 20px !important;
  }

  .section > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
  }

  canvas {
    max-height: 220px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {

  .section > div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
  }

  canvas {
    max-height: 300px !important;
  }
}

.mentor-section,
.gerenciar-mentoria {
  max-width: 100% !important;
  width: 100% !important;
  float: none !important;
  margin-right: 0 !important;
}

/* Esconde hamburger quando a página de login está visível */
#loginPage:not(.hidden) ~ .hamburger-btn,
#loginPage:not(.hidden) ~ .sidebar-overlay {
  display: none !important;
}

/* Alternativa: esconde quando os dashboards estão escondidos */
body:has(#loginPage:not(.hidden)) .hamburger-btn,
body:has(#loginPage:not(.hidden)) .sidebar-overlay {
  display: none !important;
}

/* Esconde quando não há dashboard ativo */
#admDashboard.hidden ~ .hamburger-btn,
#mentorDashboard.hidden ~ .hamburger-btn,
#mentoradoDashboard.hidden ~ .hamburger-btn {
  display: none !important;
}

.chat-floating-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 126, 234, 0.6);
}

.chat-floating-btn .chat-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Por padrão, chat está oculto */
.chat-floating-btn,
#floatingChatContainer {
    display: none !important;
}

/* Quando logado: remove padding do body para evitar scroll lateral */
body.logged-in {
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  justify-content: flex-start;
}

/* Apenas quando logado, mostra o chat */
body.logged-in .chat-floating-btn,
body.logged-in #floatingChatContainer {
    display: block !important;
}

.chat-window {
    position: fixed;
    bottom: 150px;
    right: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 998;
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

.chat-window.expanded {
    width: 800px;
    height: 650px;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chat-header-left h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.chat-subtitle {
    font-size: 12px;
    opacity: 0.9;
    display: block;
    margin-top: 2px;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
}

.chat-header-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.chat-header-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-header-btn svg {
    width: 18px;
    height: 18px;
    color: white;
}

.chat-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.chat-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-announcements {
    background: #fef3c7;
    border-bottom: 1px solid #fcd34d;
    padding: 12px 16px;
    max-height: 150px;
    overflow-y: auto;
}

.chat-announcement-item {
    background: white;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border-left: 4px solid #f59e0b;
}

.chat-announcement-item:last-child {
    margin-bottom: 0;
}

.chat-announcement-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-announcement-item.priority-urgent {
    border-left-color: #ef4444;
}

.chat-announcement-item.priority-high {
    border-left-color: #f59e0b;
}

.chat-announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 4px;
}

.chat-announcement-title {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.chat-announcement-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.chat-announcement-preview {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.chat-search {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.chat-search-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.chat-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-conversations {
    flex: 1;
    overflow-y: auto;
    background: white;
}

.chat-conversation-item {
    padding: 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    gap: 12px;
}

.chat-conversation-item:hover {
    background: #f9fafb;
}

.chat-conversation-item.unread {
    background: #eff6ff;
}

.chat-conversation-item.unread .chat-conversation-preview {
    font-weight: 600;
    color: #1f2937;
}

.chat-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-conversation-content {
    flex: 1;
    min-width: 0;
}

.chat-conversation-name {
    font-weight: 600;
    font-size: 15px;
    color: #1f2937;
}

.chat-conversation-time {
    font-size: 12px;
    color: #9ca3af;
}

.chat-conversation-preview {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-conversation-unread-badge {
    background: #667eea;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    margin-left: 8px;
}

.chat-conversation-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.chat-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.chat-back-btn:hover {
    background: #e5e7eb;
}

.chat-back-btn svg {
    width: 20px;
    height: 20px;
    color: #4b5563;
}

.chat-conversation-info {
    flex: 1;
}

.chat-conversation-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
}

.chat-contact-role {
    font-size: 12px;
    color: #6b7280;
    display: block;
}

/* Botão apagar conversa inteira */
.chat-delete-conversation-btn {
    background: rgba(255, 59, 48, 0.1);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: #ff3b30;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.chat-delete-conversation-btn:hover {
    background: rgba(255, 59, 48, 0.2);
    transform: scale(1.05);
}

.chat-delete-conversation-btn:active {
    transform: scale(0.95);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 8px;
    max-width: 75%;
    animation: messageSlide 0.3s ease;
    position: relative;
    padding-right: 5px;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.mine {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-message-bubble {
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.chat-message.mine .chat-message-bubble {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-right: 35px;
}

.chat-message-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-time {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
    display: block;
}

.chat-message.mine .chat-message-time {
    color: rgba(255, 255, 255, 0.7);
}

/* Botão de deletar mensagem individual */
.chat-message-delete {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: rgba(255, 59, 48, 0.1);
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.2s;
    font-size: 16px;
    padding: 0;
}

.chat-message-delete:hover {
    opacity: 1;
    background: rgba(255, 59, 48, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.chat-message-delete:active {
    transform: translateY(-50%) scale(0.95);
}

.chat-message:not(.mine) .chat-message-delete {
    display: none;
}

.chat-input-container {
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    background: white;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.chat-message-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    font-size: 14px;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 100px;
    transition: all 0.2s;
}

.chat-message-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #667eea;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-send-btn:hover:not(:disabled) {
    background: #5568d3;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.chat-send-btn svg {
    width: 20px;
    height: 20px;
    color: white;
}

.chat-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #6b7280;
}

.chat-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #9ca3af;
    text-align: center;
}

.chat-empty svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.chat-modal,
.announcement-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chat-modal-content,
.announcement-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.chat-modal-header,
.announcement-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-modal-header h3,
.announcement-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.chat-modal-close,
.announcement-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.chat-modal-close:hover,
.announcement-modal-close:hover {
    background: #f3f4f6;
}

.chat-modal-close svg,
.announcement-modal-close svg {
    width: 24px;
    height: 24px;
    color: #6b7280;
}

.chat-modal-body,
.announcement-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.announcement-modal-body p {
    margin: 0 0 16px 0;
    line-height: 1.6;
    color: #374151;
}

.announcement-modal-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    font-size: 13px;
    color: #6b7280;
}

.chat-modal-footer,
.announcement-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.announcement-mark-read-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.announcement-mark-read-btn:hover {
    background: #5568d3;
}

.all-users-list {
    max-height: 400px;
    overflow-y: auto;
}

.user-group-title {
    font-weight: 700;
    font-size: 13px;
    color: #667eea;
    padding: 12px 12px 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.user-group-title:first-child {
    margin-top: 0;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
    margin-bottom: 8px;
}

.user-item:hover {
    background: #f9fafb;
    border-color: #667eea;
}

.user-item-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
}

.user-item-info {
    flex: 1;
}

.user-item-name {
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}

.user-item-role {
    font-size: 12px;
    color: #6b7280;
}

.user-item-badge {
    background: #667eea;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.user-chat-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(102, 126, 234, 0.3);
    margin-left: auto;
}

.user-chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.chat-conversations::-webkit-scrollbar,
.chat-messages::-webkit-scrollbar,
.chat-announcements::-webkit-scrollbar,
.announcement-modal-body::-webkit-scrollbar,
.all-users-list::-webkit-scrollbar {
    width: 6px;
}

.chat-conversations::-webkit-scrollbar-track,
.chat-messages::-webkit-scrollbar-track,
.chat-announcements::-webkit-scrollbar-track,
.announcement-modal-body::-webkit-scrollbar-track,
.all-users-list::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.chat-conversations::-webkit-scrollbar-thumb,
.chat-messages::-webkit-scrollbar-thumb,
.chat-announcements::-webkit-scrollbar-thumb,
.announcement-modal-body::-webkit-scrollbar-thumb,
.all-users-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chat-conversations::-webkit-scrollbar-thumb:hover,
.chat-messages::-webkit-scrollbar-thumb:hover,
.chat-announcements::-webkit-scrollbar-thumb:hover,
.announcement-modal-body::-webkit-scrollbar-thumb:hover,
.all-users-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .chat-floating-btn {
        bottom: 20px;
        right: 16px;
        width: 52px;
        height: 52px;
    }

    .chat-window {
        bottom: 0;
        right: 0;
        left: 0;
        top: 80px;
        width: 100% !important;
        height: calc(100vh - 80px) !important;
        border-radius: 0;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .chat-modal-content,
    .announcement-modal-content {
        width: 95%;
        max-height: 90vh;
    }
}/*Fim style Chat*/

/* Abas do Perfil */
.profile-tab.active {
  color: #667eea !important;
  border-bottom-color: #667eea !important;
}

.profile-tab:hover {
  color: #667eea !important;
}
/* ==================== MENTOR TABS & OWN-CONTENT CARDS ====================
 * Classes usadas nas seções Cursos / Mentorias / Aulas do Painel Mentor.
 * Prefixo: nb- (NeuroByte) para evitar colisão com classes existentes.
 * ======================================================================= */

/* ── Barra de abas ─────────────────────────────────────────── */
.nb-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #e0e0e0;
  margin-bottom: 24px;
}

.nb-tab-bar button {
  padding: 10px 22px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.nb-tab-bar button.nb-tab-active {
  border-bottom-color: var(--nb-tab-color, #1e3c72);
  color: var(--nb-tab-color, #1e3c72);
}

/* ── Painel de conteúdo de cada aba ────────────────────────── */
.nb-tab-pane {
  display: block;
}

/* ── Header da aba Meus... (botão + busca empilhados) ──────── */
.nb-pane-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

/* Botão Novo Curso / Nova Mentoria / Nova Aula */
.nb-btn-new {
  width: 60%;
  max-width: 480px;
  padding: 12px 0;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: opacity 0.2s, transform 0.15s;
}

.nb-btn-new:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* Busca dentro do nb-pane-header ocupa 100% da largura */
.nb-pane-header .search-bar-wrapper {
  width: 100%;
  margin-bottom: 0;
}

/* Busca injetada pelo renderSearchBar nos containers de "Liberados":
   o container vira grid, então o wrapper precisa ocupar linha inteira */
#mentorCoursesList > .search-bar-wrapper,
#mentorMentorshipsList > .search-bar-wrapper,
#mentorAulasList > .search-bar-wrapper {
  grid-column: 1 / -1;
}

/* ── Card de conteúdo próprio do mentor ────────────────────── */
/* Mesmo estilo visual dos cards de "Liberados" (content-card) */
.nb-own-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nb-own-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.nb-own-card h3 {
  color: #1e3c72;
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
}

.nb-own-card p {
  color: #666;
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  flex: 1;
  min-height: 50px;
}

/* Badges de tipo e visibilidade */
.nb-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.nb-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.nb-badge-externo { background: #e8f0fe; color: #1e3c72; }
.nb-badge-interno { background: #e8f5e9; color: #2e7d32; }
.nb-badge-shared  { background: #e3f2fd; color: #1565c0; }
.nb-badge-private { background: #fff3e0; color: #e65100; }

/* Linha de ações: Editar · Abrir · Excluir */
.nb-card-actions {
  display: flex;
  gap: 8px;
}

.nb-card-actions button {
  flex: 1;
  padding: 9px 4px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.nb-card-actions button:hover { opacity: 0.85; }

.nb-btn-edit   { background: #e8f0fe; color: #1e3c72; border: 1px solid #c5d4f5; }
.nb-btn-open   { background: linear-gradient(135deg, #1e3c72, #2a5298); color: white; border: none; }
.nb-btn-delete { background: white; color: #f44336; border: 1px solid #f44336; }

/* Botão de compartilhamento — full width */
.nb-btn-share {
  width: 100%;
  padding: 9px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  border: 1px solid;
}

.nb-btn-share:hover  { opacity: 0.85; }
.nb-btn-share-on     { background: #e8f5e9; color: #2e7d32; border-color: #81c784; }
.nb-btn-share-off    { background: #e3f2fd; color: #1565c0; border-color: #90caf9; }

/* ── Responsive ─────────────────────────────────────────────── */

/* Opção A: minmax maior nos grids de conteúdo próprio do mentor
   (320px vs 250px padrão) — botões não ficam espremidos em telas largas */
#mentorCoursesOwnGrid,
#mentorMentorshipsOwnGrid,
#mentorAulasOwnGrid {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

@media (max-width: 768px) {
  .nb-btn-new             { width: 90%; max-width: none; }
  .nb-tab-bar button      { padding: 8px 14px; font-size: 13px; }
  #mentorCoursesOwnGrid,
  #mentorMentorshipsOwnGrid,
  #mentorAulasOwnGrid     { grid-template-columns: 1fr; }
}