/* Geny-Bitácora Custom Dark Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #0B0E14;
  --bg-card: #151A23;
  --bg-card-hover: #1C2330;
  --border-color: #232D3F;
  --accent-green: #10B981;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-red: #EF4444;
  --accent-red-bg: rgba(239, 68, 68, 0.12);
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;
  --accent-amber: #F59E0B;
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  overflow-x: hidden;
}

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

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0B0E14;
}

::-webkit-scrollbar-thumb {
  background: #232D3F;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #374151;
}

/* Glow effects */
.glow-green {
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}

.glow-red {
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.glow-blue {
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Card glass effect */
.card-glass {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  transition: all 0.2s ease-in-out;
}

.card-glass:hover {
  border-color: rgba(59, 130, 246, 0.4);
}

/* Tab Active Styles */
.nav-tab.active {
  background-color: #1F2937;
  color: #60A5FA;
  border-bottom: 2px solid #3B82F6;
}

/* Badge Styles */
.badge-win {
  background-color: var(--accent-green-bg);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-loss {
  background-color: var(--accent-red-bg);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-neutral {
  background-color: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

/* Pulse animation for live sync status */
@keyframes pulse-live {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

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

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.5rem;
}

.calendar-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
  background-color: #121721;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.calendar-cell:hover {
  transform: translateY(-2px);
  border-color: #3B82F6;
  z-index: 10;
}

.calendar-cell.day-green {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: rgba(16, 185, 129, 0.4);
}

.calendar-cell.day-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: rgba(239, 68, 68, 0.4);
}

/* Modal styling */
.modal-overlay {
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

/* Privacy / Presentation Mode (Hide Sensitive Numbers & Balances) */
body.privacy-mode .privacy-blur {
  filter: blur(7px) !important;
  user-select: none !important;
  transition: filter 0.2s ease-in-out;
}

body.privacy-mode .privacy-blur:hover {
  filter: blur(7px) !important;
}

body.privacy-mode .privacy-hide {
  display: none !important;
}

body.privacy-mode .privacy-text-mask {
  font-family: monospace;
  letter-spacing: 1px;
}

/* Privacy blur for chart elements */
body.privacy-mode #chart-equity-curve .apexcharts-yaxis-texts-custom,
body.privacy-mode #chart-equity-curve .apexcharts-yaxis-label,
body.privacy-mode #chart-equity-curve .apexcharts-tooltip,
body.privacy-mode #chart-daily-pnl .apexcharts-yaxis-label,
body.privacy-mode #chart-daily-pnl .apexcharts-tooltip {
  filter: blur(5px) !important;
}

