/* Optymalizacja Pracy Magazynu Ciepła - Główne style */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

body { 
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-section {
  background: white;
  border-radius: 20px;
  color: #2c3e50;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero-section img {
  max-height: 80px;
  object-fit: contain;
}

.hero-section h1 {
  color: #2c3e50;
}

.hero-section p {
  color: #34495e;
}

.input-section {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
  background: var(--primary-gradient);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

.btn-success {
  background: var(--success-gradient);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.6);
}

.btn-warning {
  background: var(--warning-gradient);
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(67, 233, 123, 0.4);
  color: #2d3748;
}

.btn-warning:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(67, 233, 123, 0.6);
  color: #2d3748;
}

/* Styling dla sekcji przycisków */
.button-section {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
}

.button-section h6 {
  color: #4a5568;
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Odstępy między sekcjami */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.3), transparent);
  margin: 2rem 0;
}

.progress {
  height: 24px;
  border-radius: 12px;
  background-color: #e9ecef;
  position: relative;
  overflow: visible;
}

.progress-bar {
  background: var(--primary-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
}

.progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d3748;
  z-index: 10;
  text-shadow: 0 0 3px rgba(255,255,255,0.8);
  mix-blend-mode: difference;
}

.status-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.3);
  backdrop-filter: blur(10px);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.input-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.results-section {
  background: linear-gradient(135deg, rgba(16,185,129,0.1) 0%, rgba(5,150,105,0.1) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 2px solid rgba(16,185,129,0.2);
}

.results-chart-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 1.5rem;
  backdrop-filter: blur(15px);
  border: 2px solid rgba(16,185,129,0.3);
  box-shadow: 0 8px 32px rgba(16,185,129,0.15);
  transition: all 0.3s ease;
}

.results-chart-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(16,185,129,0.25);
  border-color: rgba(16,185,129,0.5);
}

.chart-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 12px;
}

.chart-card canvas {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  max-height: 200px !important;
  width: 100% !important;
}

.chart-card canvas {
  height: 140px !important;
  max-height: 140px !important;
}

.results-chart-card canvas {
  height: 200px !important;
  max-height: 200px !important;
}

.results-chart-wide canvas {
  height: 500px !important;
  max-height: 500px !important;
  width: 100% !important;
}

.hidden {
  display: none !important;
}

.file-input-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-block;
  width: 100%;
}

.file-input-wrapper input[type=file] {
  position: absolute;
  left: -9999px;
}

.file-input-label {
  display: block;
  padding: 12px 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.7);
  border: 2px dashed #cbd5e0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  color: #4a5568;
}

.file-input-label:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #667eea;
  color: #667eea;
}

.hidden { 
  display: none !important; 
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Style dla przycisków języka */
.language-buttons {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.language-buttons .btn {
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.language-buttons .btn:not(.btn-primary) {
  background: rgba(255, 255, 255, 0.7);
  color: #2c3e50;
  border-color: rgba(255, 255, 255, 0.3);
}

.language-buttons .btn:not(.btn-primary):hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #667eea;
  color: #667eea;
}

.language-buttons .btn.btn-primary {
  background: var(--primary-gradient);
  border-color: transparent;
}

/* Dodatkowe klasy dla poprawy organizacji */
.logo-img {
  max-height: 80px;
}

.hidden-status {
  display: none;
}

.chart-icon-pv {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.chart-icon-prices {
  background: linear-gradient(135deg, #a855f7, #8b5cf6);
}

.chart-icon-buy {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.chart-icon-usage {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.chart-icon-ee-demand {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.chart-icon-charging {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.chart-icon-sell {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.results-chart-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  width: 28px;
  height: 28px;
  font-size: 14px;
}

.results-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #065f46;
}