/* =============================================
   STYLES.CSS - Sistema Principal
   ============================================= */

/* Importar responsividade */
@import url('responsive.css');

/* Variáveis CSS */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --primary: #2563eb;
  --primary-600: #1d4ed8;
  --ring: #93c5fd;
  --danger: #ef4444;
  --success: #16a34a;
  --warning: #f59e0b;
  --border: #e5e7eb;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { 
  height: 100%; 
  margin: 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: var(--text);
  min-height: 100vh;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

/* App layout */
.app { 
  display: flex; 
  flex-direction: column; 
  min-height: 100vh; 
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.topbar {
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  gap: 12px; 
  padding: 12px 16px; 
  max-width: 1200px; 
  margin: 0 auto;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  padding: 1rem 0;
}

/* Brand */
.brand { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
  font-weight: 700; 
}

.brand .dot {
  width: 10px; 
  height: 10px; 
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, .15);
}

/* Logo */
.logo {
  width: 200px;
  height: auto;
  margin-right: 10px;
}

/* Navigation */
.nav { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
}

.nav a {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}

.nav a.active { 
  background: var(--primary); 
  color: #fff; 
  border-color: transparent; 
}

.nav a:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* Navigation Links */
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
}

/* User */
.user { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
  color: var(--muted); 
}

/* Botões */
.btn {
  display: inline-flex; 
  align-items: center; 
  gap: 8px;
  padding: 10px 12px; 
  border-radius: 12px;
  border: 1px solid var(--border); 
  background: #fff;
  cursor: pointer; 
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn:hover { 
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
}

.btn:active { 
  transform: translateY(1px); 
}

.btn.primary { 
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: #fff; 
  border-color: transparent; 
}

.btn.ghost { 
  background: transparent; 
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: linear-gradient(135deg, #95a5a6, #7f8c8d);
}

.btn-success {
  background: linear-gradient(135deg, var(--success), #229954);
}

.btn-logout {
  background-color: var(--danger);
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s ease;
}

.btn-logout i {
  color: #ffffff;
}

.btn-logout:hover {
  background-color: #b52a37;
}

/* Main e cards */
main { 
  max-width: 1200px; 
  margin: 20px auto; 
  padding: 0 20px; 
  flex: 1; 
  width: 100%;
  min-height: calc(100vh - 80px);
}

.page {
  display: none;
  animation: fadeIn 0.3s ease-in;
}

.page.active {
  display: block;
}

.card { 
  background: var(--surface); 
  border: 1px solid var(--border); 
  border-radius: 16px; 
  box-shadow: 0 8px 30px rgba(0, 0, 0, .04); 
  overflow: hidden;
  margin-bottom: 1rem;
}

.card .head { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  padding: 14px 16px; 
  border-bottom: 1px solid var(--border); 
}

.card .body { 
  padding: 16px; 
}

.card h3 {
  color: var(--text);
  margin-bottom: 1rem;
}

.muted { 
  color: var(--muted); 
}

/* Welcome Container */
.welcome-container {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-top: 2rem;
}

.welcome-container h1 {
  color: var(--text);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.welcome-container p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.feature:hover {
  transform: translateY(-5px);
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Grid */
.grid { 
  display: grid; 
  gap: 12px; 
}

.grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* Form styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: .9rem;
}

.form-group input,
.form-group select {
  padding: 0.8rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: var(--surface);
  outline: none;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--ring);
}

/* Form inputs */
.input, select, textarea {
  width: 100%; 
  padding: 10px 12px; 
  border-radius: 12px;
  border: 1px solid var(--border); 
  background: var(--surface); 
  outline: none;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 4px var(--ring); 
  border-color: var(--primary);
}

label { 
  font-size: .9rem; 
  color: var(--muted);
  font-weight: 500;
}

.row { 
  display: flex; 
  gap: 10px; 
  flex-wrap: wrap; 
  align-items: center; 
}

/* Select com scroll customizado */
#solistaRepertorio,
#tipoRepertorio,
#tipoRepertorioModal,
#numeroRepertorio {
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) #f1f1f1;
}

#solistaRepertorio::-webkit-scrollbar,
#tipoRepertorio::-webkit-scrollbar,
#tipoRepertorioModal::-webkit-scrollbar,
#numeroRepertorio::-webkit-scrollbar {
  width: 6px;
}

#solistaRepertorio::-webkit-scrollbar-track,
#tipoRepertorio::-webkit-scrollbar-track,
#tipoRepertorioModal::-webkit-scrollbar-track,
#numeroRepertorio::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

#solistaRepertorio::-webkit-scrollbar-thumb,
#tipoRepertorio::-webkit-scrollbar-thumb,
#tipoRepertorioModal::-webkit-scrollbar-thumb,
#numeroRepertorio::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}

#solistaRepertorio::-webkit-scrollbar-thumb:hover,
#tipoRepertorio::-webkit-scrollbar-thumb:hover,
#tipoRepertorioModal::-webkit-scrollbar-thumb:hover,
#numeroRepertorio::-webkit-scrollbar-thumb:hover {
  background: var(--primary-600);
}

