/* ==========================================================================
   GRUPO WKM - RH, DOCUMENTAÇÃO & ESCALAS (DESIGN SYSTEM CORPORATIVO MOBILE-FIRST)
   ========================================================================== */

:root {
  --wkm-bg-main: #070B12;
  --wkm-bg-surface: #0C1320;
  --wkm-bg-card: #111B2E;
  --wkm-bg-elevated: #17243D;
  --wkm-border-subtle: rgba(148, 163, 184, 0.12);
  --wkm-border-card: rgba(148, 163, 184, 0.18);
  --wkm-border-hover: rgba(217, 119, 6, 0.50);
  --wkm-accent-brass: #D97706;
  --wkm-accent-amber: #F59E0B;
  --wkm-text-primary: #F8FAFC;
  --wkm-text-secondary: #94A3B8;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.role-hidden {
  display: none !important;
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--wkm-bg-main);
  color: var(--wkm-text-primary);
  min-height: 100vh;
}

.font-mono,
.tabular-nums {
  font-family: 'JetBrains Mono', monospace !important;
  font-variant-numeric: tabular-nums;
}

/* Previne zoom automático no iOS em inputs */
@media screen and (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

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

.animate-fade-in {
  animation: wkmFadeIn 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.wkm-card {
  background: var(--wkm-bg-card);
  border: 1px solid var(--wkm-border-card);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.wkm-card:hover {
  border-color: var(--wkm-border-hover);
}

.wkm-input {
  width: 100%;
  background: #070B12;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: #F8FAFC;
  font-size: 0.875rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wkm-input:focus {
  outline: none;
  border-color: #F59E0B;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.wkm-input::placeholder {
  color: #64748B;
}

/* Scrollbar corporativa */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: #334155 #0C1320;
}

.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #0C1320;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #D97706;
}

.no-scrollbar::-webkit-scrollbar {
  display: none !important;
}
.no-scrollbar {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}

/* Navegação Sidebar */
.wkm-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 0.85rem;
  border-radius: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #94A3B8;
  border-left: 3px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}

.wkm-nav-btn:hover {
  color: #F8FAFC;
  background-color: var(--wkm-bg-card);
}

.wkm-nav-btn[data-active="true"] {
  background-color: rgba(217, 119, 6, 0.14);
  color: #FBBF24;
  font-weight: 700;
  border-left-color: #F59E0B;
}

/* Chips de Filtro Mobile */
.wkm-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.78rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  background: var(--wkm-bg-surface);
  color: #94A3B8;
  border: 1px solid var(--wkm-border-card);
  transition: all 0.15s ease;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  touch-action: manipulation;
}

.wkm-filter-chip:active {
  transform: scale(0.96);
}

.wkm-filter-chip.active {
  background: rgba(217, 119, 6, 0.18);
  color: #FBBF24;
  border-color: rgba(245, 158, 11, 0.55);
}

/* Botão Corporativo Brass/Ouro */
.btn-gold-premium {
  background: linear-gradient(180deg, #F59E0B 0%, #D97706 100%);
  color: #070B12;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  transition: filter 0.15s ease, transform 0.15s ease;
  touch-action: manipulation;
  cursor: pointer;
}

.btn-gold-premium:hover:not(:disabled) {
  filter: brightness(1.07);
}

.btn-gold-premium:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-gold-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Barra Inferior Mobile */
.wkm-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 600;
  color: #94A3B8;
  padding: 0.4rem 0.5rem;
  border-radius: 0.65rem;
  transition: all 0.15s ease;
  min-width: 3.7rem;
  touch-action: manipulation;
  cursor: pointer;
}

.wkm-bottom-nav-item.active {
  color: #FBBF24;
  font-weight: 800;
  background: rgba(217, 119, 6, 0.14);
}

.wkm-bottom-nav-item i {
  font-size: 1.05rem;
}

/* Badges Semânticas */
.badge-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}
.badge-amber {
  background: rgba(217, 119, 6, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.38);
}
.badge-orange {
  background: rgba(249, 115, 22, 0.16);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.38);
}
.badge-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #FB7185;
  border: 1px solid rgba(244, 63, 94, 0.38);
}
.badge-sky {
  background: rgba(14, 165, 233, 0.14);
  color: #38BDF8;
  border: 1px solid rgba(14, 165, 233, 0.35);
}
.badge-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #A78BFA;
  border: 1px solid rgba(139, 92, 246, 0.35);
}
.badge-slate {
  background: rgba(148, 163, 184, 0.12);
  color: #CBD5E1;
  border: 1px solid rgba(148, 163, 184, 0.28);
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.14);
  color: #22D3EE;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

/* Bordas laterais de alerta */
.border-alert-rose { border-left: 3.5px solid #F43F5E !important; }
.border-alert-orange { border-left: 3.5px solid #F97316 !important; }
.border-alert-amber { border-left: 3.5px solid #F59E0B !important; }
.border-alert-emerald { border-left: 3.5px solid #10B981 !important; }
.border-alert-sky { border-left: 3.5px solid #38BDF8 !important; }

/* Date input dark styling */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(0.85) sepia(0.2) saturate(2) hue-rotate(10deg);
  cursor: pointer;
}
