/* Bootstrap 5 Custom Dark Theme Variables */
:root[data-bs-theme="dark"] {
  --bs-body-bg: #0f1419;
  --bs-body-color: #e5e7eb;
  --bs-border-color: #2d3748;
  --bs-card-bg: #1a1f2e;
  --bs-card-border-color: #2d3748;
  --bs-primary: #3b82f6;
  --bs-primary-rgb: 59, 130, 246;
  --bs-success: #10b981;
  --bs-danger: #ef4444;
  --bs-warning: #f59e0b;
  --bs-info: #06b6d4;
  --bs-secondary: #6b7280;
}

/* Custom Styles */
body {
  background: #0f1419;
  min-height: 100vh;
  padding: 20px;
}

/* Card Customization */
.card {
  background: #1a1f2e;
  border: 1px solid #2d3748;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.card-header {
  background: transparent;
  border-bottom: 1px solid #2d3748;
}

/* Form Controls */
.form-control,
.form-select {
  background-color: #0f1419;
  border-color: #374151;
  color: #e5e7eb;
}

.form-control:focus,
.form-select:focus {
  background-color: #0f1419;
  border-color: #3b82f6;
  color: #e5e7eb;
  box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
}

.form-control::placeholder {
  color: #6b7280;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

.btn-success {
  background-color: #10b981;
  border-color: #10b981;
}

.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
}

/* Direction Buttons */
.btn-direction {
  border: 2px solid #374151;
  font-weight: 600;
  transition: all 0.3s;
  background: #1a1f2e;
  color: #9ca3af;
}

.btn-direction:hover {
  background: #1f2937;
}

.btn-high.active {
  background-color: #10b981 !important;
  border-color: #10b981 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-low.active {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-high.active {
  background-color: #10b981;
  border-color: #10b981;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-low.active {
  background-color: #ef4444;
  border-color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Duration Buttons */
.btn-duration.active {
  background-color: #3b82f6;
  border-color: #3b82f6;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Chart Container */
.chart-container {
  width: 100%;
  height: 500px;
  background: #0f1419;
  border: 1px solid #2d3748;
  border-radius: 8px;
  padding: 20px;
  position: relative;
}

#priceChart {
  width: 100% !important;
  height: 100% !important;
}

/* Statistics Cards */
.stat-card {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  border: 1px solid #2d3748;
  border-left: 4px solid #3b82f6;
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Crypto Cards */
.crypto-card {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  border: 1px solid #2d3748;
  transition: all 0.3s;
  cursor: pointer;
}

.crypto-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
  border-color: #3b82f6;
}

/* Trade Items */
.trade-item {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  border: 1px solid #2d3748;
  transition: all 0.3s;
}

.trade-item:hover {
  border-color: #374151;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.trade-item.active {
  background: linear-gradient(135deg, #1e293b 0%, #1a1f2e 100%);
  border-color: #3b82f6;
}

/* Profit Box */
.profit-box.positive {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-color: #10b981;
}

.profit-box.negative {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
  border-color: #ef4444;
}

/* Alert Messages */
.alert {
  border: 1px solid;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

/* Navbar */
.navbar-dark {
  background-color: #1a1f2e !important;
}

.navbar-nav .nav-link.active {
  color: #3b82f6 !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #3b82f6 !important;
}

/* Utility Classes */
.text-muted {
  color: #9ca3af !important;
}

.border-secondary {
  border-color: #2d3748 !important;
}

/* Price Info */
.price-info {
  color: #9ca3af;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.payout-info {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Empty States */
.empty-message {
  color: #6b7280;
  text-align: center;
  padding: 2.5rem;
}

/* Loading States */
.loading {
  color: #6b7280;
  text-align: center;
  padding: 1.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .card {
    padding: 1.25rem;
  }
  
  .chart-container {
    height: 350px;
    padding: 15px;
  }
}
