/* ==========================================================================
   ESTILOS KOD CONT - BASADO EN LA IDENTIDAD VISUAL DE SPEEDEE
   ========================================================================== */

:root {
  --primary-color: #3b82f6;
  --primary-hover: #2563eb;
  --bg-dark-radial: radial-gradient(circle at top right, #1e1b4b 0%, #0f172a 60%, #020617 100%);
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --border-color: rgba(226, 232, 240, 0.8);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc !important;
  min-height: 100vh;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.97); }
}

.animate-fade-in {
  animation: fadeIn 0.35s ease-out forwards;
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* Filter White for Logos */
.filter-white {
  filter: brightness(0) invert(1);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Top Progress Bar & Floating Pill */
.global-ajax-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 10000;
  background-color: transparent;
}
.global-ajax-progress-track {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #10b981);
  animation: ajaxTrackAnim 1.2s infinite linear;
}
@keyframes ajaxTrackAnim {
  0% { transform: translateX(-100%); width: 30%; }
  50% { transform: translateX(30%); width: 60%; }
  100% { transform: translateX(100%); width: 30%; }
}

.global-ajax-pill {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 10px 18px;
  border-radius: 50px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* View: Login */
#view-login {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-dark-radial);
}

#view-login.d-none {
  display: none !important;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background-color: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cards & Dashboards */
.card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.metric-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.08);
}

.metric-icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

/* Tablas Contables */
.table-accounting {
  font-size: 0.875rem;
}
.table-accounting th {
  background-color: #f8fafc;
  font-weight: 600;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
  white-space: nowrap;
}
.table-accounting td {
  vertical-align: middle;
}
.table-accounting .currency-cell {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: monospace, monospace;
}

.badge-tag {
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* Hub Access Cards */
.hub-card {
  transition: all 0.25s ease;
  cursor: pointer;
}
.hub-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

/* Tree & Account Details */
.account-code {
  font-family: monospace, monospace;
  font-weight: 600;
  color: #2563eb;
}

