/* ==============================================================================
   NARPAVI ROBOT - EXECUTIVE DASHBOARD CSS STYLESHEET
   Clean Glassmorphic Theme with Neon Accents & Mobile App Optimizations
   ============================================================================== */

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

body {
  background-color: #060911;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
  color: #F1F5F9;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding-bottom: 95px;
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Allow text selection only inside tables and data spans */
td, th, span.font-mono, code {
  user-select: text;
  -webkit-user-select: text;
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.6);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.glass-nav {
  background: rgba(6, 9, 17, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Neon Glow Accents */
.glow-emerald {
  box-shadow: 0 0 25px -3px rgba(16, 185, 129, 0.35);
}

.glow-cyan {
  box-shadow: 0 0 25px -3px rgba(6, 182, 212, 0.35);
}

.glow-amber {
  box-shadow: 0 0 25px -3px rgba(245, 158, 11, 0.35);
}

.glow-rose {
  box-shadow: 0 0 25px -3px rgba(244, 63, 94, 0.35);
}

.glow-violet {
  box-shadow: 0 0 25px -3px rgba(139, 92, 246, 0.35);
}

/* Custom Sleek Scrollbars */
.custom-scroll::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: rgba(11, 15, 26, 0.5);
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
}

.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.35);
}

/* Animation Keyframes */
@keyframes pulse-subtle {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

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

.bounce-up {
  /* animation removed - static badge */
}

.bounce-down {
  /* animation removed - static badge */
}

.tab-btn.active {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.25), rgba(16, 185, 129, 0.25));
  border-color: rgba(6, 182, 212, 0.5);
  color: #38BDF8;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.25);
}

.nav-btn.active {
  color: #F59E0B !important;
}

.nav-btn.active svg, .nav-btn.active i {
  filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.8));
  transform: translateY(-2px);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.animate-shake {
  animation: shake 0.35s ease-in-out;
}

/* Quick Filter Active Pills in Trade Journal */
.quick-pill-active {
  background-color: rgba(6, 182, 212, 0.25) !important;
  border-color: rgba(6, 182, 212, 0.5) !important;
  color: #38BDF8 !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2) !important;
}

/* ==============================================================================
   CYBER HACKER VAULT LOGIN STYLES & ANIMATIONS
   ============================================================================== */

@keyframes cyber-glow-pulse {
  0%, 100% {
    box-shadow: 
      0 0 25px -3px rgba(6, 182, 212, 0.45),
      0 0 50px -10px rgba(16, 185, 129, 0.25),
      inset 0 0 20px rgba(6, 182, 212, 0.12);
    border-color: rgba(6, 182, 212, 0.5);
  }
  33% {
    box-shadow: 
      0 0 30px -3px rgba(139, 92, 246, 0.5),
      0 0 60px -10px rgba(6, 182, 212, 0.3),
      inset 0 0 25px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.6);
  }
  66% {
    box-shadow: 
      0 0 30px -3px rgba(16, 185, 129, 0.5),
      0 0 60px -10px rgba(245, 158, 11, 0.25),
      inset 0 0 25px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.6);
  }
}

.cyber-hacker-card {
  position: relative;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid rgba(6, 182, 212, 0.45);
  animation: cyber-glow-pulse 6s infinite ease-in-out;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Subtle laser scanning line effect */
.cyber-scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #06B6D4 30%, #10B981 50%, #F59E0B 70%, transparent);
  box-shadow: 0 0 10px #06B6D4;
  opacity: 0.85;
  pointer-events-none;
  animation: cyber-scan 3.2s linear infinite;
  z-index: 20;
}

@keyframes cyber-scan {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 0.9; }
  85% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

/* Cyber Corner HUD Brackets */
.cyber-corner {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events-none;
  z-index: 20;
}
.cyber-corner-tl { top: 6px; left: 6px; border-top: 2px solid #06B6D4; border-left: 2px solid #06B6D4; }
.cyber-corner-tr { top: 6px; right: 6px; border-top: 2px solid #06B6D4; border-right: 2px solid #06B6D4; }
.cyber-corner-bl { bottom: 6px; left: 6px; border-bottom: 2px solid #06B6D4; border-left: 2px solid #06B6D4; }
.cyber-corner-br { bottom: 6px; right: 6px; border-bottom: 2px solid #06B6D4; border-right: 2px solid #06B6D4; }

/* Premium Cyber Hacker Keypad Buttons */
.cyber-keypad-btn {
  background: linear-gradient(145deg, rgba(13, 22, 44, 0.85) 0%, rgba(6, 11, 25, 0.95) 100%);
  border: 1px solid rgba(6, 182, 212, 0.28);
  border-radius: 0.75rem;
  color: #F8FAFC;
  box-shadow: 0 4px 10px -2px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.12);
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cyber-keypad-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.6), transparent);
}
.cyber-keypad-btn:hover {
  background: linear-gradient(145deg, rgba(6, 182, 212, 0.22) 0%, rgba(13, 22, 44, 0.95) 100%);
  border-color: rgba(6, 182, 212, 0.8);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.5), inset 0 0 10px rgba(6, 182, 212, 0.25);
  color: #38BDF8;
  transform: translateY(-1.5px);
}
.cyber-keypad-btn:active {
  transform: scale(0.94);
  background: rgba(16, 185, 129, 0.35);
  border-color: #10B981;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}

.cyber-keypad-btn.btn-clear {
  border-color: rgba(244, 63, 94, 0.35);
  color: #FB7185;
}
.cyber-keypad-btn.btn-clear:hover {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.25) 0%, rgba(13, 22, 44, 0.95) 100%);
  border-color: rgba(244, 63, 94, 0.8);
  box-shadow: 0 0 18px rgba(244, 63, 94, 0.5), inset 0 0 10px rgba(244, 63, 94, 0.2);
  color: #FDA4AF;
}

