/* ============================================================
   TradePro - Base Styles
   ============================================================ */

:root {
  --sidebar-width: 240px;
  --navbar-height: 56px;
  --bg-dark: #1a1a2e;
  --bg-card: #ffffff;
  --color-buy: #198754;
  --color-sell: #dc3545;
}

/* Auth pages */
.auth-body {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
}

/* Wrapper layout */
.wrapper {
  padding-top: var(--navbar-height);
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: calc(100vh - var(--navbar-height));
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}

.sidebar .nav-link {
  color: rgba(255,255,255,0.7);
  border-radius: 6px;
  margin-bottom: 2px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  transition: all 0.15s ease;
}
.sidebar .nav-link:hover,
.sidebar .nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}
.sidebar .nav-link.active {
  background: rgba(255,255,255,0.15);
  border-left: 3px solid #198754;
}

/* Main content offset */
.main-content {
  margin-left: var(--sidebar-width);
  max-width: calc(100% - var(--sidebar-width));
  min-height: calc(100vh - var(--navbar-height));
}

/* Cards */
.stat-card {
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.card {
  border-radius: 10px;
}

/* Price animations */
@keyframes flashGreen {
  0% { background: rgba(25,135,84,0.3); }
  100% { background: transparent; }
}
@keyframes flashRed {
  0% { background: rgba(220,53,69,0.3); }
  100% { background: transparent; }
}
.price-up   { animation: flashGreen 1s ease-out; color: #198754 !important; }
.price-down { animation: flashRed 1s ease-out; color: #dc3545 !important; }

/* Table */
.table th { font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }
.font-monospace { font-family: 'Courier New', monospace; }

/* Badge */
.badge { font-size: 0.72em; }

/* Mobile responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
    max-width: 100%;
  }
}
