/* Botão contrato: UX igual aos demais botões */
#btn-gerar-contrato.btn-primary {
  background: #fff;
  color: #f28705;
  border: 2px solid #f28705;
  font-weight: bold;
  transition: background 0.2s, color 0.2s;
}
#btn-gerar-contrato.btn-primary:hover, #btn-gerar-contrato.btn-primary:focus {
  background: #f28705;
  color: #fff;
}
/* -------------------- VARIÁVEIS -------------------- */
:root {
  --orange: #f28705;
  --orange-light: #ffb347;
  --orange-dark: #d97804;
  --black: #111827;
  --gray-dark: #374151;
  --gray-light: #f9fafb;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* -------------------- FONTES -------------------- */
.font-comfortaa {
  font-family: 'Comfortaa', cursive;
}

.font-lexend {
  font-family: 'Lexend', sans-serif;
}

/* -------------------- LOADING -------------------- */
.loading-spinner-large {
  border: 6px solid #f3f3f3;
  border-top: 6px solid var(--orange);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.loading-spinner-small {
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--orange);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* -------------------- MENU LATERAL -------------------- */
.menu-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  color: white;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item i {
  font-size: 1.1rem;
  width: 24px;
}

/* Menu item expansível (Dashboard) */
.menu-item-expandable {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  color: white;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 4px;
  justify-content: space-between;
}

.menu-item-expandable:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.menu-item-expandable.active {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.menu-item-expandable i:first-child {
  font-size: 1.1rem;
  width: 24px;
}

#icon-dashboard-expand {
  transition: transform 0.3s ease;
}

#icon-dashboard-expand.rotate {
  transform: rotate(180deg);
}

/* Submenu do Dashboard */
#submenu-dashboard {
  animation: slideDown 0.3s ease forwards;
}

#submenu-dashboard.hidden {
  animation: slideUp 0.3s ease forwards;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

@keyframes slideUp {
  from {
    opacity: 1;
    max-height: 200px;
  }
  to {
    opacity: 0;
    max-height: 0;
  }
}

/* Item de submenu */
.menu-item-submenu {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.menu-item-submenu:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.menu-item-submenu.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.menu-item-submenu i {
  font-size: 1rem;
  width: 24px;
}

/* -------------------- SECTIONS -------------------- */
.section-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.section-content.active {
  display: block;
}

.section-content.fade-out {
  animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    display: none;
  }
}

/* -------------------- CARDS -------------------- */
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.card-header {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f3f4f6;
}

/* -------------------- BOTÕES -------------------- */
.btn-primary {
  background: var(--orange);
  color: white;
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(242, 135, 5, 0.3);
}

.btn-primary:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: white;
  color: var(--orange);
  border: 2px solid var(--orange);
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background: var(--orange);
  color: white;
  transform: scale(1.03);
}

/* Botões compactos */
.btn-compact {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
}

/* Botão de status - clicável */
.btn-status-aula {
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: center;
  transition: all 0.2s ease;
}

.btn-status-aula:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
  filter: brightness(0.95);
}

/* Classes específicas para status de aulas */
.status-pendente {
  background-color: #F3F4F6 !important;
  color: #9CA3AF !important;
  border: 1px solid #D1D5DB !important;
}

.status-reagendada {
  background-color: #FEF3C7 !important;
  color: #F59E0B !important;
  border: 1px solid #FCD34D !important;
}

.status-concluida {
  background-color: #D1FAE5 !important;
  color: #10B981 !important;
  border: 1px solid #6EE7B7 !important;
}

.status-reposicao {
  background-color: #DBEAFE !important;
  color: #3B82F6 !important;
  border: 1px solid #93C5FD !important;
}

.status-cancelada {
  background-color: #FEE2E2 !important;
  color: #EF4444 !important;
  border: 1px solid #FCA5A5 !important;
}


/* Opções do modal de status */
.status-option-btn {
  border: 2px solid transparent;
  transition: all 0.2s ease;
  cursor: pointer;
}

.status-option-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.status-option-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status-option-btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Status clicável na tabela */
.status-badge-clickable {
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.status-badge-clickable:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.status-badge-clickable::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  background-color: #f28705;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.status-badge-clickable:hover::after {
  opacity: 1;
}

