/* ===========================
   Sistema de Ponto Eletrônico
   Design Profissional e Moderno
   =========================== */

:root {
  /* Modern Professional Palette */
  --primary: #4F46E5;
  /* Indigo 600 */
  --primary-dark: #3730A3;
  /* Indigo 800 */
  --primary-light: #818CF8;
  /* Indigo 400 */
  --accent: #0EA5E9;
  /* Sky 500 */

  --success: #10B981;
  --danger: #EF4444;
  --warning: #F59E0B;
  --info: #3B82F6;

  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #F1F5F9;
  min-height: 100vh;
  color: var(--gray-800);
  line-height: 1.6;
}

.app-container {
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  min-height: 100vh;
  box-shadow: var(--shadow-xl);
}

/* ===========================
   Tela Inicial
   =========================== */
.tela-inicial {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: radial-gradient(circle at top right, #4338ca, #1e1b4b);
  background-image:
    radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.33) 0px, transparent 50%),
    radial-gradient(at 98% 1%, rgba(229, 64, 64, 0.33) 0px, transparent 50%),
    linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
}

.inicial-content {
  max-width: 800px;
  width: 100%;
  text-align: center;
}

.logo-section {
  margin-bottom: 3rem;
  color: white;
}

.logo-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.logo-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  font-weight: 300;
}

.menu-opcoes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.opcao-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.opcao-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.opcao-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: 0.5s;
}

.opcao-card:hover::before {
  left: 100%;
}

.opcao-icon {
  font-size: 3.5rem;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.opcao-content {
  flex: 1;
  text-align: left;
}

.opcao-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
}

