/* Market Data Page Styles */
:root {
  --accent: #786D3C;  /* Gold accent from logo */
  --primary-dark: #1B1464;  /* Dark blue from logo */
  --success-color: #28a745;
  --error-color: #dc3545;
  --neutral-color: #6c757d;
}

.market-data-page {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Data Form Container */
.data-form-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 1000px;
  margin: -50px auto 40px;
  position: relative;
  z-index: 10;
  border-top: 4px solid var(--accent);
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 200px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(120, 109, 60, 0.1);
  outline: none;
}

.custom-specs {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.custom-specs:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(120, 109, 60, 0.1);
  outline: none;
}

.submit-btn {
  background-color: var(--primary-dark);
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(27, 20, 100, 0.2);
}

.submit-btn:hover {
  background-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(120, 109, 60, 0.3);
}

/* Data visualization section */
.data-visualization {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.visualization-container {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  padding: 25px;
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-dark);
}

.visualization-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.visualization-container:nth-child(2) {
  border-left-color: var(--accent);
}

.visualization-container:nth-child(3) {
  border-left-color: #5a4e9e;
}

.visualization-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--primary-dark);
  position: relative;
  padding-bottom: 10px;
}

.visualization-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 3px;
}

.chart-container {
  height: 300px;
  position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .data-form-container {
    margin-top: -30px;
    padding: 20px;
  }
  
  .form-group {
    min-width: 100%;
  }
  
  .visualization-container {
    padding: 15px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .visualization-title {
    font-size: 1.1rem;
  }
  
  .submit-btn {
    width: 100%;
  }
}

/* Dark mode support */
.dark-mode .data-form-container,
.dark-mode .visualization-container {
  background-color: #222;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .form-group label {
  color: #e0e0e0;
}

.dark-mode .form-control,
.dark-mode .custom-specs {
  background-color: #333;
  border-color: #444;
  color: #e0e0e0;
}

.dark-mode .form-control:focus,
.dark-mode .custom-specs:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(120, 109, 60, 0.2);
}

.dark-mode .visualization-title {
  color: #e0e0e0;
}

.dark-mode .market-data-page {
  background-color: #111;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary-dark);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.9;
}

/* Filters */
.market-data-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 30px;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--primary-dark);
}

.form-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

/* Table Styles */
.market-data-table {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 30px;
}

.table {
  margin-bottom: 0;
}

.table thead th {
  background-color: var(--primary-dark);
  color: white;
  font-weight: 600;
  border: none;
  padding: 15px;
}

.table tbody td {
  padding: 15px;
  vertical-align: middle;
}

/* Status Badge */
.status-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge.active {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success-color);
}

.status-badge.inactive {
  background-color: rgba(108, 117, 125, 0.15);
  color: var(--neutral-color);
}

.status-badge.limited {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

/* Trend Indicators */
.trend-indicator {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
}

.trend-indicator.up {
  color: var(--success-color);
}

.trend-indicator.down {
  color: var(--error-color);
}

.trend-indicator.neutral {
  color: var(--neutral-color);
}

/* Charts Section */
.market-data-charts {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  margin-bottom: 30px;
}

.chart-container h3 {
  color: var(--primary-dark);
  margin-bottom: 20px;
  font-weight: 600;
}

.chart-placeholder {
  background-color: #f8f9fa;
  border: 1px dashed #ddd;
  border-radius: 4px;
  padding: 40px;
  text-align: center;
  color: #6c757d;
}

/* Disclaimer */
.data-disclaimer {
  background-color: rgba(120, 109, 60, 0.1);
  border-left: 4px solid var(--accent);
  padding: 15px;
  border-radius: 4px;
  margin-bottom: 40px;
}

.data-disclaimer p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .filter-group {
    min-width: 100%;
  }
  
  .table-responsive {
    overflow-x: auto;
  }
}

/* Product Status and Forecast */
.product-status-container {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background-color: rgba(40, 167, 69, 0.15);
  color: var(--success-color);
  border: 1px solid rgba(40, 167, 69, 0.3);
}

.status-badge.limited {
  background-color: rgba(255, 193, 7, 0.15);
  color: #856404;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-badge.inactive {
  background-color: rgba(220, 53, 69, 0.15);
  color: var(--error-color);
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.forecast-container {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8f9fa;
  padding: 6px 15px;
  border-radius: 20px;
  border: 1px solid #e9ecef;
}

.forecast-label {
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.85rem;
}

.forecast-value {
  font-weight: 500;
  color: var(--accent);
  font-size: 0.85rem;
}

.trend-value {
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
}

.trend-value.up {
  color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
}

.trend-value.down {
  color: var(--error-color);
  background-color: rgba(220, 53, 69, 0.1);
}

.trend-value.stable {
  color: var(--neutral-color);
  background-color: rgba(108, 117, 125, 0.1);
}

/* Price Cards */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.price-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-top: 3px solid var(--primary-dark);
  position: relative;
  overflow: hidden;
}

.price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.price-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27, 20, 100, 0.05) 0%, rgba(120, 109, 60, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.price-card:hover::before {
  opacity: 1;
}

.price-destination {
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.price-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.price-trend {
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.price-trend .up {
  color: var(--success-color);
}

.price-trend .down {
  color: var(--error-color);
}

.price-trend .stable {
  color: var(--neutral-color);
}

/* Current Prices Title */
.current-prices-title {
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--primary-dark);
  font-weight: 600;
  position: relative;
  padding-bottom: 10px;
}

.current-prices-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--accent);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .product-status-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .price-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .price-value {
    font-size: 1.2rem;
  }
}

@media (max-width: 576px) {
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Dark Mode Support */
.dark-mode .price-card {
  background-color: #2d2d2d;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode .price-destination {
  color: #e0e0e0;
}

.dark-mode .price-value {
  color: #a8a090;
}

.dark-mode .forecast-container {
  background-color: #333333;
  border-color: #444444;
}

.dark-mode .forecast-label {
  color: #e0e0e0;
}

.dark-mode .forecast-value {
  color: #a8a090;
}

.dark-mode .current-prices-title {
  color: #e0e0e0;
}

.dark-mode .trend-value.up {
  background-color: rgba(40, 167, 69, 0.2);
}

.dark-mode .trend-value.down {
  background-color: rgba(220, 53, 69, 0.2);
}

.dark-mode .trend-value.stable {
  background-color: rgba(108, 117, 125, 0.2);
}
