/* Dashboard-specific styles */

.stat-card {
  border: none;
  border-radius: 15px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  font-weight: 600;
  font-size: 1.5rem;
}

/* Chart containers */
.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

/* Marketing recommendation cards */
.recommendation-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.recommendation-card h6 {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
}

.recommendation-card .badge {
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

/* Priority indicators */
.priority-high {
  border-left: 5px solid #dc3545;
}

.priority-medium {
  border-left: 5px solid #ffc107;
}

.priority-low {
  border-left: 5px solid #28a745;
}

/* Competitive analysis cards */
.competitive-card {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
  color: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
}

.competitive-card h6 {
  margin-bottom: 5px;
  font-weight: 600;
}

/* Optimization suggestion cards */
.optimization-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  border-left: 5px solid #ffc107;
}

.optimization-card .savings {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffc107;
}

/* Smart alerts */
.alert-smart {
  border-left: 5px solid;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.alert-smart.alert-success {
  border-left-color: #28a745;
}

.alert-smart.alert-warning {
  border-left-color: #ffc107;
}

.alert-smart.alert-danger {
  border-left-color: #dc3545;
}

.alert-smart.alert-info {
  border-left-color: #17a2b8;
}

/* Market positioning indicators */
.position-budget {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.position-mid {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.position-premium {
  background: linear-gradient(135deg, #6f42c1 0%, #5a2d91 100%);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

.position-luxury {
  background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
  color: white;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

/* Performance indicators */
.performance-excellent {
  color: #28a745;
  font-weight: 600;
}

.performance-good {
  color: #20c997;
  font-weight: 600;
}

.performance-average {
  color: #ffc107;
  font-weight: 600;
}

.performance-poor {
  color: #dc3545;
  font-weight: 600;
}

/* Table enhancements */
.table-hover tbody tr:hover {
  background-color: rgba(0, 123, 255, 0.05);
}

.badge-profit-high {
  background-color: #28a745;
}

.badge-profit-medium {
  background-color: #ffc107;
}

.badge-profit-low {
  background-color: #dc3545;
}

.badge-cost-low {
  background-color: #28a745;
}

.badge-cost-medium {
  background-color: #ffc107;
}

.badge-cost-high {
  background-color: #dc3545;
}

/* Animation for number counters */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-card h3 {
  animation: countUp 0.6s ease-out;
}

/* Responsive chart adjustments */
@media (max-width: 768px) {
  .stat-card {
    margin-bottom: 20px;
  }

  .chart-container {
    height: 250px;
  }

  .stat-icon {
    font-size: 2rem;
  }
}

/* Loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Chart legend customization */
#categoryLegend {
  max-height: 200px;
  overflow-y: auto;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px;
  border-radius: 5px;
  transition: background-color 0.2s ease;
}

.legend-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  margin-right: 10px;
}

.legend-text {
  flex: 1;
  font-size: 0.9rem;
}

.legend-value {
  font-weight: 600;
  color: #6c757d;
}

/* Custom range slider */
.form-range::-webkit-slider-thumb {
  background: #007bff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-range::-moz-range-thumb {
  background: #007bff;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Action buttons */
.btn-action {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: white;
}

/* Time display */
#currentTime {
  font-family: "Courier New", monospace;
  font-weight: 600;
}
