#watermark-top {
    position: absolute;
    top: 8px;
    left: 350px;
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: rgba(0,0,0,0.75);
    pointer-events: none;
    user-select: none;
  }

  #watermark-bottom {
    position: absolute;
    bottom: 6px;
    right: 12px;
    font-size: 11px;
    font-family: 'Poppins', sans-serif;
    color: rgba(0,0,0,0.55);
    pointer-events: none;
    user-select: none;
  }

  /* כפתור + חלון קיצורי דרך - נשארים, אבל בלי top-bar */
  .shortcuts-toggle {
    position: fixed;
    top: 10px;
    right: 20px;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    border: 1px solid #007bff;
    background: #ffffff;
    color: #007bff;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    z-index: 2000;
  }

  .shortcuts-panel {
    position: fixed;
    right: 20px;
    top: 40px;
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    padding: 8px 10px;
    font-size: 12px;
    z-index: 2000;
    border-radius: 4px;
  }

  .shortcuts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
  }

  .shortcuts-close {
    background: none;
    border: none;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    color: #555;
  }

  .shortcuts-close:hover {
    color: #000;
  }

  .shortcuts-panel ul {
    padding-left: 16px;
    margin: 4px 0 0 0;
  }

  .shortcuts-panel li {
    margin-bottom: 3px;
  }

  /* שאר העיצוב – בדיוק כמו בקוד 2 */
  * { box-sizing: border-box; }
  body {
    margin: 0;
    padding: 0;
    background: #f4f4f4;
    font-family: Arial, Helvetica, sans-serif;
  }
  .app { display: flex; height: 100vh; width: 100vw; }

  .sidebar {
    /* Prevent the sidebar from shrinking so its 340px width is respected */
    flex-shrink: 0;
    width: 340px;
    background: #ffffff;
    border-right: 1px solid #ddd;
    padding: 12px 14px;
    overflow-y: auto;
  }
  .section { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid #e0e0e0; }
  .section h2 { font-size: 16px; margin: 0 0 8px 0; }
  .section small { color: #777; }
  label { display: block; font-size: 13px; margin-top: 6px; margin-bottom: 2px; }

  input[type="number"], input[type="text"] {
    width: 100%; padding: 5px 7px; font-size: 13px;
    border-radius: 4px; border: 1px solid #ccc;
  }

  button {
    margin-top: 8px; padding: 6px 10px; font-size: 13px;
    border-radius: 4px; border: 1px solid #007bff;
    background: #007bff; color: #fff; cursor: pointer;
  }
  button.secondary { background: #ffffff; color: #007bff; }
  button:disabled { opacity: 0.6; cursor: not-allowed; }

  .button-row { display: flex; gap: 6px; flex-wrap: wrap; }

  .canvas-wrapper {
    flex: 1; display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 10px; gap: 8px;
  }
  .canvas-scroll {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    max-height: 750px;
    border: 1px solid #ccc;
    background: #e9e9e9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: grab;
    position: relative;
    touch-action: none; /* prevent default touch gestures and enable pointer handling */
  }
  .canvas-scroll.grabbing { cursor: grabbing; }

  #roomCanvas { background: #fafafa; display: block; }

  .info-bar {
    font-size: 13px; color: #444; width: 100%; max-width: 1200px;
    display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap;
  }
  .info-bar span { white-space: nowrap; }
  .tag {
    display: inline-block; border-radius: 4px; padding: 2px 6px;
    background: #eef5ff; border: 1px solid #c9ddff; font-size: 11px;
  }
  .mode-active { background: #0056b3; color: #ffffff; border-color: #0056b3; }

  /* Mobile control buttons for undo/redo and zoom. Hidden by default and displayed
     only on small screens via media query. Positioned over the canvas in the bottom
     right corner. */
  .mobile-controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    z-index: 4000;
  }
  .mobile-controls button {
    width: 48px;
    height: 48px;
    border-radius: 24px;
    border: none;
    font-size: 24px;
    line-height: 1;
    background: #007bff;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    cursor: pointer;
  }
  .mobile-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }

  /* Responsive layout for mobile devices */
  @media (max-width: 700px) {
    .app {
      flex-direction: column;
      height: auto;
      min-height: 100vh;
    }
    .sidebar {
      width: 100%;
      max-width: 100%;
      max-height: 45vh;
      border-right: none;
      border-bottom: 1px solid #ddd;
      overflow-y: auto;
    }
    .canvas-wrapper {
      flex: none;
      width: 100%;
    }
    .canvas-scroll {
      width: 100%;
      max-width: 100%;
      max-height: none;
      height: 50vh;
    }
    .info-bar {
      max-width: 100%;
    }
    /* show the mobile controls on narrow screens */
    .mobile-controls {
      display: flex;
    }
    /* hide the Buy me a coffee button on small screens */
    .buy-coffee-btn {
      display: none;
    }
  }
  
  .buy-coffee-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ffdd00;
  color: #000;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.buy-coffee-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Walkthrough modal */
.walkthrough-overlay {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45); z-index: 3000;
  display: flex; align-items: center; justify-content: center;
}
.walkthrough-modal {
  width: 720px; max-width: 92%; background: #fff; border-radius: 8px; padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25); font-size: 14px; color: #111;
}
.walkthrough-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.walkthrough-close { background:none; border:0; font-size:20px; cursor:pointer; }
.walkthrough-steps { max-height: 60vh; overflow:auto; padding-right:8px; }
.walkthrough-steps li { margin-bottom:8px; }
