/* Ogólne ustawienia, rezerwacja przestrzeni, nowoczesny design */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(135deg, #74ABE2, #5563DE);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }
  
  .container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    height: 90vh;
  }
  
  .wheel-container, .config-container {
    flex: 1;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  
  .wheel-container {
    background: #f0f4f8;
    position: relative;
    border-right: 1px solid #e0e0e0;
  }
  
  .config-container {
    background: #fff;
    align-items: stretch;
  }
  
  /* Canvas z ustalonymi wymiarami */
  canvas {
    border: none;
    background: radial-gradient(circle, #fff, #e0e0e0);
    border-radius: 50%;
    width: 400px;
    height: 400px;
  }
  
  .spin-button, .preset-button, .custom-button {
    margin-top: 20px;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    background: #5563DE;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  .spin-button:hover, .preset-button:hover, .custom-button:hover {
    background: #4452c4;
    transform: scale(1.03);
  }
  
  /* Rezerwacja przestrzeni dla wyniku */
  #result {
    margin-top: 25px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    min-height: 30px;
  }
  
  /* Wewnętrzny nagłówek w konfiguratorze */
  .config-header {
    text-align: center;
    margin-bottom: 20px;
  }
  
  .config-header h1 {
    margin: 0;
    font-size: 28px;
    color: #333;
  }
  
  .config-header p {
    margin: 10px 0 0;
    font-size: 16px;
    color: #555;
  }
  
  /* Sekcja konfiguratora – własna lista */
  .custom-section {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .custom-section h3 {
    margin: 10px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
  }
  
  /* Textarea do wprowadzania własnych opcji */
  .custom-section textarea {
    padding: 10px;
    font-size: 16px;
    width: calc(100% - 140px);
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border 0.3s;
    resize: vertical;
  }
  
  .custom-section textarea:focus {
    border-color: #5563DE;
    outline: none;
  }
  
  .custom-section .custom-button {
    width: 120px;
    margin-left: 10px;
  }
  
  /* Sekcja preset */
  .preset-section {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .preset-section h3 {
    margin: 10px 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
  }
  
  .preset-section label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-size: 16px;
    color: #555;
  }
  
  .preset-section select,
  .preset-section input {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border 0.3s;
  }
  
  .preset-section select:focus,
  .preset-section input:focus {
    border-color: #5563DE;
    outline: none;
  }
  
  /* Lista – stała wysokość z przewijaniem */
  .option-list {
    margin-top: 20px;
    height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    background: #f9f9f9;
  }
  
  .option-item {
    padding: 8px;
    margin-bottom: 5px;
    border-bottom: 1px solid #ddd;
    color: #555;
    display: flex;
    align-items: center;
  }
  
  .option-item:last-child {
    border-bottom: none;
  }
  
  /* Kontener dla przycisków edycji i usuwania */
  .option-actions {
    margin-left: auto;
    display: flex;
    gap: 5px;
  }
  
  .edit-button, .delete-button {
    padding: 5px 10px;
    font-size: 14px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .edit-button {
    background-color: #ffc107;
    color: #fff;
  }
  
  .edit-button:hover {
    background-color: #e0a800;
  }
  
  .delete-button {
    background-color: #dc3545;
    color: #fff;
  }
  
  .delete-button:hover {
    background-color: #c82333;
  }
  
  /* Sekcja SEO */
  .seo-section {
    width: 90%;
    max-width: 1200px;
    background: #fff;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .seo-section h2 {
    margin-top: 0;
    color: #333;
  }
  
  .seo-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
  }
  
  .main-menu {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
  }
  
  .main-menu ul {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    display: flex;
    justify-content: center;
  }
  
  .main-menu li {
    margin: 0 15px;
  }
  
  .main-menu a {
    text-decoration: none;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    transition: color 0.3s;
  }
  
  .main-menu a:hover {
    color: #5563DE;
  }
  