* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Roboto', Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
  }
  
  .container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  header {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  
  header h1 {
    font-size: 2.5em;
    color: #00d4ff;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.7);
  }
  
  header p {
    font-size: 1.2em;
    color: #a0a0a0;
  }
  
  .content {
    display: flex;
    gap: 20px;
  }
  
  .controls {
    width: 300px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .game-selection, .filters {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .game-selection h2, .filters h2 {
    font-size: 1.5em;
    color: #ff007a;
    margin-bottom: 10px;
  }
  
  .game-selection label, .filter-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
    font-size: 1.1em;
  }
  
  .filter-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  input[type="range"], input[type="number"], select {
    width: 100%;
    padding: 5px;
    border: none;
    border-radius: 5px;
    background: #2a2a3e;
    color: #e0e0e0;
  }
  
  input[type="range"] {
    appearance: none;
    height: 5px;
    background: #00d4ff;
    border-radius: 5px;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 15px;
    height: 15px;
    background: #ff007a;
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="number"] {
    width: 60px;
  }
  
  select {
    width: 100px;
  }
  
  .primary-btn, .secondary-btn, .toggle-btn {
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  .primary-btn {
    background: linear-gradient(135deg, #00d4ff, #007bff);
    color: #fff;
  }
  
  .primary-btn:hover {
    background: linear-gradient(135deg, #00b4ff, #005bff);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.7);
  }
  
  .secondary-btn {
    background: linear-gradient(135deg, #ff007a, #ff00b4);
    color: #fff;
  }
  
  .secondary-btn:hover {
    background: linear-gradient(135deg, #ff005a, #ff0094);
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.7);
  }
  
  .toggle-btn {
    background: #2a2a3e;
    color: #00d4ff;
  }
  
  .toggle-btn:hover {
    background: #3a3a4e;
    color: #ff007a;
  }
  
  button:disabled {
    background: #4a4a5e;
    cursor: not-allowed;
    opacity: 0.6;
  }
  
  .results {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .status, .numbers, .history, .past-wins {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  }
  
  h2 {
    font-size: 1.5em;
    color: #00d4ff;
    margin-bottom: 10px;
  }
  
  .status-text {
    background: #2a2a3e;
    padding: 10px;
    border-radius: 5px;
    font-size: 0.9em;
    color: #e0e0e0;
    white-space: pre-wrap;
  }
  
  .progress-bar {
    width: 100%;
    height: 8px;
    background: #4a4a5e;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
  }
  
  #progressFill {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #ff007a);
    width: 0%;
    transition: width 0.5s ease;
  }
  
  .ball-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .ball {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2em;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  
  .main-ball {
    background: #fff;
    color: #1a1a2e;
  }
  
  .powerball {
    background: #ff007a;
    color: #fff;
  }
  
  .megaball {
    background: #ffd700;
    color: #1a1a2e;
  }
  
  .ball-label {
    font-size: 0.9em;
    color: #a0a0a0;
    margin-left: 10px;
  }
  
  .feedback {
    font-size: 0.9em;
    color: #e0e0e0;
    background: #2a2a3e;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
    white-space: pre-wrap;
  }
  
  .history-list {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .history-entry {
    padding: 10px;
    background: #2a2a3e;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  
  .history-ball {
    width: 24px;
    height: 24px;
    line-height: 24px;
    border-radius: 12px; /* Fully rounded for 24px size; adjust to 8px for softer rounding */
    font-weight: bold;
    font-size: 0.9em;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }
  
  .past-draws {
    max-height: 200px;
    overflow-y: auto;
  }
  
  .draw-entry {
    padding: 10px;
    background: #2a2a3e;
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #e0e0e0;
    display: flex;
    gap: 5px;
    align-items: center;
  }