/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap";

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --bg-app: #ffffff;
  --bg-panel: #fafafa;
  --border: #e5e5e5;
  --text-primary: #171717;
  --text-secondary: #737373;
  --input-bg: #fff;
  --success: #10b981;
  --error: #ef4444;
}

body.dark {
  --bg-app: #0a0e14; /* Deeper navy/charcoal */
  --bg-panel: #111821; 
  --border: #1e293b;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --input-bg: #0f172a;
  --primary-glow: rgba(79, 70, 229, 0.4);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-primary);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

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

.panel {
  background-color: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 4px; /* Sharp but refined */
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.2s;
  border: none;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.input-field {
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 4px;
  padding: 8px 12px;
  width: 100%;
}

.input-field:focus {
  border-color: var(--primary);
  outline: none;
}

.border-main {
  border-color: var(--border) !important;
}

.divide-main > * + * {
  border-color: var(--border) !important;
}

.text-main {
  color: var(--text-primary) !important;
}

.text-sec {
  color: var(--text-secondary) !important;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-app);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s ease;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

/* Dashboard Premium Styles */
.dashboard-card {
  display: flex;
  flex-direction: column;
}

.dashboard-hero-balance {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.05rem;
  line-height: 1;
  color: white;
  margin-bottom: 0.5rem;
}

.dashboard-pnl-label {
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dashboard-section-header {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
  margin-top: 1.5rem;
}

.dashboard-data-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
}

.dashboard-data-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.dashboard-data-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: white;
  font-family: inherit;
}

.pnl-up { color: #10b981; }
.pnl-down { color: #ef4444; }

.btn-secondary-subtle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-secondary-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}