.opcao-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.opcao-arrow {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.opcao-card:hover .opcao-arrow {
  transform: translateX(8px);
  color: white;
}

.status-footer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.status-item {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.status-item.ok {
  background: rgba(16, 185, 129, 0.3);
}

.status-item.warn {
  background: rgba(245, 158, 11, 0.3);
}

/* ===========================
   Telas de Conteúdo
   =========================== */
.tela-conteudo {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.btn-voltar {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s;
  backdrop-filter: blur(10px);
}

.btn-voltar:hover {
  background: rgba(255, 255, 255, 0.3);
}

.admin-nav {
  display: flex;
  background: white;
  border-bottom: 2px solid var(--gray-200);
  padding: 0 1rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.admin-nav-btn {
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.admin-nav-btn:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.admin-nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--gray-50);
}

.admin-tab {
  display: none;
}

.admin-tab.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ===========================
   Header
   =========================== */
.app-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.app-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.header-status {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.status-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.status-badge.ok {
  background: rgba(16, 185, 129, 0.3);
}

.status-badge.warn {
  background: rgba(245, 158, 11, 0.3);
}

/* ===========================
   Navigation
   =========================== */
.main-nav {
  display: flex;
  background: white;
  border-bottom: 2px solid var(--gray-200);
  padding: 0 1rem;
  gap: 0.5rem;
  overflow-x: auto;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--gray-600);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.nav-btn:hover {
  color: var(--primary);
  background: var(--gray-50);
}

.nav-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: var(--gray-50);
}

.nav-icon {
  font-size: 1.25rem;
}

/* ===========================
   Main Content
   =========================== */
.main-content {
  padding: 2rem;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   Cards
   =========================== */
.card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  border: 1px solid var(--gray-200);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-success:hover {
  background: #059669;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: #dc2626;
}

.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
}

.btn-secondary {
  background: var(--gray-200);
  color: var(--gray-700);
}

.btn-secondary:hover {
  background: var(--gray-300);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.controls {
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

/* ===========================
   Camera
   =========================== */
.camera-container {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0 auto 1.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--gray-900);
}

.camera-container video,
.camera-container canvas {
  width: 100%;
  height: auto;
  display: block;
}

.camera-container canvas {
  position: absolute;
  top: 0;
  left: 0;
}

.camera-container-small {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 1rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--gray-900);
}

.camera-container-small video,
.camera-container-small canvas {
  width: 100%;
  height: auto;
  display: block;
}

.recognition-result {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1.1rem;
  backdrop-filter: blur(10px);
}

/* ===========================
   Batida Buttons
   =========================== */
.batida-buttons {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.sugestao-text {
  text-align: center;
  margin-bottom: 1rem;
  color: var(--gray-600);
  font-weight: 500;
}

.batida-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.btn-batida {
  padding: 1.5rem 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-lg);
  background: white;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.btn-batida:hover:not(:disabled) {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.btn-batida:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-batida.sugerido {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.btn-entrada {
  border-color: #10b981;
}

.btn-intervalo-inicio {
  border-color: #f59e0b;
}

.btn-intervalo-fim {
  border-color: #06b6d4;
}

.btn-saida {
  border-color: #ef4444;
}

.btn-extra {
  border-color: #8b5cf6;
}

.batida-icon {
  font-size: 2rem;
}

.batida-label {
  font-size: 0.9rem;
}

/* ===========================
   Forms
   =========================== */
.form-cadastro {
  max-width: 900px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--gray-700);
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input[readonly] {
  background: var(--gray-100);
  cursor: not-allowed;
}

.biometria-section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.biometria-section h3 {
  margin-bottom: 1rem;
  color: var(--gray-800);
}

.biometria-controls {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
  flex-wrap: wrap;
}

.biometria-info {
  display: flex;
  gap: 2rem;
  margin-top: 1rem;
  color: var(--gray-600);
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ===========================
   Tables
   =========================== */
.table-container {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.data-table thead {
  background: var(--gray-50);
}

.data-table th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-weight: 600;
  color: var(--gray-500);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  font-size: 0.95rem;
}

.data-table tbody tr:hover {
  background: var(--gray-50);
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.loading {
  text-align: center;
  padding: 3rem !important;
  color: var(--gray-500);
}

/* ===========================
   Filtros
   =========================== */
.filtros-panel {
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.filtros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.filtros-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ===========================
   Messages
   =========================== */
.message {
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 1rem;
  font-weight: 500;
}

.message.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.message.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

.message.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.message.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .app-header {
    padding: 1rem;
  }

  .app-header h1 {
    font-size: 1.25rem;
  }

  .main-content {
    padding: 1rem;
  }

  .card {
    padding: 1.5rem;
  }

  .batida-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ===========================
   Espelho de Ponto
   =========================== */
.espelho-container {
  margin-top: 2rem;
}

.espelho-header {
  margin-bottom: 1.5rem;
}

.espelho-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.estatisticas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.estatistica-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.estatistica-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.estatistica-card h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.estatistica-card .valor {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gray-900);
}

.estatistica-card.success .valor {
  color: var(--success);
}

.estatistica-card.warning .valor {
  color: var(--warning);
}

.estatistica-card.danger .valor {
  color: var(--danger);
}

/* ===========================
   Configurações
   =========================== */
.config-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--gray-200);
}

.config-section:last-child {
  border-bottom: none;
}

.config-section h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--gray-800);
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--primary);
}

.config-section small {
  display: block;
  margin-top: 0.25rem;
  color: var(--gray-500);
  font-size: 0.875rem;
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.weekday-grid label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--gray-50);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.weekday-grid label:hover {
  background: var(--gray-100);
}

.weekday-grid label:has(input[type="checkbox"]:checked) {
  background: var(--primary);
  color: white;
}

.weekday-grid input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.turnos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.turno-card {
  background: var(--gray-50);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-200);
}

.turno-card h4 {
  margin-bottom: 1rem;
  color: var(--gray-800);
  font-size: 1.1rem;
}

/* ===========================
   Relatórios
   =========================== */
.relatorio-container {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
}

.relatorio-container h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.relatorio-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.relatorio-item {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.relatorio-item h4 {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.relatorio-item .valor {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* ===========================
   Utilities
   =========================== */
.header-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

/* ===========================
   Modals
   =========================== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  box-shadow: var(--shadow-xl);
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Table Buttons */
.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  margin-left: 0.25rem;
  transition: opacity 0.2s;
}

.btn-small:hover {
  opacity: 0.8;
}

.btn-edit {
  background: var(--warning);
  color: white;
}

.btn-delete {
  background: var(--danger);
  color: white;
}

/* Toggle Mode */
.toggle-mode {
    cursor: pointer;
}
.toggle-mode input {
    display: none;
}
.mode-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    background: var(--gray-200);
    color: var(--gray-600);
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}
.toggle-mode input:checked + .mode-btn {
    background: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Modal Search */
#searchFuncRec {
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  width: 100%;
}
#searchFuncRec:focus {
  border-color: var(--primary);
  outline: none;
}

.func-item-rec:hover {
    background-color: var(--gray-50);
}