/* Options Dashboard Styles */

.options-dashboard {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border: 1px solid #2a2d3a;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  color: #e6edf3;
}

.dashboard-header {
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 15px;
}

.dashboard-header h4 {
  color: #e6edf3;
  font-weight: 600;
  font-size: 1.25rem;
}

.dashboard-controls .btn {
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dashboard-controls .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Level 1 Card Backgrounds */
.options-dashboard .card {
  background: rgba(26, 26, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Table Styling */
.options-dashboard table thead,
.options-dashboard .table thead {
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
}

.options-dashboard .table > :not(caption) > * > * {
  background-color: rgba(18, 20, 30, 0.85);
  color: #e6edf3;
  border-color: rgba(255, 255, 255, 0.05);
}

.options-dashboard .table thead th {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-weight: 600;
}

/* Trade Signals Card */
.trade-signals-card .card-header {
  background: linear-gradient(135deg, #2a2d3a 0%, #1f2633 100%);
  color: #e6edf3;
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-display {
  text-align: center;
  padding: 15px;
  background: rgba(42, 42, 42, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-label {
  font-size: 0.9rem;
  color: #8b949e;
  margin-bottom: 8px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.signal-value {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  color: #e6edf3;
}

/* Signal Bars Card */
.signal-bars-card .card-header {
  background: linear-gradient(135deg, #1f2633 0%, #2a2d3a 100%);
  color: #e6edf3;
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signal-bar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  min-width: 60px;
  font-weight: 600;
  color: #e6edf3;
  font-size: 0.9rem;
}

.bar-container {
  flex: 1;
  height: 24px;
  background: rgba(42, 42, 42, 0.8);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bar-fill {
  height: 100%;
  border-radius: 12px;
  transition: width 0.5s ease-in-out;
  position: relative;
}

/* Animated background for bars */
.bar-fill::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Color schemes for different signal types */
.calls-strong { background: linear-gradient(135deg, #28a745, #20c997); }
.calls-medium { background: linear-gradient(135deg, #17a2b8, #6f42c1); }
.calls-weak { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.puts-strong { background: linear-gradient(135deg, #dc3545, #e83e8c); }
.puts-medium { background: linear-gradient(135deg, #fd7e14, #ffc107); }
.puts-weak { background: linear-gradient(135deg, #6f42c1, #9c27b0); }

.bar-value {
  min-width: 35px;
  text-align: right;
  font-weight: 700;
  color: #e6edf3;
  font-size: 0.9rem;
}

/* Dark theme signal text colors */
.signal-buy { color: #4ade80; font-weight: 700; }
.signal-sell { color: #f87171; font-weight: 700; }
.signal-pivot { color: #fbbf24; font-weight: 700; }
.signal-neutral { color: #9ca3af; font-weight: 700; }

/* Gauge Cards */
.gauge-card .card-header {
  background: linear-gradient(135deg, #2a2d3a 0%, #1f2633 100%);
  color: #e6edf3;
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sentiment-slider-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 10px;
}

.slider-bar {
  width: 100%;
}

.slider-track {
  position: relative;
  height: 20px;
  background: linear-gradient(to right,
    #dc3545 0%,      /* Red - Bearish */
    #dc3545 40%,     /* Red to Yellow transition */
    #ffc107 40%,     /* Yellow - Mixed */
    #ffc107 60%,     /* Yellow to Green transition */
    #28a745 60%,     /* Green - Bullish */
    #28a745 100%
  );
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.slider-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* Center position initially */
  background: linear-gradient(to right,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0.2) 100%
  );
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 24px;
  background: #e6edf3;
  transform: translate(-50%, -50%);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
  transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 10;
}

.slider-marker::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #e6edf3;
}

.slider-marker::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #e6edf3;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  padding: 0 10px;
}

.slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-label.left {
  color: #dc3545;
}

.slider-label.center {
  color: #ffc107;
}

.slider-label.right {
  color: #28a745;
}

.slider-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e6edf3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.gauge-details {
  background: rgba(42, 42, 42, 0.9);
  border-radius: 8px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-label {
  font-size: 0.8rem;
  color: #8b949e;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.metric-value {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e6edf3;
}

/* Metrics Card */
.metrics-card .card-header {
  background: linear-gradient(135deg, #1f2633 0%, #2a2d3a 100%);
  color: #e6edf3;
  border-radius: 8px 8px 0 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item {
  text-align: center;
  padding: 15px;
  background: rgba(42, 42, 42, 0.9);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease;
  color: #e6edf3;
}

.metric-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .options-dashboard {
    padding: 15px;
  }

  .signal-display {
    padding: 10px;
  }

  .signal-value {
    font-size: 1.4rem;
  }

  .sentiment-slider-container {
    gap: 10px;
  }

  .slider-bar {
    max-width: none;
  }

  .slider-track {
    height: 16px;
  }

  .slider-marker {
    height: 20px;
  }

  .slider-value {
    font-size: 1.2rem;
  }
}

/* Loading States */
.dashboard-loading {
  text-align: center;
  padding: 40px;
  color: #8b949e;
}

.dashboard-loading i {
  font-size: 2rem;
  margin-bottom: 10px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Error States */
.dashboard-error {
  background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(176, 58, 46, 0.1) 100%);
  color: #ff6b7d;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.dashboard-error i {
  font-size: 2rem;
  margin-bottom: 10px;
}