/* StockPulse modern skin (injected, does not alter app logic) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root:not([data-theme]), [data-theme="dark"] {
  --bg-primary: #060a14;
  --bg-secondary: #0a1020;
  --bg-card: #0d1424;
  --bg-card-hover: #121c30;
  --border-color: rgba(148,163,184,0.14);
  --text-primary: #e8ecf4;
  --text-secondary: #b4bccb;
  --text-muted: #7a8499;
  --accent: #00e6a8;
  --accent-strong: #00e6a8;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* smoother scrollbars */
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: rgba(148,163,184,0.25); border-radius: 999px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(148,163,184,0.4); }

/* selection */
::selection { background: rgba(0,230,168,0.25); color: #fff; }

/* card depth */
[class*="rounded"][class*="border"] {
  box-shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.25);
}

/* buttons */
button, a[class*="bg-"] {
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
button:hover, a[class*="bg-"]:hover { transform: translateY(-1px); }

/* focus rings */
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid rgba(0,230,168,0.45);
  outline-offset: 2px;
}

/* subtle glass header */
header { backdrop-filter: blur(10px); }

/* nicer tables */
table { border-collapse: separate; border-spacing: 0; }
th { font-weight: 600; letter-spacing: .02em; }

/* Mobile optimizations */
@media (max-width: 768px) {
  html { font-size: 15px; }
  body { overflow-x: hidden; }
  /* larger tap targets */
  button, a, input, select, textarea { min-height: 44px; }
  /* prevent horizontal overflow on tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  /* sidebar collapse helper (if app uses fixed sidebar) */
  aside, [class*="sidebar"], [class*="Sidebar"] {
    width: 100% !important; max-width: 100% !important;
    position: relative !important;
  }
  /* modal/dialog full width */
  [role="dialog"] { width: 95vw !important; max-width: 95vw !important; }
  /* reduce heavy blur on mobile for performance */
  .backdrop-blur, [class*="backdrop-blur"] { backdrop-filter: none !important; }
  /* grid to single column */
  [class*="grid-cols-2"], [class*="grid-cols-3"], [class*="grid-cols-4"] {
    grid-template-columns: 1fr !important;
  }
  /* flex containers wrap */
  [class*="flex-nowrap"] { flex-wrap: wrap !important; }
  /* reduce padding */
  .p-6, .p-8 { padding: 12px !important; }
  .gap-6, .gap-8 { gap: 8px !important; }
  /* cards full width */
  [class*="max-w-"] { max-width: 100% !important; }
  /* prevent text overflow */
  * { word-wrap: break-word; overflow-wrap: break-word; }
  /* chart containers */
  canvas { max-width: 100% !important; }
  /* fixed positioning adjustments */
  [style*="position:fixed"] { max-width: 100vw; }
}
@media (max-width: 480px) {
  html { font-size: 14px; }
  /* even smaller padding */
  .p-4, .p-3 { padding: 8px !important; }
  /* hide less critical elements */
  .hidden-mobile { display: none !important; }
}
/* Touch-friendly scrolling */
* { -webkit-overflow-scrolling: touch; }
/* Prevent text size adjust on orientation change */
html { -webkit-text-size-adjust: 100%; }
