/* Atisel Security Gatekeeper - High Contrast Ultra-Premium Dark Styling */
:root {
  --bg-dark: #090d16;
  --bg-card: rgba(15, 23, 42, 0.94);
  --border-card: rgba(56, 189, 248, 0.22);
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-green: #10b981;
  --accent-red: #f43f5e;
  --accent-amber: #fbbf24;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  min-height: 100vh;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(6, 182, 212, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 90% 80%, rgba(59, 130, 246, 0.12) 0%, transparent 45%);
}

.navbar-atisel {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-card);
  padding: 1rem 1.5rem;
}

.brand-badge {
  background: linear-gradient(135deg, #38bdf8, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
}

.sub-header-text {
  color: #94a3b8 !important;
  font-size: 1.05rem;
  font-weight: 500;
}

.gatekeeper-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.gatekeeper-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(56, 189, 248, 0.15);
}

.badge-os {
  font-size: 0.88rem;
  padding: 0.45rem 0.85rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.2px;
}

.badge-os-windows { background: rgba(59, 130, 246, 0.2); color: #93c5fd; border: 1px solid rgba(59, 130, 246, 0.4); }
.badge-os-mac { background: rgba(248, 250, 252, 0.18); color: #ffffff; border: 1px solid rgba(248, 250, 252, 0.4); }
.badge-os-linux { background: rgba(245, 158, 11, 0.2); color: #fde047; border: 1px solid rgba(245, 158, 11, 0.4); }
.badge-os-android { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-os-ios { background: rgba(168, 85, 247, 0.2); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.4); }

.meta-info-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 1.2rem;
}

.meta-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.meta-label {
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-value {
  color: #ffffff;
  font-weight: 700;
}

.token-duration-select {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #38bdf8;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.token-duration-select:focus {
  background: #0f172a;
  color: #ffffff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 0.25rem rgba(56, 189, 248, 0.3);
}

.btn-approve {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 1.3rem;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
}

.btn-approve:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.btn-reject {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 10px;
  padding: 0.65rem 1.1rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-reject:hover {
  background: rgba(244, 63, 94, 0.3);
  color: #ffffff;
}

/* Nav Tabs High Contrast */
.nav-pills .nav-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.nav-pills .nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.nav-pills .nav-link.active {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

/* Dashboard KPIs & Systems Grid */
.kpi-card-atisel {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.kpi-card-atisel:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.5);
}
.kpi-val {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.kpi-lbl {
  font-size: 0.82rem;
  color: #94a3b8;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.system-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}
.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #38bdf8, #2563eb);
}

.progress-atisel {
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}
.progress-bar-atisel {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  border-radius: 10px;
  transition: width 0.4s ease;
}

/* ==========================================================================
   MOBILE APP SHELL & ONE-THUMB UX (PANTALLAS REDUCIDAS < 992PX)
   ========================================================================== */
@media (max-width: 991.98px) {
  body {
    padding-bottom: 80px !important;
  }
  
  .navbar-atisel {
    padding: 0.75rem 1rem;
  }

  .brand-badge {
    font-size: 1.15rem;
  }

  /* Pestañas Swipeables */
  .nav-pills#gatekeeperTabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 1.25rem !important;
  }
  .nav-pills#gatekeeperTabs .nav-item {
    flex: 0 0 auto;
  }
  .nav-pills#gatekeeperTabs .nav-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    white-space: nowrap;
  }

  /* Dock Inferior Flotante Móvil */
  #mobileGatekeeperDock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    z-index: 10000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.6);
  }

  .dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 700;
    width: 20%;
    height: 100%;
    transition: color 0.2s ease;
    border: none;
    background: transparent;
  }
  .dock-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .dock-btn.active, .dock-btn:hover {
    color: #38bdf8;
  }

  /* Tarjetas Móviles Táctiles */
  .mobile-touch-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 0.85rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
  }
  
  .btn-touch-lg {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 12px;
  }
}

@media (min-width: 992px) {
  #mobileGatekeeperDock {
    display: none !important;
  }
}
