:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --text-light: #64748b;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
  }
  
  /* Banner reklamowy */
  .ad-banner {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border-bottom: 1px solid #d1d5db !important;
    padding: 8px 0 !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 32px !important;
  }
  
  .ad-content {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .ad-content i {
    color: #9ca3af;
    font-size: 11px;
  }
  
  .ad-content a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
  }
  
  .ad-content a:hover {
    color: #1d4ed8;
    text-decoration: underline;
  }

  /* Backup selector dla bannera - na wypadek problemów */
  div.ad-banner,
  [class*="ad-banner"] {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%) !important;
    border-bottom: 1px solid #d1d5db !important;
    padding: 8px 0 !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    text-align: center !important;
    position: relative !important;
    z-index: 1000 !important;
    width: 100% !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 32px !important;
  }

  /* Prosty fallback CSS dla bannera - na samej górze */
  #ad-banner {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    background: #f3f4f6 !important;
    border-bottom: 1px solid #d1d5db !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #6b7280 !important;
    z-index: 9999 !important;
  }

  /* Elegancki header */
  .elegant-header {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 0;
    overflow: hidden;
  }
  
  .header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    z-index: 1;
  }
  
  .elegant-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: 2;
  }
  
  @keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
  }
  
  .elegant-header .container {
    position: relative;
    z-index: 3;
  }
  
  .elegant-header .header-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .elegant-header .logo-title-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .logo-circle {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
  }
  
  .logo-circle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
  }
  
  .logo-circle i {
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
  }
  
  .elegant-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .elegant-header .opis {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
  }
  
  .elegant-header .opis-podtytul {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 1rem 0 0 0;
    line-height: 1.6;
    max-width: 600px;
    padding-left: 76px; /* Wyrównanie z tekstem głównym (60px logo + 16px gap) */
  }
  
  /* Szybkie info o cenach */
  .price-quick-info {
    margin: 1.5rem 0 0 0;
    padding-left: 76px; /* Wyrównanie z tekstem głównym */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 700px;
  }
  
  .price-range-item {
    display: flex;
    align-items: center;
  }
  
  .price-range-item span {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-lg);
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  .price-range-item span:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }
  
  .elegant-header .current-price-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    padding: 2rem;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
  }
  
  .elegant-header .current-price-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.18);
  }
  
  .elegant-header .current-price-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .elegant-header .current-price-value {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
  }
  
  .elegant-header .current-price-hour {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
  }

  /* Style dla jutrzejszych cen */
  .tomorrow-info {
    margin-top: 1rem;
    opacity: 0.9;
  }
  
  .tomorrow-info .price-range-item span {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
  }

  /* Style dla kolumn nagłówka */
  .header-left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  .header-right-column {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding-top: 1rem;
  }
  
  @media (max-width: 768px) {
    .elegant-header {
      padding: 2rem 0;
    }
    
    .elegant-header .header-content {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 1.5rem;
    }
    
    .elegant-header h1 {
      font-size: 2rem;
    }
    
    .elegant-header .current-price-container {
      min-width: auto;
      width: 100%;
      max-width: 300px;
      margin: 0 auto;
    }
    
    .elegant-header .opis-podtytul {
      padding-left: 0;
      text-align: center;
    }
    
    .price-quick-info {
      padding-left: 0;
      text-align: center;
      margin: 1rem 0 0 0;
      gap: 0.5rem;
    }
    
    .price-range-item span {
      font-size: 0.8rem;
      padding: 0.4rem 0.8rem;
      max-width: 280px;
      margin: 0 auto;
    }

    .ad-content {
      flex-direction: column;
      gap: 4px;
    }

    /* Mobile styles for formula info */
    .enea-formula-info {
      margin: 1rem 0;
      padding: 1rem;
    }
    
    .formula-header h3 {
      font-size: 1.1rem;
    }
    
    .formula-main {
      padding: 1rem;
    }
    
    .formula-equation {
      font-size: 1rem;
      padding: 0.5rem;
    }
    
    .component {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.25rem;
      padding: 0.75rem;
    }
    
    .component-symbol {
      min-width: auto;
      text-align: left;
    }
    
    .component-desc {
      font-size: 0.85rem;
    }
    
    .formula-note, .formula-example {
      padding: 0.75rem;
    }
    
    .note-header, .example-header {
      font-size: 0.9rem;
    }
    
    .note-content, .example-content {
      font-size: 0.85rem;
    }
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  }
  
  body {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--dark-color);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
    min-height: 100vh;
    padding: 0;
    margin: 0;
  }

  .page-wrapper {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
  }

  .container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
  }  header {
    background: var(--gradient-primary);
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  }
  
  header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-opacity=".1"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><rect width="100" height="20" fill="url(%23a)"/></svg>');
    opacity: 0.3;
  }
  
  header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  header p {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 400;
  }
  
  .tab-container {
    margin-top: 2rem;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .tabs {
    display: flex;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 0.25rem;
    gap: 0.25rem;
  }
  
  .tab {
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-align: center;
    flex: 1;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
  }
  
  .tab.active {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
  }
  
  .tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
  }
  
  .tab-content {
    display: none;
    padding: 25px;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .control-panel {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: var(--radius-lg);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
  }
  
  .form-group {
    display: flex;
    flex-direction: column;
  }
  
  .form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .form-control {
    padding: 0.875rem 1rem;
    border: 2px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--radius-md);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
  }
  
  .form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
  }

  /* Toggle Switch Styles */
  .toggle-switch {
    position: relative;
    display: inline-block;
  }

  .toggle-input {
    display: none;
  }

  .toggle-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    padding: 4px;
  }

  .toggle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    pointer-events: none;
    z-index: 2;
  }

  .toggle-text::before {
    content: attr(data-off);
  }

  .toggle-input:checked + .toggle-label .toggle-text::before {
    content: attr(data-on);
  }

  .toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
  }

  .toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(80px);
  }

  .toggle-label:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
  }

  .unit-description {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
  }
  
  .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
  }
  
  .btn:hover::before {
    left: 100%;
  }
  
  .btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: var(--shadow-md);
  }
  
  .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }

  .btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
  }

  .btn-small:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
  }

  .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: var(--shadow-md);
  }

  .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }  .chart-container {
    width: 100%;
    height: 500px;
    margin-top: 20px;
    position: relative;
  }
  
  .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 10;
  }
  
  .loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
  }
  
  /* Sekcja informacyjna o wzorze ENEA */
  .enea-formula-info {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
  }
  
  .formula-header h3 {
    color: var(--dark-color);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .formula-main {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
  }
  
  .formula-equation {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
    border-radius: var(--radius-md);
  }
  
  .formula-components {
    display: grid;
    gap: 0.5rem;
  }
  
  .component {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
  }
  
  .component-symbol {
    font-weight: 700;
    color: var(--primary-color);
    min-width: 3rem;
    text-align: center;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    border: 1px solid #e2e8f0;
  }
  
  .component-desc {
    color: var(--text-light);
    font-size: 0.9rem;
    flex: 1;
  }
  
  .formula-note {
    background: linear-gradient(135deg, #fef3cd 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: var(--radius-lg);
    padding: 1rem;
    margin-bottom: 1rem;
  }
  
  .note-header {
    font-weight: 700;
    color: #92400e;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  .note-content {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .formula-example {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border: 1px solid #10b981;
    border-radius: var(--radius-lg);
    padding: 1rem;
  }
  
  .example-header {
    font-weight: 700;
    color: #065f46;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
  }
  
  .example-content {
    color: #064e3b;
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  @keyframes spin {
    to {
      transform: rotate(360deg);
    }
  }
  
  .card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
  }
  
  .card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    position: relative;
  }
  
  .card-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
  }
  
  /* Ulepszone style dla kart statystyk z lepszym wyrównaniem w pionie */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
  }
  
  .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
  }
  
  .stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
  }
  
  .stat-card:hover::before {
    transform: scaleX(1);
  }
  
  .stat-card .label {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
  }
  
  .stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0.5rem 0 1rem 0;
    line-height: 1.1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  /* Kolory dla różnych kart */
  #historical-min {
    color: #2ecc71; /* Zielony dla minimum */
  }
  
  #historical-max {
    color: #e74c3c; /* Czerwony dla maksimum */
  }
  
  #historical-avg {
    color: #3498db; /* Niebieski dla średniej */
  }
  
  #days-count {
    color: #f39c12; /* Pomarańczowy dla liczby dni */
  }

  /* Style dla powiadomienia o jutrzejszych danych */
  .tomorrow-notification {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    margin-bottom: 1.5rem;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
  }

  .notification-content {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    gap: 1rem;
    position: relative;
  }

  .notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
  }

  .notification-text {
    flex: 1;
    color: white;
  }

  .notification-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
  }

  .notification-text span {
    font-size: 0.875rem;
    opacity: 0.9;
  }

  .notification-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
  }

  .notification-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
  }

  .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
  }

  .notification-close:hover {
    opacity: 1;
  }

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

  /* Mobile responsywność dla powiadomienia */
  @media (max-width: 768px) {
    .notification-content {
      padding: 0.875rem 1rem;
      gap: 0.75rem;
    }

    .notification-icon {
      font-size: 1.25rem;
    }

    .notification-text strong {
      font-size: 0.9rem;
    }

    .notification-text span {
      font-size: 0.8rem;
    }

    .notification-button {
      padding: 0.375rem 0.75rem;
      font-size: 0.875rem;
    }
  }
  
  /* Styl dla detali (data i godzina) */
  .date-detail {
    font-size: 0.85rem;
    color: #95a5a6;
    margin-top: 5px;
  }
  
  
  .background-progress-container {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Zmienione z left na right */
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    padding: 12px 15px;
    width: 320px;
    z-index: 1000;
    transition: opacity 0.5s;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-left: 4px solid var(--primary-color);
  }
  
  .background-progress-bar {
    height: 6px;
    background-color: var(--primary-color);
    width: 0%;
    border-radius: 3px;
    margin: 8px 0;
    transition: width 0.3s ease-in-out, background-color 0.5s;
  }
  
  .background-progress-text {
    font-size: 13px;
    color: var(--secondary-color);
    font-weight: 500;
  }
  
  /* Animowany wskaźnik ładowania */
  .background-progress-container::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--primary-color);
    position: absolute;
    top: 12px;
    right: 12px;
    animation: pulse 1.5s infinite;
  }
  
  @keyframes pulse {
    0% {
      transform: scale(0.8);
      opacity: 0.5;
    }
    50% {
      transform: scale(1.2);
      opacity: 1;
    }
    100% {
      transform: scale(0.8);
      opacity: 0.5;
    }
  }
  
  .table-responsive {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.95rem;
  }
  
  thead {
    background-color: var(--secondary-color);
    color: white;
  }
  
  th, td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
  }
  
  tbody tr:hover {
    background-color: #f5f5f5;
  }
  
  .price-low {
    color: var(--success-color);
    font-weight: 600;
  }
  
  .price-high {
    color: var(--danger-color);
    font-weight: 600;
  }
  
  /* Style dla pionowej stopki */
  .footer {
      margin-top: 40px;
      text-align: center;
      color: #7f8c8d;
      padding: 20px 0;
      border-top: 1px solid #eee;
      background-color: #f5f7fa;
      background-color: #f8f9fa; /* Dodano tło */
      border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  
  .footer-item {
    padding: 4px 0;
      margin-bottom: 5px; /* Dodano margines */
  }
  
  .copyright {
    font-weight: 500;
    color: #666;
  }
  
  .visibility-hidden {
    visibility: hidden;
  }

  /* Price mode selector styles */
  .price-mode-selector {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .price-mode-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
  }

  .price-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .price-mode-option {
    position: relative;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
    display: block;
  }

  .price-mode-option:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }

  .price-mode-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .price-mode-option input[type="radio"]:checked + .option-content {
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
  }

  .price-mode-option input[type="radio"]:checked + .option-content .option-description {
    color: rgba(255, 255, 255, 0.9);
  }

  .option-content {
    text-align: center;
    transition: all 0.3s ease;
  }

  .option-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
  }

  .option-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.4;
  }

  /* Chart type selector styles */
  .chart-type-selector {
    margin: 1rem 0 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(148, 163, 184, 0.2);
  }

  .chart-type-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    text-align: center;
  }

  .chart-type-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .chart-type-option {
    position: relative;
    cursor: pointer;
    padding: 1rem;
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-radius: var(--radius-md);
    background: white;
    transition: all 0.3s ease;
    display: block;
  }

  .chart-type-option:hover {
    border-color: var(--success-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }

  .chart-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
  }

  .chart-type-option input[type="radio"]:checked + .option-content {
    background: var(--gradient-success);
    color: white;
    border-radius: var(--radius-sm);
    padding: 0.5rem;
  }

  .chart-type-option input[type="radio"]:checked + .option-content .option-description {
    color: rgba(255, 255, 255, 0.9);
  }

  @media (max-width: 768px) {
    .price-mode-options,
    .chart-type-options {
      grid-template-columns: 1fr;
      gap: 0.75rem;
    }
    
    .price-mode-selector,
    .chart-type-selector {
      margin: 1.5rem 0;
      padding: 1rem;
    }

    /* Mobile chart container with horizontal scroll */
    .chart-container {
      position: relative;
      overflow-x: auto;
      overflow-y: hidden;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: thin;
      scrollbar-color: var(--primary-color) rgba(0,0,0,0.1);
      border-radius: var(--radius-md);
      background: white;
      box-shadow: var(--shadow-sm);
      /* Prevent scroll from triggering layout changes */
      will-change: scroll-position;
      transform: translateZ(0);
    }

    .chart-container::-webkit-scrollbar {
      height: 8px;
    }

    .chart-container::-webkit-scrollbar-track {
      background: rgba(0,0,0,0.1);
      border-radius: 4px;
    }

    .chart-container::-webkit-scrollbar-thumb {
      background: var(--primary-color);
      border-radius: 4px;
    }
  }
  
  /* Styles for date inputs */
  input[type="date"] {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    width: 100%;
    -webkit-appearance: none;
    appearance: none; /* Standard property */
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
  }
  
  input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
  }
  
  /* Poprawka dla lepszej czytelności inputów na małych ekranach */
  input, select, button {
    font-size: 16px !important; /* Zapobiega powiększaniu przez iOS */
  }
  
  /* Style dla linków i elementów interaktywnych w stopce */
  .github-link, .contact-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    background-color: rgba(0, 0, 0, 0.05);
    color: #2c3e50;
    text-decoration: none;
  }
  
  /* Zmiany dla linku do GitHuba */
  .github-link {
      color: #333; /* Zmieniamy kolor na domyślny dla GitHub */
      background-color: rgba(0, 0, 0, 0.05); /* Lekkie tło */
  }
  
  .github-link:hover {
     background-color: rgba(0, 0, 0, 0.1); /* Ciemniejsze tło po najechaniu */
     transform: translateY(-2px);
      text-decoration: none; /* Usuwamy podkreślenie */
  }
  
  
  .github-link .fab, .contact-info .fas {
    font-size: 1.1em;
    opacity: 0.8;
  }
  
  /* Specyficzny kolor dla ikony email */
  .contact-info .fas {
    color: #3498db;
  }
  
  /* Specyficzny kolor dla ikony GitHub */
  .github-link .fab {
    color: #333;
  }
  
  
  /* Style dla elementu kontaktowego w stopce */
  .contact-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s;
    cursor: pointer;
  }
  
  .contact-info:hover {
    background-color: rgba(0, 0, 0, 0.15);
  }
  
  .contact-info .fas {
    color: var(--primary-color);
  }
  
  /* Animacja potwierdzająca skopiowanie adresu */
  @keyframes copy-success {
    0% {
      background-color: rgba(46, 204, 113, 0.2);
    }
    50% {
      background-color: rgba(46, 204, 113, 0.5);
    }
    100% {
      background-color: rgba(46, 204, 113, 0.2);
    }
  }
  
  .contact-info.copied {
    animation: copy-success 0.8s ease;
    background-color: rgba(46, 204, 1  13, 0.2);
    color: #27ae60;
  }


