body {
    margin: 0;
    background: #111;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
  }
  
  /* Simulation container */
  .simulation-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
  }
  
  canvas {
    display: block;
    background: #222;
    max-width: 100%;
    max-height: 100vh;
  }
  
  /* Control buttons */
  #controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #444;
    backdrop-filter: blur(5px);
  }

  #controls button {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
  }

  #controls button:hover {
    background: #45a049;
    transform: scale(1.05);
  }

  #controls button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
  }

  #resetBtn {
    background: #f44336;
  }

  #resetBtn:hover {
    background: #da190b;
  }

  /* Configuration Modal */
  #configModal .modal-content {
    background-color: #222;
    margin: 15% auto;
    padding: 20px;
    border: 2px solid #444;
    border-radius: 12px;
    width: 350px;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  #configModal h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
  }

  .config-item {
    margin: 15px 0;
  }

  .config-item label {
    position: relative;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: white;
    font-family: Arial, sans-serif;
  }

  .config-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid #444;
    border-radius: 4px;
    background: #333;
    color: white;
    font-size: 14px;
    box-sizing: border-box;
  }

  .config-item input:focus {
    outline: none;
    border-color: #4CAF50;
  }

  .config-item input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
  }

  .config-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid #45a049;
  }

  .config-item input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #4CAF50;
    cursor: pointer;
    border: 2px solid #45a049;
  }

  .config-item input[type="range"]:focus {
    outline: none;
  }

  .config-item label span {
    color: #4CAF50;
    font-weight: normal;
  }

  #startSimulationBtn {
    width: 100%;
    padding: 12px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: all 0.3s ease;
  }

  #startSimulationBtn:hover {
    background: #45a049;
    transform: scale(1.02);
  }
  
  /* Bottom buttons container */
  .bottom-buttons {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
  }

  /* Info Button */
  .info-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .info-button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #666;
    transform: scale(1.05);
  }
  
  /* Statistics Button */
  .stats-button {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: 2px solid #444;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
  }

  .stats-button:hover {
    background: rgba(0, 0, 0, 0.9);
    border-color: #666;
    transform: scale(1.05);
  }

  /* Modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
  }

  .modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .modal-content {
    background-color: #222;
    padding: 0;
    border: 2px solid #444;
    border-radius: 12px;
    width: 650px;
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #444;
    background: #333;
    border-radius: 10px 10px 0 0;
  }

  .modal-header h2 {
    margin: 0;
    color: white;
    font-family: Arial, sans-serif;
  }

  .close-button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .close-button:hover {
    background: #444;
    color: white;
  }

  .modal-body {
    padding: 25px;
    background: #222;
    border-radius: 0 0 10px 10px;
  }

  #graphCanvas {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
  }

  /* Info Icon Styles */
  .info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: #888;
    font-size: 11px;
    font-weight: bold;
    margin-left: 6px;
    cursor: help;
    transition: all 0.2s ease;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
  }

  .info-icon:hover {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
    transform: scale(1.1);
  }

  /* Tooltip styles (using native title attribute) */
  .config-item label:hover .info-icon::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    font-weight: normal;
    pointer-events: none;
  }

  .config-item label:hover .info-icon::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 1px;
    pointer-events: none;
  }

  /* Info Modal Specific Styles */
  .info-modal-content {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 12px;
    position: relative;
  }

  .info-modal-content .modal-header {
    position: sticky;
    top: 0;
    background-color: #2a2a2a;
    z-index: 10;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    padding: 20px 25px 15px 25px;
  }

  .info-modal-body {
    padding: 25px;
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 14px;
  }

  .info-section {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .info-section:last-child {
    margin-bottom: 0;
  }

  .info-section h3 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
  }

  .info-section p {
    margin-bottom: 15px;
    text-align: justify;
    color: #d0d0d0;
  }

  .info-section ul {
    margin: 15px 0;
    padding-left: 20px;
  }

  .info-section li {
    margin-bottom: 10px;
    text-align: justify;
    color: #d0d0d0;
  }

  .info-section strong {
    color: #ffffff;
    font-weight: 600;
  }

  .parameter-grid {
    display: grid;
    gap: 18px;
  }

  .parameter-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .parameter-item strong {
    color: #ffffff;
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
  }
  