body {
  background: #0d0d0f;
  color: #e9e9e9;
  font-family: "Segoe UI", sans-serif;
  text-align: center;
}

.wos-submit-wrapper {
  padding: 20px;
  max-width: 800px;
  margin: 0 auto;
}

h1 {
  color: #ffa000;
  margin-bottom: 15px;
  font-size: 26px;
}

#emoji-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
  width: 100%;
  box-sizing: border-box;
  padding: 0 10px;
}

.emoji-btn {
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.1s ease;
  user-select: none;
}

.emoji-btn:hover {
  transform: scale(1.3);
}

#editor {
  display: block;
  width: 100%;
  max-width: 700px;
  min-height: 200px;
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  text-align: left;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  outline: none;
  margin: 0 auto;
  box-sizing: border-box;
}

#tags-wrapper {
  margin: 15px auto;
  text-align: left;
  width: 100%;
  max-width: 700px;
  color: #ccc;
  box-sizing: border-box;
}

#tags-wrapper label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

#tags-input {
  width: 100%;
  padding: 8px 10px;
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 6px;
  color: #fff;
  font-size: 15px;
  outline: none;
}

#tags-input:focus {
  border-color: #ffa000;
}

#controls {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

button {
  background: #ffa000;
  border: none;
  color: #000;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

button:hover {
  filter: brightness(1.2);
}

.info-emoji {
  display: inline-block;
  margin: 20px auto 0;
  padding: 10px 14px;
  font-size: 15px;
  color: #ffcc80;
  background: rgba(255, 160, 0, 0.08);
  border: 1px solid rgba(255, 160, 0, 0.25);
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 0 6px rgba(255, 160, 0, 0.15);
  backdrop-filter: blur(2px);
  transition: all 0.25s ease;
}

.info-emoji::before {
  content: "💡 ";
  font-size: 16px;
  margin-right: 4px;
}

.info-emoji:hover {
  background: rgba(255, 160, 0, 0.15);
  border-color: rgba(255, 160, 0, 0.35);
  box-shadow: 0 0 10px rgba(255, 160, 0, 0.25);
}
/* === TOOLBAR – grupy emoji === */

#emoji-toolbar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.emoji-group {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  max-width: 720px;
  box-sizing: border-box;
}

.emoji-subtitle {
  color: #ffa000;
  font-weight: 600;
  margin: 10px 0 6px 0;
  font-size: 15px;
  border-bottom: 1px solid #222;
  padding-bottom: 2px;
}

.emoji-group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-bottom: 8px;
}

.emoji-btn {
  cursor: pointer;
  font-size: 22px;
  transition: transform 0.1s ease;
  user-select: none;
  line-height: 1.1;
}

.emoji-btn:hover {
  transform: scale(1.3);
}

/* === LIVE PREVIEW === */
#preview-wrapper {
  margin-top: 25px;
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

#preview-wrapper h2 {
  color: #ffa000;
  margin-bottom: 10px;
  font-size: 18px;
}

#preview-box {
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px;
  color: #fff;
  font-size: 20px;
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  min-height: 100px;
}

/* === MESSAGE BOX === */
#message-box {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 6px;
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}

#message-box.success {
  background-color: #193b1f;
  border: 1px solid #3fa34d;
  color: #b8f2c8;
}

#message-box.error {
  background-color: #3b1f1f;
  border: 1px solid #d9534f;
  color: #ffb8b8;
}

#message-box.info-emoji {
  background-color: #1f2d3b;
  border: 1px solid #4fa3d9;
  color: #b8d8ff;
}

/* === VARIABLES INFO SECTION === */
#variables-info {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  margin: 20px auto;
  max-width: 700px;
  color: #ddd;
}

#variables-info h3 {
  color: #ffa000;
  margin-bottom: 8px;
  font-size: 18px;
}

#variables-info .info-desc {
  font-size: 14px;
  color: #bbb;
  margin-bottom: 10px;
}

#variables-list {
  margin: 15px 0 25px;
  padding: 12px;
  background: #1a1a1f;
  border: 1px solid #333;
  border-radius: 8px;
  color: #ccc;
  text-align: center;
  font-family: monospace;
  font-size: 14px;
  line-height: 1.7;
}

.variable-item {
  display: inline-block;
  margin: 3px 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 160, 0, 0.08);
  color: #ffa000;
  user-select: text;
  cursor: default;
}

.variable-item:hover {
  background: #222;
  border-color: #555;
  color: #ffa000;
}
.back-to-gallery {
  display: inline-block;
  margin-bottom: 15px;
  color: #ffa000;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.back-to-gallery:hover {
  color: #ffbe33;
  text-decoration: underline;
}
/* === Responsywność === */
@media (max-width: 720px) {
  #emoji-toolbar {
    padding: 0 5px;
  }

  .emoji-group {
    padding: 8px;
  }

  .emoji-btn {
    font-size: 20px;
  }

  .emoji-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .emoji-btn {
    font-size: 18px;
  }

  .emoji-group-list {
    gap: 4px;
  }

  .emoji-subtitle {
    font-size: 13px;
    margin: 8px 0 4px 0;
  }
}

@media (max-width: 360px) {
  .emoji-btn {
    font-size: 16px;
  }

  .emoji-subtitle {
    text-align: center;
    font-size: 12px;
  }

  .emoji-group-list {
    justify-content: center;
  }
}