/* Style dla logo w nagłówku */
.logo-title-container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.title-container {
    display: flex;
    flex-direction: column;
}

/* Animacja dla ikony błyskawicy */
@keyframes pulse-electricity {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logo-circle i {
  animation: pulse-electricity 2s infinite ease-in-out;
}


/* Styl dla informacji o źródle danych */
.source-info {
  font-size: 0.8em; /* Mniejsza czcionka */
  color: #6c757d; /* Szary kolor */
}

.contact-info.copied {
    transition: color 0.3s ease-in-out; /* Płynne przejście koloru */
}


.opis {
    max-width: 100%;
    margin-top: 20px;
}

.opis-dol {
    text-align: center;
}

.historyczne {
    margin-bottom: 10px;
}

/* Responsywne dostosowania - ULEPSZONE */
@media (max-width: 1200px) {
  .page-wrapper {
    margin: 0 10px;
  }
  
  .container {
    max-width: 100%;
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .control-panel {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 992px) {
  .page-wrapper {
    margin: 0 5px;
  }
  
  header h1 {
    font-size: 2rem;
  }
  
  .tab-content {
    padding: 1.5rem 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .stat-card {
    min-height: 160px;
    padding: 1.5rem 1rem;
  }
  
  .stat-card .value {
    font-size: 2rem;
  }
}

/* Ulepszenia dla ekranów telefonów */
@media (max-width: 768px) {
  body {
    font-size: 15px;
    padding: 0;
  }

  .page-wrapper {
    margin: 10px;
    border-radius: var(--radius-lg);
  }

  .container {
    padding: 0.75rem;
  }

  header {
    padding: 1.5rem 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  
  .footer {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  header h1 {
    font-size: 1.75rem;
  }

  header p {
    font-size: 1rem;
  }

  .tabs {
    padding: 0.125rem;
    gap: 0.125rem;
  }

  .tab {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }

  .chart-container {
    height: 300px;
  }

  .control-panel {
    padding: 1rem;
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-control {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    width: 100%;
  }

  .stat-card {
    min-height: 140px;
    padding: 1.25rem 1rem;
  }

  .stat-card .label {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .stat-card .value {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
  }

  .date-detail {
    font-size: 0.8rem;
  }

  table th, table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.875rem;
  }

  .toggle-label {
    width: 100px;
    height: 36px;
  }

  .toggle-slider {
    width: 28px;
    height: 28px;
  }

  .toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(64px);
  }
}

/* Jeszcze mniejsze ekrany */
@media (max-width: 576px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    min-height: 120px;
    padding: 1rem 0.75rem;
  }

  .stat-card .value {
    font-size: 1.5rem;
  }

  .tab-content {
    padding: 1rem 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .chart-container {
    height: 250px;
  }

  header h1 {
    font-size: 1.5rem;
  }

  .control-panel {
    padding: 0.75rem;
  }

  .btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
  }
}

/* Bardzo małe ekrany (iPhone SE) */
@media (max-width: 375px) {
  .container {
    padding: 0.5rem;
  }

  .tab {
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem;
  }

  .chart-container {
    height: 200px;
  }

  .form-control {
    padding: 0.625rem;
  }

  .btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }

  .stat-card {
    min-height: 100px;
    padding: 0.75rem 0.5rem;
  }

  .stat-card .value {
    font-size: 1.25rem;
  }

  .toggle-label {
    width: 80px;
    height: 32px;
  }

  .toggle-slider {
    width: 24px;
    height: 24px;
  }

  .toggle-input:checked + .toggle-label .toggle-slider {
    transform: translateX(48px);
  }
}

/* Ulepszenia dla ekranów telefonów */
@media (max-width: 768px) {
  body {
    font-size: 15px; /* Zmniejszenie podstawowej czcionki */
  }

  header .github-link {
    margin-bottom: 10px;
    font-size: 0.95rem;
    padding: 5px 10px;
  }

  .container {
    padding: 12px;
  }

  header {
    padding: 15px 0;
  }

  header h1 {
    font-size: 1.6rem;
  }

  header p {
    font-size: 0.9rem;
  }

  /* Poziome zakładki dla większej ergonomii */
  .tabs {
    flex-wrap: wrap; /* Lepsze niż column na telefonach */
  }

  .tab {
    padding: 12px 8px;
    font-size: 0.9rem;
    flex: 1 0 50%; /* Na telefonie pokazujemy 2 zakładki w rzędzie */
  }

  .chart-container {
    height: 250px; /* Zmniejszona wysokość wykresu */
  }

  .control-panel {
    padding: 12px 10px;
    gap: 10px;
  }

  .form-group {
    min-width: 100%; /* Pełna szerokość na telefonach */
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 5px;
  }

  .card-title {
    font-size: 1.1rem;
  }

  .btn {
    padding: 10px 15px;
    font-size: 0.95rem;
    width: 100%; /* Przyciski na pełną szerokość na telefonach */
    margin-top: 5px;
  }

  /* Karty statystyk - bardziej kompaktowe */
  .stat-card {
    height: 150px; /* Mniejsza wysokość */
    padding: 12px 10px;
  }

  .stat-card .label {
    font-size: 0.8rem;
    margin-bottom: 10px;
  }

  .stat-card .value {
    font-size: 1.8rem;
    margin-bottom: 5px;
  }

  .date-detail {
    font-size: 0.75rem;
  }

  /* Tabela z lepszymi komórkami */
  table th, table td {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  /* Mniejszy tekst w nagłówkach tabeli */
  table th {
    font-size: 0.85rem;
  }

  /* Usprawnienia dla paska postępu */
  .background-progress-container {
    width: 280px;
    padding: 10px 12px;
  }

  .background-progress-text {
    font-size: 12px;
  }
}

/* Jeszcze mniejsze ekrany */
@media (max-width: 576px) {
  .footer {
    padding: 15px 0;
  }

.footer-content{
    gap: 5px; /*zmniejszony gap*/
}

  .footer p {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 5px 0;
  }

  .contact-info, .github-link {
    width: 180px;
    display: flex;
    justify-content: center;
    padding: 8px 15px;
    margin: 3px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .stat-card {
    height: 130px; /* Jeszcze bardziej kompaktowe */
  }

  .tab-content {
    padding: 15px 10px; /* Mniej marginesów na bardzo małych ekranach */
  }

  /* Mniejsze paddingi dla tabel */
  table th, table td {
    padding: 8px 10px;
  }

  /* Ukrywanie mniej ważnych kolumn na bardzo małych ekranach */
  .hide-on-mobile {
    display: none;
  }

  /* Lepsze wyświetlanie pełnych przycisków w tabeli */
  table td .btn {
    padding: 8px 10px;
    font-size: 0.85rem;
    display: block;
    width: 100%;
    white-space: nowrap;
  }

  /* Pasek postępu */
  .background-progress-container {
    right: 10px;
    bottom: 10px;
    width: calc(100% - 20px);
    max-width: 300px;
  }

  header h1 {
    font-size: 1.4rem;
  }

  /* Czcionki nie mogą być za małe - ograniczenie */
  body {
    font-size: 14px;
  }
}

/* Bardzo małe ekrany (iPhone SE, stare telefony) */
@media (max-width: 375px) {
  .container {
    padding: 8px;
  }

  /* Jednoliniowe zakładki */
  .tab {
    font-size: 0.8rem;
    padding: 10px 5px;
  }

  /* Kompaktowy chart */
  .chart-container {
    height: 200px;
  }

  /* Mniejsze elementy formularza */
  .form-control, input[type="date"] {
    padding: 8px 10px;
  }

  /* Przyciski bez marginesów bocznych */
  .btn {
    padding: 8px 10px;
  }

  /* Tabela jeszcze bardziej kompaktowa */
  table th, table td {
    padding: 6px 8px;
    font-size: 0.8rem;
  }

  .card {
    padding: 15px 10px;
  }

  /* Bardzo kompaktowe statystyki */
  .stat-card {
    height: 110px;
    padding: 10px 8px;
  }

  .stat-card .value {
    font-size: 1.5rem;
  }

  .background-progress-container {
    padding: 8px 10px;
  }
}

/* Style dla stopki */
.footer {
  background-color: #f8f9fa;
  padding: 0;
  text-align: center;
  border-top: 1px solid #dee2e6;
  margin-top: 30px; /* Odstęp od reszty treści */
}

.footer-disclaimer {
  background-color: #f1f3f4;
  border-bottom: 1px solid #e5e7eb;
  padding: 15px 20px;
  text-align: center;
}

.footer-disclaimer p {
  margin: 0;
  font-size: 0.85em;
  color: #6b7280;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.footer-disclaimer strong {
  color: #374151;
  font-weight: 600;
}

.footer-content {
  display: flex;
  flex-direction: column; /* Układ pionowy */
  align-items: center; /* Wyśrodkowanie w poziomie */
  gap: 5px; /* Odstęp między elementami */
  padding: 20px 0;
}

.footer-item {
  margin-bottom: 5px; /* Odstęp między elementami */
}

.footer-item a {
  color: #333;
  text-decoration: none;
}

/* Styl dla informacji o źródle danych */
.source-info {
  font-size: 0.8em; /* Mniejsza czcionka */
  color: #6c757d; /* Szary kolor */
}

.contact-info.copied {
    transition: color 0.3s ease-in-out; /* Płynne przejście koloru */
}

/*Usuniecie podkreslenia dla linku github*/
.footer-item a.github-link:hover {
    text-decoration: none;
}

/* Widget aktualnej ceny */
.current-price-container {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 15px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  max-width: 280px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: center;
}

.current-price-title {
  font-size: 1rem;
  color: white;
  margin-bottom: 8px;
  font-weight: 500;
}

.current-price-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.current-price-value.price-low {
  color: #b3ffb3; /* Jaśniejszy zielony dla białego tła */
  text-shadow: 0 0 10px rgba(46, 204, 113, 0.6);
}

.current-price-value.price-high {
  color: #ffb3b3; /* Jaśniejszy czerwony dla białego tła */
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

.current-price-hour {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

/* Struktura nagłówka z widgetem po prawej */
.header-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.header-left-column {
  flex: 3;
  min-width: 300px;
}

.header-right-column {
  flex: 1;
  min-width: 250px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-title-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.title-text {
  display: flex;
  flex-direction: column;
  margin-left: 15px;
}

.title-text h1 {
  margin-bottom: 5px;
  line-height: 1.2;
}

.title-text .opis {
  margin-top: 0;
  font-size: 1rem;
  opacity: 0.9;
}

.opis-podtytul {
  text-align: left;
  margin-top: 0;
  font-size: 1rem;
  opacity: 0.9;
  padding-top: 10px;
  border-top: none;
}

/* Responsywność dla małych ekranów */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  
  .header-left-column {
    width: 100%;
    text-align: center;
  }
  
  .header-right-column {
    width: 100%;
    justify-content: center;
  }
  
  .logo-title-container {
    flex-direction: column;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .title-text {
    margin-left: 0;
    align-items: center;
    margin-top: 10px;
    text-align: center;
  }
  
  .opis-podtytul {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 10px;
  }
  
  .current-price-container {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }
}

/* Dodatkowe poprawki dla jeszcze mniejszych ekranów */
@media (max-width: 576px) {
  .title-text h1 {
    font-size: 1.3rem;
  }
  
  .opis, .opis-podtytul {
    font-size: 0.9rem;
  }
  
  .current-price-value {
    font-size: 2rem;
  }
  
  .current-price-hour {
    font-size: 0.85rem;
  }
  
  header {
    padding: 15px 0 10px;
  }
}

/* Objaśnienie pod wykresem */
.chart-explanation {
  margin-top: 15px;
  padding: 10px;
  background-color: rgba(52, 152, 219, 0.1);
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.chart-explanation p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-color);
}

.chart-explanation i {
  color: var(--primary-color);
  margin-right: 5px;
}

/* Legenda wykresu */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  align-items: center;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-color);
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

/* Wskaźnik aktualnego czasu */
.current-time-indicator {
  background: linear-gradient(135deg, #FF6B35, #F7931E);
  color: white;
  padding: 8px 15px;
  border-radius: 8px;
  text-align: center;
  margin: 10px 0;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
  animation: pulse-glow 2s infinite;
}

.current-time-indicator i {
  margin-right: 8px;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
  }
  50% {
    box-shadow: 0 3px 15px rgba(255, 107, 53, 0.5);
  }
}

/* Style dla przycisków - na wypadek braku Bootstrapa */
.btn-group {
  display: flex;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Style responsywne */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .chart-container {
    height: 400px;
  }
  
  .control-panel {
    flex-direction: column;
    align-items: stretch;
  }
  
  .form-group {
    min-width: 100%;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .chart-container {
    height: 350px;
  }
  
  .btn {
    width: 100%;
  }
}

/* Style dla przycisków API */
.api-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
  justify-content: space-between;
}

.api-buttons .btn {
  flex: 1;
  min-width: 100px;
  text-align: center;
  padding: 10px 15px;
}

.btn-info {
  background-color: #17a2b8;
  color: white;
}

.btn-info:hover {
  background-color: #138496;
}

.btn-success {
  background-color: #28a745;
  color: white;
}

.btn-success:hover {
  background-color: #218838;
}

.data-availability-info {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  color: #856404;
  padding: 10px 15px;
  border-radius: 4px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  width: 100%;
}

.data-availability-info i {
  margin-right: 10px;
  font-size: 18px;
  color: #f39c12;
}

/* Analityka i rekomendacje */
.recommendations-card {
  margin-bottom: 30px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.recommendations-card h2 {
  color: white;
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
  font-weight: 600;
}

.recommendations-card h2 i {
  margin-right: 10px;
  color: #ffd700;
}

.recommendations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.recommendation-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.recommendation-item.full-width {
  grid-column: 1 / -1;
}

.recommendation-item h3 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.recommendation-item h3 i {
  margin-right: 8px;
  color: #ffd700;
}

.recommendation-desc {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.hours-list {
  list-style: none;
  padding: 0;
}

.hours-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  margin-bottom: 5px;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hours-list .time {
  font-weight: 600;
  color: #ffd700;
}

.hours-list .price {
  color: white;
  font-weight: 500;
}

.recommendation-text {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  line-height: 1.6;
}

.next-cheap-hours {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cheap-hour {
  background: rgba(255, 215, 0, 0.2);
  color: #ffd700;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  border: 1px solid rgba(255, 215, 0, 0.3);
}

/* Statusy rekomendacji */
.recommendation-status {
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.recommendation-status.good {
  background: rgba(46, 204, 113, 0.2);
  border: 1px solid rgba(46, 204, 113, 0.3);
  color: #27ae60;
}

.recommendation-status.average {
  background: rgba(241, 196, 15, 0.2);
  border: 1px solid rgba(241, 196, 15, 0.3);
  color: #f39c12;
}

.recommendation-status.poor {
  background: rgba(231, 76, 60, 0.2);
  border: 1px solid rgba(231, 76, 60, 0.3);
  color: #e74c3c;
}

.recommendation-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.recommendation-details span {
  display: block;
}

/* Kompaktowy układ kontrolek */
.controls-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.control-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.control-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.compact-option {
  position: relative;
  cursor: pointer;
  padding: 1rem;
  border: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-md);
  background: white;
  transition: all 0.3s ease;
  display: block;
}

.compact-option:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.compact-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Style dla opcji sposób wyświetlania cen */
.control-item:first-child .compact-option input[type="radio"]:checked + .option-content {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.control-item:first-child .compact-option input[type="radio"]:checked + .option-content .option-description {
  color: rgba(255, 255, 255, 0.9);
}

.control-item:first-child .compact-option:hover {
  border-color: var(--primary-color);
}

/* Style dla opcji typ wykresu */
.control-item:last-child .compact-option input[type="radio"]:checked + .option-content {
  background: var(--gradient-success);
  color: white;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
}

.control-item:last-child .compact-option input[type="radio"]:checked + .option-content .option-description {
  color: rgba(255, 255, 255, 0.9);
}

.control-item:last-child .compact-option:hover {
  border-color: var(--success-color);
}

.compact-option .option-content {
  text-align: center;
  transition: all 0.3s ease;
}

.compact-option .option-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.compact-option .option-description {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.4;
}

/* Responsywność dla kompaktowych kontrolek */
@media (max-width: 768px) {
  .controls-compact {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }

  .control-options {
    gap: 0.75rem;
  }

  .compact-option {
    padding: 0.875rem;
  }

  .compact-option .option-title {
    font-size: 0.9rem;
  }

  .compact-option .option-description {
    font-size: 0.8rem;
  }
}

/* Sekcja informacyjna o taryfie dynamicznej */
.dynamic-tariff-info {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  overflow: hidden;
  color: white;
}

.info-header {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-header h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.info-content {
  padding: 0;
}

/* Style dla zdjęcia głównego */
.hero-image-container {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease;
}

.hero-image:hover {
  transform: scale(1.02);
}

.image-caption {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

.info-legal,
.info-requirements,
.info-purpose,
.info-benefits {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-benefits {
  border-bottom: none;
}

.legal-header,
.requirements-header,
.purpose-header,
.benefits-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #ffd700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-content,
.requirements-content,
.purpose-content,
.benefits-content {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
}

.legal-content strong,
.requirements-content strong,
.purpose-content strong,
.benefits-content strong {
  color: #ffd700;
  font-weight: 600;
}

/* Mobile responsywność dla sekcji taryfy dynamicznej */
@media (max-width: 768px) {
  .info-header {
    padding: 1rem;
  }

  .info-header h3 {
    font-size: 1.25rem;
  }

  .hero-image-container {
    padding: 1rem;
  }

  .image-caption {
    font-size: 0.8rem;
  }

  .info-legal,
  .info-requirements,
  .info-purpose,
  .info-benefits {
    padding: 1rem;
  }

  .legal-header,
  .requirements-header,
  .purpose-header,
  .benefits-header {
    font-size: 1rem;
  }

  .legal-content,
  .requirements-content,
  .purpose-content,
  .benefits-content {
    font-size: 0.9rem;
  }
}

/* Banner informacyjny o godzinach publikacji */
.time-info-banner {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 1.5rem;
  overflow: hidden;
  position: relative;
}

.time-info-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
              linear-gradient(-45deg, rgba(255,255,255,0.1) 25%, transparent 25%), 
              linear-gradient(45deg, transparent 75%, rgba(255,255,255,0.1) 75%), 
              linear-gradient(-45deg, transparent 75%, rgba(255,255,255,0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.3;
  pointer-events: none;
}

.time-info-content {
  display: flex;
  align-items: center;
  padding: 1.25rem 1.5rem;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.time-info-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

.time-info-text {
  flex: 1;
  color: white;
}

.time-info-text strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.time-info-text span {
  font-size: 0.95rem;
  opacity: 0.95;
  line-height: 1.4;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Mobile responsywność dla banera informacyjnego */
@media (max-width: 768px) {
  .time-info-content {
    padding: 1rem;
    gap: 0.75rem;
  }

  .time-info-icon {
    font-size: 1.5rem;
  }

  .time-info-text strong {
    font-size: 1rem;
    margin-bottom: 0.375rem;
  }

  .time-info-text span {
    font-size: 0.875rem;
  }
}

/* Tabela godzinowych cen energii */
.hourly-prices-table-section {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  overflow: hidden;
}

.table-header {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  color: white;
  padding: 2rem;
  text-align: center;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.table-header h2 {
  margin: 0 0 0.75rem 0;
  font-size: 1.75rem;
  font-weight: 700;
}

.table-description {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
  line-height: 1.5;
}

.table-container {
  padding: 2rem;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.table-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.summary-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.summary-label {
  font-size: 0.875rem;
  color: #64748b;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.summary-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1e293b;
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-md);
}

.hourly-prices-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.hourly-prices-table th {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 10;
}

.hourly-prices-table th:first-child {
  border-top-left-radius: var(--radius-lg);
}

.hourly-prices-table th:last-child {
  border-top-right-radius: var(--radius-lg);
}

.hourly-prices-table th small {
  display: block;
  font-weight: 400;
  opacity: 0.8;
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.hourly-prices-table td {
  padding: 0.875rem 0.75rem;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.hourly-prices-table tbody tr:last-child td:first-child {
  border-bottom-left-radius: var(--radius-lg);
}

.hourly-prices-table tbody tr:last-child td:last-child {
  border-bottom-right-radius: var(--radius-lg);
}

.hourly-prices-table tbody tr:last-child td {
  border-bottom: none;
}

.hourly-prices-table tbody tr:hover {
  background-color: #f8fafc;
}

.hourly-prices-table tbody tr:nth-child(even) {
  background-color: #fafafa;
}

.hourly-prices-table tbody tr:nth-child(even):hover {
  background-color: #f1f5f9;
}

.no-data {
  text-align: center !important;
  color: #64748b;
  font-style: italic;
  padding: 2rem !important;
}

/* Status kolorów dla wierszy */
.price-row-low {
  background-color: #dcfce7 !important;
}

.price-row-low:hover {
  background-color: #bbf7d0 !important;
}

.price-row-medium {
  background-color: #fefce8 !important;
}

.price-row-medium:hover {
  background-color: #fef3c7 !important;
}

.price-row-high {
  background-color: #fef2f2 !important;
}

.price-row-high:hover {
  background-color: #fecaca !important;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  box-shadow: var(--shadow-sm);
}

.status-low {
  background-color: #22c55e;
  color: white;
}

.status-medium {
  background-color: #eab308;
  color: white;
}

.status-high {
  background-color: #ef4444;
  color: white;
}

/* Legenda */
.table-legend {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  border: 1px solid #e2e8f0;
  box-shadow: var(--shadow-sm);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

.legend-color {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.legend-color.low {
  background-color: #22c55e;
}

.legend-color.medium {
  background-color: #eab308;
}

.legend-color.high {
  background-color: #ef4444;
}

/* Mobile responsywność dla tabeli */
@media (max-width: 768px) {
  .table-header {
    padding: 1.5rem 1rem;
  }

  .table-header h2 {
    font-size: 1.5rem;
  }

  .table-description {
    font-size: 1rem;
  }

  .table-container {
    padding: 1rem;
  }

  .table-summary {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 1rem;
  }

  .hourly-prices-table {
    font-size: 0.8rem;
  }

  .hourly-prices-table th,
  .hourly-prices-table td {
    padding: 0.5rem 0.375rem;
  }

  .table-legend {
    gap: 1rem;
    justify-content: flex-start;
  }

  .legend-item {
    font-size: 0.8rem;
  }
}

/* ========================================
   Sekcja FAQ
   ======================================== */

.faq-section {
  margin: 3rem 0;
}

.faq-header {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-header h2 {
  color: var(--dark-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-description {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
  flex: 1;
  padding-right: 1rem;
}

.faq-question i {
  color: var(--primary-color);
  transition: transform 0.3s ease;
  font-size: 1rem;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  background: white;
}

.faq-item.active .faq-answer {
  padding: 1.5rem;
  max-height: 500px;
}

.faq-answer p {
  margin: 0;
  color: var(--text-light);
  line-height: 1.6;
  font-size: 1rem;
}

.faq-answer strong {
  color: var(--dark-color);
  font-weight: 600;
}

/* Responsywność dla FAQ */
@media (max-width: 768px) {
  .faq-header h2 {
    font-size: 1.5rem;
  }
  
  .faq-description {
    font-size: 1rem;
  }
  
  .faq-question {
    padding: 1rem;
  }
  
  .faq-question h3 {
    font-size: 1rem;
  }
  
  .faq-item.active .faq-answer {
    padding: 1rem;
  }
}

/* ========================================
   Sekcja opinii użytkowników
   ======================================== */

.testimonials-section {
  margin: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 3rem 0;
  border-radius: var(--radius-xl);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  color: var(--dark-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonials-description {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-quote {
  position: relative;
  margin-bottom: 1.5rem;
}

.testimonial-quote .fa-quote-left {
  position: absolute;
  top: -10px;
  left: -10px;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-quote .fa-quote-right {
  position: absolute;
  bottom: -10px;
  right: -10px;
  font-size: 1.5rem;
  color: var(--primary-color);
  opacity: 0.3;
}

.testimonial-quote p {
  margin: 0;
  line-height: 1.6;
  color: var(--dark-color);
  font-size: 1rem;
  padding: 0 1rem;
  font-style: italic;
}

.testimonial-quote strong {
  color: var(--success-color);
  font-weight: 700;
  font-style: normal;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-color);
}

.author-info span {
  color: var(--text-light);
  font-size: 0.9rem;
  display: block;
  margin-top: 0.2rem;
}

.author-location {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}

.testimonial-stats {
  display: flex;
  justify-content: space-around;
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-top: 1rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.2rem;
}

.testimonials-cta {
  text-align: center;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--primary-color);
}

.testimonials-cta p {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark-color);
}

.testimonials-cta strong {
  color: var(--primary-color);
}

/* Responsywność dla opinii */
@media (max-width: 768px) {
  .testimonials-section {
    padding: 2rem 0;
    margin: 2rem 0;
  }
  
  .testimonials-header h2 {
    font-size: 1.5rem;
  }
  
  .testimonials-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .stat-value {
    font-size: 1rem;
  }
}