/* Campo de busca para solistas */
.solista-search {
  position: relative;
  margin-bottom: 0.5rem;
}

.solista-search input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 2px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  transition: border-color 0.3s ease;
}

.solista-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.solista-search .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

/* Programming Section */
.programming-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.programming-section {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.programming-section h3 {
  color: var(--text);
  margin-bottom: 1rem;
  text-align: center;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
}

/* Repertório Items */
.repertorio-item {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--primary);
}

.repertorio-item h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.repertorio-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Estilos para Divisores */
.divisor-item {
  background: linear-gradient(135deg, #ecf0f1, #f8f9fa);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px dashed #bdc3c7;
  position: relative;
  overflow: hidden;
}

.divisor-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(45deg, #95a5a6, #7f8c8d);
}

.divisor-item.mensagem {
  border-left: 6px solid var(--danger);
  background: linear-gradient(135deg, #fdf2f2, #fef2f2);
}

.divisor-item.mensagem::before {
  background: linear-gradient(45deg, var(--danger), #c0392b);
}

.divisor-item.mensagem .divisor-icon {
  color: var(--danger);
}

.divisor-item.coleta {
  border-left: 6px solid var(--warning);
  background: linear-gradient(135deg, #fef9e7, #fef2e7);
}

.divisor-item.coleta::before {
  background: linear-gradient(45deg, var(--warning), #e67e22);
}

.divisor-item.coleta .divisor-icon {
  color: var(--warning);
}

.divisor-item.durante_reuniao {
  border-left: 6px solid #9b59b6;
  background: linear-gradient(135deg, #f4ecf7, #f2e7f4);
}

.divisor-item.durante_reuniao::before {
  background: linear-gradient(45deg, #9b59b6, #8e44ad);
}

.divisor-item.durante_reuniao .divisor-icon {
  color: #9b59b6;
}

.divisor-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.divisor-icon {
  font-size: 1.2rem;
  color: var(--muted);
}

.divisor-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.divisor-order {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: bold;
}

/* Drag handle para divisores */
.divisor-item .drag-handle {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.divisor-item:hover .drag-handle {
  opacity: 1;
}

/* Drag and drop para divisores */
.divisor-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.divisor-item.drag-over {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf1);
  border-color: var(--primary);
}

/* Tabelas */
table { 
  width: 100%; 
  border-collapse: collapse; 
  border-spacing: 0;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

th, td {
  padding: 10px; 
  border-bottom: 1px solid var(--border);
  text-align: left; 
  vertical-align: middle;
  transition: background-color 0.2s ease;
}

th { 
  font-size: .9rem; 
  color: var(--muted); 
  font-weight: 600; 
  background: #fafafa; 
}

tbody tr:hover td { 
  background: #fafbff; 
}

/* Table container */
.table-container {
  overflow-x: auto;
  margin-top: 2rem;
}

/* Filter section */
.filter-section {
  background: white;
  padding: 1.5rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

/* Badges */
.badge {
  display: inline-flex; 
  align-items: center; 
  gap: 6px;
  padding: 4px 10px; 
  border-radius: 999px; 
  font-size: .8rem;
  font-weight: 500;
}

.badge.success { 
  background-color: #dcfce7; 
  color: #166534; 
  border: 1px solid #bbf7d0; 
}

.badge.warn { 
  background-color: #fef3c7; 
  color: #92400e; 
  border: 1px solid #fde68a; 
}

.badge.danger { 
  background-color: #fee2e2; 
  color: #991b1b; 
  border: 1px solid #fecaca; 
}

.badge.muted { 
  background: #f3f4f6; 
  color: #374151; 
}

/* Status dots */
.status-dot { 
  display: inline-block; 
  width: 8px; 
  height: 8px; 
  border-radius: 50%; 
  margin-right: 6px; 
}

.status-dot.status-frequente { 
  background-color: var(--success); 
}

.status-dot.status-afastado { 
  background-color: var(--muted); 
}

.status-dot.status-licenca { 
  background-color: var(--warning); 
}

/* Toolbar */
.toolbar { 
  display: flex; 
  gap: 8px; 
  flex-wrap: wrap; 
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalShow 0.3s ease-out;
}

@keyframes modalShow {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: var(--danger);
}

dialog {
  border: none; 
  border-radius: 16px; 
  box-shadow: 0 20px 80px rgba(0, 0, 0, .2);
  width: min(680px, 92vw);
  padding: 2rem;
}

dialog::backdrop { 
  background: rgba(2, 6, 23, .45); 
}

/* Estatísticas e análise */
.stats-container { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); 
  gap: 16px; 
  margin: 20px 0; 
  padding: 16px; 
  background: #f8f9fa; 
  border-radius: 8px; 
  border: 1px solid var(--border); 
}

.stat-box { 
  text-align: center; 
  padding: 16px 12px; 
  background: white; 
  border-radius: 6px; 
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
  transition: transform 0.2s ease, box-shadow 0.2s ease; 
}

.stat-box:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
}

.stat-box strong { 
  display: block; 
  font-size: 28px; 
  color: var(--text); 
  margin-bottom: 6px; 
  font-weight: 700; 
}

.stat-box span { 
  font-size: 12px; 
  color: var(--muted); 
  text-transform: uppercase; 
  letter-spacing: 0.5px; 
  line-height: 1.2; 
}

/* Seção de análise */
.analysis-section { 
  margin-top: 30px; 
  padding: 24px; 
  background: linear-gradient(135deg, #f1f8ff 0%, #e6f3ff 100%); 
  border-radius: 12px; 
  border: 1px solid #c3dafe; 
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1); 
}

.analysis-section h3 { 
  margin-top: 0; 
  color: #1e40af; 
  font-size: 18px; 
  font-weight: 600; 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}

.analysis-controls { 
  display: grid; 
  grid-template-columns: 1fr 1fr auto; 
  gap: 16px; 
  align-items: end; 
  margin-bottom: 24px; 
}

.analysis-controls label { 
  display: block; 
  margin-bottom: 6px; 
  font-weight: 500; 
  color: #374151; 
  font-size: 14px; 
}

.analysis-results { 
  margin-top: 20px; 
  padding: 20px; 
  background: white; 
  border-radius: 8px; 
  border: 1px solid #d1d5db; 
}

.analysis-results h4 { 
  margin: 0 0 10px 0; 
  color: #1e40af; 
  font-size: 16px; 
  font-weight: 600; 
}

.analysis-results .muted { 
  font-size: 14px; 
  margin-bottom: 16px; 
  color: var(--muted); 
}

/* Tabela de análise de ausências */
#absenceAnalysisResult { 
  width: 100%; 
  margin-top: 16px; 
}

#absenceAnalysisResult th { 
  background-color: #f8fafc; 
  color: #374151; 
  font-weight: 600; 
  padding: 12px; 
  text-align: left; 
  border-bottom: 2px solid var(--border); 
}

#absenceAnalysisResult td { 
  padding: 12px; 
  border-bottom: 1px solid #f3f4f6; 
  vertical-align: top; 
}

#absenceAnalysisResult tr:hover { 
  background-color: #f9fafb; 
}

/* Linhas destacadas */
.highlight-row { 
  background-color: #fff3cd !important; 
  border-left: 4px solid var(--warning); 
}

.highlight-row td { 
  color: #856404; 
}

/* Tooltips */
[data-tooltip] { 
  position: relative; 
  cursor: help; 
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip); 
  position: absolute; 
  bottom: 100%; 
  left: 50%;
  transform: translateX(-50%); 
  padding: 6px 8px; 
  background: #1f2937; 
  color: white;
  font-size: 12px; 
  border-radius: 4px; 
  white-space: nowrap; 
  z-index: 1000;
}

[data-tooltip]:hover::before {
  content: ''; 
  position: absolute; 
  bottom: 94%; 
  left: 50%;
  transform: translateX(-50%); 
  border: 4px solid transparent; 
  border-top-color: #1f2937; 
  z-index: 1000;
}

/* Faltas excessivas */
.excessive-absences { 
  background-color: #ffebee !important; 
  border-left: 4px solid var(--danger); 
}

.excessive-absences td { 
  color: #c62828; 
  font-weight: 500; 
}

.excessive-absences:hover { 
  background-color: #ffcdd2 !important; 
}

/* =============================================
   LOADER / LOADING SPINNER - Global
   ============================================= */

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.loader-overlay.active {
  opacity: 1;
  visibility: visible;
}

.loader-content {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 300px;
  width: 90%;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-text {
  color: var(--text);
  font-weight: 600;
  margin: 0;
  font-size: 1rem;
}

.loader-subtext {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
}

/* Inline loader para botões */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

/* Loading state para modais */
.modal-loading {
  position: relative;
}

.modal-loading .modal-content,
.modal-loading dialog {
  pointer-events: none;
  opacity: 0.7;
}

.modal-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

/* Loading state para cards */
.card-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.card-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin: -15px 0 0 -15px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* =============================================
   FIM LOADER
   ============================================= */

/* Animações */
.fade-in { 
  animation: fadeIn 0.3s ease-in; 
}

@keyframes fadeIn { 
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  } 
  to { 
    opacity: 1; 
    transform: translateY(0); 
  } 
}

/* Kbd */
.kbd { 
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; 
  font-size: .8rem; 
  background: #111827; 
  color: #e5e7eb; 
  padding: 3px 6px; 
  border-radius: 6px; 
}

/* Footer */
footer { 
  padding: 24px 16px; 
  color: var(--muted); 
  text-align: center; 
}

footer a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--primary-600);
  text-decoration: underline;
}

/* Utilities */
.text-center { text-align: center; }
.mb-2 { margin-bottom: 1rem; }
.mt-2 { margin-top: 1rem; }
.hidden { display: none; }
.visible { display: block; }