.cyber-keypad-btn.btn-backspace {
  border-color: rgba(245, 158, 11, 0.35);
  color: #FBBF24;
}
.cyber-keypad-btn.btn-backspace:hover {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.25) 0%, rgba(13, 22, 44, 0.95) 100%);
  border-color: rgba(245, 158, 11, 0.8);
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.5), inset 0 0 10px rgba(245, 158, 11, 0.2);
  color: #FDE68A;
}

/* Cyber Red Alert Glitch */
@keyframes cyber-alert {
  0%, 100% {
    border-color: rgba(244, 63, 94, 0.8);
    box-shadow: 0 0 35px rgba(244, 63, 94, 0.6), inset 0 0 25px rgba(244, 63, 94, 0.2);
  }
  50% {
    border-color: rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.3);
  }
}
.cyber-card-alert {
  animation: cyber-alert 0.3s ease-in-out infinite, shake 0.35s ease-in-out !important;
}

/* ==============================================================================
   NATIVE MOBILE APP & CYBER HACKER DESIGN SYSTEM
   Standardized Inputs, Non-overlapping Controls, Card-type Lists & Sleek Nav
   ============================================================================== */

/* Standardized Cyber Dropdown Controls (Uniform Height, Font, Glowing Focus) */
.cyber-select {
  height: 38px;
  background: rgba(11, 15, 26, 0.92);
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 0.75rem;
  color: #38bdf8;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 1.9rem 0 0.75rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2306B6D4' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cyber-select:hover {
  border-color: rgba(6, 182, 212, 0.65);
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.25);
}

.cyber-select:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4), inset 0 0 8px rgba(0, 240, 255, 0.15);
}

/* Standardized Cyber Text/Search Input */
.cyber-input {
  height: 38px;
  background: rgba(11, 15, 26, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  color: #f8fafc;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  padding: 0 0.85rem 0 2.2rem;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

.cyber-input:focus {
  outline: none;
  border-color: #00f0ff;
  box-shadow: 0 0 18px rgba(0, 240, 255, 0.4), inset 0 0 8px rgba(0, 240, 255, 0.15);
}

/* Mobile Card-Type Trade Ledger Items */
.trade-card {
  background: rgba(11, 15, 26, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  padding: 0.85rem 0.95rem;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.trade-card:active {
  transform: scale(0.985);
}

.trade-card.win {
  border-left: 4px solid #10b981;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(16, 185, 129, 0.05);
}

.trade-card.loss {
  border-left: 4px solid #f43f5e;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.6), inset 0 0 15px rgba(244, 63, 94, 0.05);
}

/* Native Mobile App Bottom Navigation Bar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(6, 9, 17, 0.95);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(6, 182, 212, 0.25);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75);
  padding: 0.45rem 1rem max(0.55rem, env(safe-area-inset-bottom));
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.68rem;
  font-weight: 800;
  color: #64748b;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  padding: 0.35rem 0.85rem;
  border-radius: 0.75rem;
}

.mobile-nav-item.active {
  color: #00f0ff !important;
  background: rgba(6, 182, 212, 0.12);
}

.mobile-nav-item.active i, .mobile-nav-item.active svg {
  filter: drop-shadow(0 0 8px #00f0ff);
  transform: scale(1.15);
  color: #00f0ff !important;
}

.mobile-nav-item.active::before {
  content: '';
  position: absolute;
  top: -0.45rem;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff, #10b981);
  border-radius: 9999px;
  box-shadow: 0 0 10px #00f0ff, 0 0 20px #00f0ff;
}

/* Colorful Hacker Glowing Badges */
.badge-neon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(6, 182, 212, 0.4);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.badge-neon-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.badge-neon-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.badge-neon-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.badge-neon-violet {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  border: 1px solid rgba(139, 92, 246, 0.4);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.15);
}

/* Fix Tamil font vertical clipping for upper and lower diacritics & force single line */
.font-tamil {
  font-family: 'Noto Sans Tamil', 'Plus Jakarta Sans', sans-serif !important;
  line-height: 1.4 !important;
  overflow: visible !important;
  white-space: nowrap !important;
  display: inline-block;
}

/* Ensure no unwanted top margins on tab sections */
#tab-content-hud,
#tab-content-analytics,
#tab-content-journal,
#stocks-tab-content-hud,
#stocks-tab-content-analytics,
#stocks-tab-content-journal {
  margin-top: 0 !important;
}


