 body {
      font-family: tahoma , sans-serif;
      direction: rtl;
      margin: 0;
      padding: 0;
      background: #f4f6f8;
      color: #333;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: #2c3e50;
      color: #ecf0f1;
      padding: 20px 30px;
      font-size: 20px;
      font-weight: bold;
    }

    header button {
      order: 1;
    }

    #controls {
      display: flex;
      flex-wrap: wrap;
      padding: 15px 30px;
      gap: 10px;
      background: #fff;
      border-bottom: 1px solid #ddd;
    }

    button {
      padding: 10px 15px;
      border: none;
      border-radius: 6px;
      background-color: #3498db;
      color: white;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    button:hover {
      background-color: #2980b9;
    }

    #grid {
      display: grid;
      grid-template-columns: 70px repeat(32, 36px);
      gap: 5px;
      padding: 20px 30px;
      background: #fafafa;
      justify-content: start;
    }

    .cell {
      width: 36px;
      height: 36px;
      border-radius: 4px;
      border: 1px solid #ccc;
      background: #ffffff;
      transition: background 0.2s;
      cursor: pointer;
    }

    .cell.active {
      background: #2c3e50;
    }

    .row-select {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 14px;
      font-weight: bold;
    }

    .row-select input {
      margin-left: 8px;
      transform: scale(1.2);
    }

    
    