/* Custom Styles for KS Trading Adda - Child Copy Trading Portal */

:root {
  --child-bg: #070b14;
  --child-card: #0d1626;
  --child-border: #1e304d;
  --child-accent: #06b6d4;
  --child-emerald: #10b981;
  --child-rose: #f43f5e;
  --child-amber: #f59e0b;
}

body {
  background-color: var(--child-bg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #f8fafc;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism styling */
.glass-panel {
  background: rgba(13, 22, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 48, 77, 0.6);
}

.glass-card {
  background: rgba(13, 22, 38, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 48, 77, 0.6);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 6px 24px -2px rgba(6, 182, 212, 0.1);
  transform: translateY(-1px);
}

.glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(6, 182, 212, 0.35);
  box-shadow: 0 0 25px rgba(6, 182, 212, 0.12);
}

/* Metric Card Beautification */
.metric-card {
  position: relative;
  background: linear-gradient(180deg, rgba(16, 27, 46, 0.85) 0%, rgba(10, 16, 28, 0.95) 100%);
  border: 1px solid rgba(30, 48, 77, 0.7);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 8px 30px -4px rgba(6, 182, 212, 0.15);
  transform: translateY(-2px);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  border-radius: 9999px;
  opacity: 0.8;
}

.metric-card-pnl::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
}

.metric-card-funds::before {
  background: linear-gradient(90deg, transparent, rgba(6, 182, 212, 0.8), transparent);
}

.metric-card-util::before {
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.8), transparent);
}

.metric-card-pos::before {
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.8), transparent);
}

.metric-card-orders::before {
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.8), transparent);
}

.metric-card-health::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.8), transparent);
}

/* Pulsing status dot */
.pulse-green {
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-dot {
  animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.pulse-amber {
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  animation: pulseAmber 2s infinite;
}

@keyframes pulseAmber {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070b14;
}
::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Subtle card hover glow */
.card-hover {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.card-hover:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.5), 0 0 12px rgba(6, 182, 212, 0.1);
}

/* Tick-by-tick price flash animations */
.flash-tick-up {
  color: #10b981 !important;
  text-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
  transition: all 0.15s ease-out;
}

.flash-tick-down {
  color: #f43f5e !important;
  text-shadow: 0 0 12px rgba(244, 63, 94, 0.8);
  transition: all 0.15s ease-out;
}

