
.styler-app {
  max-width: 1450px;
  margin: auto;
  padding: 30px 20px;
  color: #f4f4f8;
}

.styler-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.styler-header h1 {
  font-size: 32px;
  margin: 12px 0 5px;
}

.styler-header p {
  color: #999;
}

.back-link {
  color: #a78bfa;
  text-decoration: none;
}

.styler-badge {
  background: #21183c;
  color: #c9b8ff;
  padding: 11px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.styler-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 25px;
  align-items: start;
}

.styler-panel,
.styler-preview-panel {
  background: #11131d;
  border: 1px solid #292c3c;
  border-radius: 16px;
  padding: 24px;
  min-width: 0;
}

.styler-panel h2,
.styler-preview-panel h2 {
  margin-top: 0;
  font-size: 20px;
}

.styler-panel h3,
.output-section h3 {
  font-size: 15px;
  margin-top: 25px;
  color: #c9b8ff;
}

.styler-panel label {
  display: block;
  margin: 15px 0 8px;
  font-size: 13px;
  color: #bbb;
}

.styler-panel textarea,
.output-section textarea {
  width: 100%;
  box-sizing: border-box;
  background: #090b12;
  border: 1px solid #343747;
  border-radius: 9px;
  padding: 13px;
  color: white;
  font: inherit;
  resize: vertical;
  outline: none;
}

.styler-panel textarea:focus,
.output-section textarea:focus {
  border-color: #9470ff;
}

.format-buttons,
.style-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.format-buttons button,
.style-buttons button {
  background: #202333;
  color: #e5ddff;
  border: 1px solid #35394e;
  padding: 13px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: anywhere;
}

.format-buttons button:hover,
.style-buttons button:hover {
  background: #38275e;
  border-color: #9470ff;
}

.styler-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.primary-btn,
.reset-btn {
  border: 0;
  padding: 13px 17px;
  border-radius: 9px;
  font-weight: bold;
  cursor: pointer;
}

.primary-btn {
  background: #7952e8;
  color: white;
}

.reset-btn {
  background: #303342;
  color: white;
}

#copyStatus {
  color: #b9a5ff;
  font-size: 13px;
}

.discord-preview {
  background: #292b32;
  padding: 20px;
  border-radius: 12px;
  display: flex;
  gap: 12px;
  min-height: 120px;
}

.preview-avatar {
  background: #7952e8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  flex-shrink: 0;
}

.preview-message {
  min-width: 0;
  flex: 1;
}

.preview-username {
  font-weight: bold;
  margin-bottom: 10px;
}

.preview-username span {
  background: #5865f2;
  padding: 3px 5px;
  border-radius: 4px;
  font-size: 10px;
}

.preview-username small {
  color: #aaa;
  font-weight: normal;
  margin-left: 7px;
}

.preview-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #eee;
}

.output-section {
  margin-top: 25px;
}

.output-section textarea {
  margin-bottom: 12px;
}

@media (max-width: 850px) {
  .styler-layout {
    grid-template-columns: 1fr;
  }

  .styler-header {
    align-items: flex-start;
  }
}
