/* עיצוב פשוט ומינימלי בכוונה - בלי אפקטים, בלי אנימציות, בלי צללים */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: #fafafa;
  color: #1a1a1a;
  font-family: -apple-system, "Segoe UI", Arial, "Helvetica Neue", sans-serif;
  direction: rtl;
  line-height: 1.5;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px 64px;
}

header.site {
  text-align: center;
  margin-bottom: 24px;
}

header.site h1 {
  font-size: 22px;
  margin: 0 0 4px;
}

header.site p {
  margin: 0;
  color: #666;
  font-size: 13px;
}

.box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 6px;
}

textarea {
  width: 100%;
  min-height: 160px;
  padding: 10px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #999;
  resize: vertical;
  margin-bottom: 16px;
}

.views-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.views-row label {
  margin-bottom: 0;
  white-space: nowrap;
}

input[type="number"] {
  width: 70px;
  padding: 6px;
  font-size: 15px;
  border: 1px solid #999;
}

button, .btn {
  display: inline-block;
  background: #222;
  color: #fff;
  border: 1px solid #222;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}

button:hover, .btn:hover {
  background: #444;
}

button.secondary, .btn.secondary {
  background: #fff;
  color: #222;
}

button.secondary:hover, .btn.secondary:hover {
  background: #eee;
}

.hint {
  font-size: 12px;
  color: #777;
  margin-top: 4px;
}

.result {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px dashed #ccc;
  display: none;
}

.result.show {
  display: block;
}

.link-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.link-row input[type="text"] {
  flex: 1;
  padding: 8px;
  font-size: 13px;
  border: 1px solid #999;
  background: #f4f4f4;
  color: #333;
  direction: ltr;
  text-align: left;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.warning {
  margin-top: 14px;
  font-size: 13px;
  color: #8a5500;
  background: #fff7e6;
  border: 1px solid #f0d9a0;
  padding: 8px 10px;
}

footer.site {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: #999;
}

/* --- עמוד הצפייה --- */

.view-page {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.view-box {
  background: #fff;
  border: 1px solid #ccc;
  padding: 16px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.view-box canvas {
  max-width: 100%;
  height: auto;
  pointer-events: none;
}

.view-msg {
  color: #555;
  font-size: 15px;
  padding: 12px;
}

.view-note {
  margin-top: 14px;
  font-size: 12px;
  color: #888;
  text-align: center;
}
