/* Modern Trading Bot Dashboard Styling */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  color: #e2e8f0;
  margin: 0;
  padding: 1.5rem;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  font-weight: 600;
  color: #f8fafc;
  margin: 0 0 0.75rem 0;
}

h1 { font-size: 1.875rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }

button {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
}

a {
  color: #60a5fa;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #93c5fd;
}

/* Main Layout */
.dagonet-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.dagonet-header {
  background: rgba(30, 41, 59, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dagonet-header .header-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dagonet-header h1 {
  font-size: 2.5rem;
  margin: 0;
  background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dagonet-header .tagline {
  margin: 0.25rem 0 0 0;
  color: #cbd5e1;
  font-size: 1rem;
}

.dagonet-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

@media (max-width: 1024px) {
  .dagonet-body {
    grid-template-columns: 1fr;
  }
}

/* Sidebar Styling */
.dagonet-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dagonet-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Card Components */
.profit-section,
.balance-section,
.chart-section,
.betting-table-section {
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profit-section h3,
.balance-section h3,
.chart-section h3,
.betting-table-section h3 {
  color: #f1f5f9;
  font-size: 1.125rem;
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lower-profit-section {
  margin-top: 1.5rem;
}

.section-description {
  margin-top: .1rem;
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* Status Indicator */
.status-indicator {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  padding: 0.75rem;
  background: rgba(15, 23, 42, 0.5);
  border-radius: 8px;
  border: 1px solid rgba(71, 85, 105, 0.2);
}

.status-indicator .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
  animation: pulse-red 2s infinite;
}

.status-indicator.active .dot {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
  animation: pulse-green 2s infinite;
}

.status-indicator.unknown .dot {
  background: #fbbf24;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
  animation: pulse-amber 2s infinite;
}

@keyframes pulse-red {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes pulse-green {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes pulse-amber {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Balance Display */
.balance-section p {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
  color: #60a5fa;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

/* Tables */
.stats-table,
.betting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.stats-table th,
.stats-table td,
.betting-table th,
.betting-table td {
  text-align: left;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

.stats-table th,
.betting-table th {
  font-weight: 600;
  color: #cbd5e1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stats-table td {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-weight: 500;
}

.betting-table td {
  font-size: 0.8rem;
}

/* Strategy and Outcome Badges */
.strategy-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.outcome-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.outcome-yes {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.outcome-no {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.outcome-unknown {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

/* Chart Styling */
.chart-container {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 8px;
  padding: 1rem;
  position: relative;
}

.chart-tooltip {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(71, 85, 105, 0.3) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  z-index: 1000;
}

/* Table Container */
.table-container {
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  overflow-x: auto;
}

.table-container::-webkit-scrollbar {
  width: 8px;
}

.table-container::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.3);
}

.table-container::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.5);
  border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
  background: rgba(71, 85, 105, 0.7);
}

/* No Data State */
.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
  font-style: italic;
  background: rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  border: 2px dashed rgba(71, 85, 105, 0.3);
}

/* Loading State */
.loading {
  text-align: center;
  padding: 3rem;
  color: #64748b;
  font-size: 1.125rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  
  .dagonet-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  
  .profit-section,
  .balance-section,
  .chart-section,
  .betting-table-section {
    padding: 1rem;
  }
  
  .balance-section p {
    font-size: 1.875rem;
  }
}

/* Profit/Loss Colors */
.profit-positive {
  color: #22c55e;
}

.profit-negative {
  color: #ef4444;
}

.profit-neutral {
  color: #64748b;
}
