/* =========================================
   DASHBOARD WRAPPER
   ========================================= */
.cyber-dash {
  display: block !important; /* Override Main Grid */
  height: auto !important;
  min-height: 100vh;
}

.dashboard-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px 80px 20px;
}

/* =========================================
   HEADER & OVERVIEW
   ========================================= */
.dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.header-title {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 3px;
  color: #fff;
}
.header-user {
  font-size: 10px;
  color: var(--neon-teal);
  border: 1px solid rgba(29, 205, 159, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.user-dot { width: 6px; height: 6px; background: var(--neon-teal); border-radius: 50%; }

/* Grid for Top Cards */
.overview-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

.dash-card {
  background: rgba(12, 14, 18, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  transition: border-color 0.3s;
}
.dash-card:hover { border-color: rgba(29, 205, 159, 0.2); }

/* Equity Card */
.equity-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(145deg, rgba(12,14,18,0.8) 0%, rgba(20,24,30,0.9) 100%);
}
.card-icon {
  width: 50px; height: 50px;
  background: rgba(29, 205, 159, 0.1);
  color: var(--neon-teal);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.card-data { display: flex; flex-direction: column; }
.data-label { font-size: 11px; color: #666; letter-spacing: 1px; margin-bottom: 4px; }
.data-value { font-size: 36px; color: #fff; font-weight: bold; font-family: 'Rajdhani', sans-serif; }
.data-sub { font-size: 12px; color: #888; margin-top: 4px; font-family: 'Fira Mono', monospace; }
.data-sub.profit { color: var(--neon-teal); }
.data-sub.loss { color: #ff4444; }

/* Status Card */
.status-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}
.stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.stat-label { color: #666; }
.stat-val { color: #ccc; font-weight: bold; }
.stat-val.highlight { color: #fff; font-size: 16px; }
.stat-badge { font-size: 9px; padding: 2px 6px; border-radius: 4px; background: #222; color: #888; }
.stat-badge.success { background: rgba(29, 205, 159, 0.1); color: var(--neon-teal); }

/* =========================================
   DIVIDERS
   ========================================= */
.section-divider {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.divider-text { font-size: 12px; color: var(--neon-teal); letter-spacing: 2px; font-weight: bold; white-space: nowrap; }
.divider-line { width: 100%; height: 1px; background: rgba(255, 255, 255, 0.05); }

/* =========================================
   BOT GRID
   ========================================= */
.bot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.bot-card {
  background: rgba(18, 20, 24, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 20px;
  transition: all 0.2s;
}
.bot-card:hover {
  transform: translateY(-3px);
  background: rgba(24, 28, 34, 0.8);
  border-color: rgba(29, 205, 159, 0.3);
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.bot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 10px;
}
.bot-name { color: #fff; font-weight: bold; font-size: 14px; }
.bot-status { font-size: 9px; padding: 3px 6px; border-radius: 2px; font-weight: bold; }
.bot-status.active { background: rgba(29, 205, 159, 0.1); color: var(--neon-teal); }
.bot-status.stopped { background: rgba(243, 156, 18, 0.1); color: #f39c12; }

.bot-body { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.bot-stat { display: flex; flex-direction: column; }
.bs-label { font-size: 9px; color: #666; margin-bottom: 2px; }
.bs-val { font-size: 13px; color: #ccc; font-family: 'Fira Mono', monospace; }
.bs-val.profit { color: var(--neon-teal); }
.bs-val.loss  { color: #ff4444; }

.manage-btn {
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: #888;
  font-size: 11px;
  cursor: pointer;
  transition: 0.2s;
  border-radius: 4px;
}
.manage-btn:hover { border-color: var(--neon-teal); color: var(--neon-teal); background: rgba(29, 205, 159, 0.05); }

/* =========================================
   TABLE
   ========================================= */
.table-card { padding: 0; overflow: hidden; }
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th { text-align: left; padding: 15px 20px; font-size: 10px; color: #666; background: rgba(0,0,0,0.2); }
.dash-table td { padding: 15px 20px; border-bottom: 1px solid rgba(255,255,255,0.02); font-size: 12px; color: #aaa; font-family: 'Fira Mono', monospace; }
.dash-table tr:hover { background: rgba(255,255,255,0.02); }

.tx-type { font-weight: bold; }
.tx-type.in { color: var(--neon-teal); }
.tx-type.out { color: #ff4444; }

.tx-badge { font-size: 9px; padding: 2px 6px; border-radius: 2px; border: 1px solid rgba(255,255,255,0.1); }

/* Loading */
.loading-state { text-align: center; color: #666; padding: 40px; font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .overview-grid { grid-template-columns: 1fr; }
  .dashboard-wrapper { padding: 20px; }
  .table-card { overflow-x: auto; }
  .dash-table { min-width: 500px; }
}