/* Botão de data - clicável */
.btn-data-aula {
  border: none;
  background: transparent;
  font-family: inherit;
  text-align: left;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-data-aula:hover {
  background-color: #FFF7ED !important;
}

/* Calendário customizado */
.calendar-container {
  padding: 8px;
}

.calendar-day {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid transparent;
}

.calendar-day:hover:not(.bg-orange-500) {
  background-color: #FFF7ED;
  color: #F59E0B;
}

.calendar-day-empty {
  pointer-events: none;
}


/* -------------------- FILTROS -------------------- */
.filter-container {
  background: white;
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.filter-row-compact {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  gap: 12px !important;
  align-items: end !important;
}

@media (max-width: 1024px) {
  .filter-row-compact {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 640px) {
  .filter-row-compact {
    grid-template-columns: 1fr !important;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-label-compact {
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--gray-dark);
  font-size: 0.8rem !important;
}

.filter-select, .filter-input {
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  transition: all 0.2s ease;
}

.filter-select:focus, .filter-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(242, 135, 5, 0.1);
}

.filter-compact {
  padding: 6px 10px !important;
  font-size: 0.85rem !important;
}

/* -------------------- CARDS GRID -------------------- */
.cards-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1536px) {
  .cards-grid-compact {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1280px) {
  .cards-grid-compact {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cards-grid-compact {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.aula-card-compact {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.aula-card-compact:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--orange);
}

.aula-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.aula-card-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  color: var(--orange);
  font-size: 0.9rem;
  flex: 1;
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.aula-card-codigo {
  font-family: 'Comfortaa', cursive;
  font-size: 0.75rem;
  color: var(--gray-dark);
  background: #f9fafb;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  white-space: nowrap;
}

.aula-card-content {
  font-family: 'Comfortaa', cursive;
  color: #4b5563;
  line-height: 1.5;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.info-row:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 0.75rem;
  color: #6b7280;
  display: flex;
  align-items: center;
}

.info-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
}

/* -------------------- PROGRESS BAR -------------------- */
.progress-bar-container {
  margin-top: 12px;
}

.progress-bar-wrapper {
  display: flex;
  width: 100%;
  height: 24px;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-item {
  flex: 0 0 auto;
  height: 100%;
  border-right: 1px dashed #c0c0c0;
  transition: background-color 0.3s ease;
}

.progress-item:last-child {
  border-right: none;
}

/* -------------------- TOAST -------------------- */
.toast {
  background: white;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  min-width: 300px;
  max-width: 400px;
  animation: slideInRight 0.3s ease forwards;
  border-left: 4px solid var(--orange);
}

.toast.success {
  border-left-color: #10b981;
}

.toast.error {
  border-left-color: #ef4444;
}

.toast.warning {
  border-left-color: #f59e0b;
}

.toast.info {
  border-left-color: #3b82f6;
}

.toast-icon {
  margin-right: 12px;
  font-size: 1.2rem;
}

.toast-content {
  flex: 1;
}

.toast-title {
  font-family: 'Lexend', sans-serif;
  font-weight: 700;
  margin-bottom: 4px;
}

.toast-message {
  font-family: 'Comfortaa', cursive;
  font-size: 0.9rem;
  color: #6b7280;
}

.toast-close {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: 12px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* -------------------- MODAL -------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 1rem;
}

.modal-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

/* -------------------- SCROLL ROLL HORIZONTAL -------------------- */
.horizontal-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* -------------------- SCROLL ROLL VERTICAL OCULTO -------------------- */
.vertical-scroll-hidden {
  overflow-y: auto;
  scrollbar-width: none; /* Firefox */
}

.vertical-scroll-hidden::-webkit-scrollbar {
  width: 0; /* Chrome, Safari, Opera */
  height: 0;
}

/* Para permitir scroll com mouse wheel mesmo sem barra visível */
.vertical-scroll-hidden {
  -ms-overflow-style: none; /* IE and Edge */
}

/* -------------------- TABELA COM SCROLL DUPLO -------------------- */
.table-container-double-scroll {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid #e5e7eb;
}

.table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
}

.table-wrapper::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.table-details {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.table-details th,
.table-details td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  font-size: 0.75rem;
}

.table-details th {
  background-color: #f9fafb;
  font-family: 'Lexend', sans-serif;
  font-weight: 600;
  color: #374151;
  position: sticky;
  top: 0;
  z-index: 10;
  font-size: 0.75rem;
}

.table-details tbody tr:hover {
  background-color: #f9fafb;
}

/* -------------------- GRID DE INFORMAÇÕES DO MODAL -------------------- */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem; /* reduzido em 50% */
  padding: 1.5rem;
  background: #f9fafb;
  border-radius: var(--radius-sm);
  margin-bottom: 1.5rem;
}

.info-column {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.info-item {
  display: flex;
  flex-direction: column;
}

.info-label-small {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.info-value-small {
  font-size: 0.875rem;
  color: #111827;
  font-weight: 600;
}

/* -------------------- BOTÕES DE AÇÃO -------------------- */
.action-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.btn-danger {
  background: #ef4444;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-danger:hover {
  background: #dc2626;
  transform: scale(1.03);
}

.btn-success {
  background: #10b981;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: 'Comfortaa', cursive;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-success:hover {
  background: #059669;
  transform: scale(1.03);
}

/* -------------------- UTILITÁRIOS -------------------- */
.hidden {
  display: none !important;
}

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.warning {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-badge.info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* -------------------- RESPONSIVIDADE -------------------- */
@media (max-width: 768px) {
  .cards-grid-compact {
    grid-template-columns: 1fr;
  }
  
  .filter-row-compact {
    grid-template-columns: 1fr !important;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .action-buttons {
    flex-direction: column;
  }
  
  .action-buttons button {
    width: 100%;
  }
}

/* ADICIONAR AO FINAL DO ARQUIVO STYLE.CSS */

/* -------------------- STATUS BADGES -------------------- */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.7rem; /* Tamanho reduzido para valores */
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.success {
  background-color: #d1fae5;
  color: #065f46;
}

.status-badge.error {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-badge.warning {
  background-color: #fef3c7;
  color: #92400e;
}

.status-badge.info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Ajuste específico para vermelho suave nos professores incompletos */
.text-red-400 {
  color: #f87171;
}

/* -------------------- BOTÕES COMPACTOS NO MODAL -------------------- */
.btn-compact {
  padding: 6px 12px !important;
  font-size: 0.75rem !important;
}

/* -------------------- VALORES FINANCEIROS -------------------- */
.text-finance-green {
  color: #059669 !important;
}

.text-finance-red {
  color: #dc2626 !important; /* Vermelho mais forte para "A pagar" */
}

.text-finance-blue {
  color: #3b82f6 !important;
}

/* -------------------- CAMPOS DE FORMULÁRIO -------------------- */
.form-input-sm {
  padding: 6px 10px !important;
  font-size: 0.875rem !important;
}

.form-select-sm {
  padding: 6px 10px !important;
  font-size: 0.875rem !important;
}

/* -------------------- AJUSTES DE LAYOUT -------------------- */
.aula-card-compact .info-value {
  font-size: 0.75rem !important; /* Valores menores nos cards */
}

/* -------------------- SCROLL ROLL MELHORADO -------------------- */
.horizontal-scroll {
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f1f5f9;
  padding-bottom: 8px;
}

.horizontal-scroll::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.horizontal-scroll::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* -------------------- MODAL DE OBSERVAÇÕES -------------------- */
.observacoes-content {
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

/* -------------------- SWITCH TOGGLE -------------------- */
.switch-toggle {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.switch-active {
  background-color: #10b981;
}

.switch-inactive {
  background-color: #d1d5db;
}

.switch-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: white;
  transition: transform 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.switch-active .switch-slider {
  transform: translateX(16px);
}

.switch-inactive .switch-slider {
  transform: translateX(0);
}

/* -------------------- AJUSTES DE RESPONSIVIDADE -------------------- */
@media (max-width: 768px) {
  .status-badge {
    font-size: 0.65rem;
    padding: 3px 6px;
  }
  
  .btn-compact {
    padding: 5px 10px !important;
    font-size: 0.7rem !important;
  }
}

/* -------------------- TEXTO E TÍTULOS -------------------- */

/* Alinhar todos os títulos à esquerda, exceto h1 */
h2, h3, h4, h5, h6,
.font-lexend.text-lg,
.font-lexend.text-base,
.font-lexend.text-xl,
.aula-card-title,
.toast-title,
.modal-header h3,
.modal-header h4,
.modal-header h5 {
  text-align: left !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* h1 pode ter alinhamento diferente, não sobrescrever */

/* Texto comum justificado */
p, .texto-comum, .aula-card-content, .toast-message {
  text-align: justify !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Remover margens extras dos títulos (exceto h1) */
h2, h3, h4, h5, h6 {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* -------------------- ESTILOS PARA IMPRESSÃO -------------------- */
@media print {
  /* Ocultar elementos desnecessários na impressão */
  .no-print,
  .modal-header,
  .modal-footer,
  .sidebar,
  .navbar,
  #toast-container,
  button {
    display: none !important;
  }
  
  /* Ajustar modal para ocupar página inteira */
  .modal-overlay {
    position: static !important;
    background: white !important;
  }
  
  .modal-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }
  
  .modal-body {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  
  /* Garantir quebras de página adequadas */
  #conteudo-solicitacao {
    page-break-inside: avoid;
  }
  
  table {
    page-break-inside: auto;
  }
  
  tr {
    page-break-inside: avoid;
    page-break-after: auto;
  }
  
  /* Ajustar cores para impressão */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
}

/* -------------------- Uiverse Toggle Switch (gharsh11032000) -------------------- */
.switch {
  font-size: 17px;
  position: relative;
  display: inline-block;
  width: 3.5em;
  height: 2em;
}
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  border: 2px solid #414141;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.slider:before {
  position: absolute;
  content: "";
  height: 1.4em;
  width: 1.4em;
  left: 0.2em;
  bottom: 0.2em;
  background-color: var(--orange);
  border-radius: inherit;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
}
.switch input:checked + .slider {
  box-shadow: 0 0 20px rgba(242, 135, 5, 0.8);
  border: 2px solid var(--orange);
}
.switch input:checked + .slider:before {
  transform: translateX(1.5em);
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
