.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

body {
  background: #0b0d10;
  min-height: 100vh;
  line-height: 1.6;
  padding-top: 10vh;
}

header {
  text-align: center;
  margin-bottom: 40px;
  padding: 20px 0;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  background: #e6e8ee;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2rem;
  color: #e6e8ee;
  font-weight: 300;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
}

.section {
  background: #12151a;
  border: 1px solid rgba(114, 137, 218, 0.3);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.section:hover {
  border-color: rgba(114, 137, 218, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.section h2 {
  color: #7289da;
  margin-bottom: 15px;
  font-size: 1.4rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  background: rgba(32, 34, 37, 0.9);
  border: 2px solid rgba(114, 137, 218, 0.3);
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 15px;
  font-size: 14px;
  font-family: inherit;
  transition: all 0.3s ease;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7289da;
  box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.2);
}

textarea {
  min-height: 120px;
}

#jsonInput {
  min-height: 150px;
  font-family: "Courier New", monospace;
}

#generatedCommand {
  min-height: 100px;
  font-family: "Courier New", monospace;
  background: rgba(32, 34, 37, 0.6);
}

.btn {
  background: linear-gradient(45deg, #7289da, #5b73c4);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 10px;
  box-shadow: 0 4px 15px rgba(114, 137, 218, 0.3);
}

.btn:hover {
  background: linear-gradient(45deg, #5b73c4, #7289da);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 137, 218, 0.4);
}

.btn.secondary {
  background: linear-gradient(45deg, #43b581, #369968);
  box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
}

.btn.secondary:hover {
  background: linear-gradient(45deg, #369968, #43b581);
  box-shadow: 0 6px 20px rgba(67, 181, 129, 0.4);
}

.btn.danger {
  background: linear-gradient(45deg, #f04747, #d73a49);
  box-shadow: 0 4px 15px rgba(240, 71, 71, 0.3);
}

.btn.danger:hover {
  background: linear-gradient(45deg, #d73a49, #f04747);
  box-shadow: 0 6px 20px rgba(240, 71, 71, 0.4);
}

.embed-editor {
  background: rgba(32, 34, 37, 0.5);
  border: 1px solid rgba(114, 137, 218, 0.2);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
}

.embed-editor h3 {
  color: #7289da;
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.embed-field {
  margin-bottom: 15px;
}

.embed-field label {
  display: block;
  color: #b9bbbe;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.remove-embed {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #f04747;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.remove-embed:hover {
  background: #d73a49;
  transform: scale(1.1);
}

.discord-message {
  background: #36393f;
  border-radius: 8px;
  padding: 20px;
  font-family: "Segoe UI", sans-serif;
  min-height: 200px;
}

.message-content {
  color: #dcddde;
  font-size: 16px;
  line-height: 1.4;
}

.message-text {
  margin-bottom: 10px;
}

.embed-preview {
  background: #2f3136;
  border-left: 4px solid #7289da;
  border-radius: 0 4px 4px 0;
  padding: 16px;
  margin: 10px 0;
  max-width: 520px;
}

.embed-title {
  color: #00aff4;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  text-decoration: none;
}

.embed-title:hover {
  text-decoration: underline;
}

.embed-description {
  color: #dcddde;
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 12px;
}

.embed-footer {
  color: #72767d;
  font-size: 12px;
  margin-top: 12px;
}

.embed-author {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.embed-field {
  margin-bottom: 8px;
}

.embed-field-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.embed-field-value {
  color: #dcddde;
  font-size: 14px;
  line-height: 1.4;
}

.embed-image {
  max-width: 100%;
  border-radius: 4px;
  margin-top: 12px;
}

.embed-thumbnail {
  float: right;
  max-width: 80px;
  max-height: 80px;
  border-radius: 4px;
  margin-left: 16px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  header h1 {
    font-size: 2rem;
  }

  .container {
    padding: 15px;
  }

  .section {
    padding: 20px;
  }
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(32, 34, 37, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(114, 137, 218, 0.6);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(114, 137, 218, 0.8);
}

.embed-preview {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mention {
  background: rgba(114, 137, 218, 0.3);
  color: #dee0fc;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 500;
  font-size: 0.875rem;
}

.mention.channel {
  background: rgba(114, 137, 218, 0.3);
}

.mention.user {
  background: rgba(88, 101, 242, 0.3);
  color: #c9cdfb;
}

.mention.role {
  background: rgba(237, 66, 69, 0.3);
  color: #faa61a;
}

.tab-container {
  margin-bottom: 15px;
}

.tabs {
  display: flex;
  margin-bottom: 15px;
  background: rgba(32, 34, 37, 0.5);
  border-radius: 8px;
  padding: 4px;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #b9bbbe;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-btn.active {
  background: rgba(114, 137, 218, 0.3);
  color: #7289da;
}

.tab-btn:hover:not(.active) {
  background: rgba(114, 137, 218, 0.1);
  color: #dcddde;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 500;
  font-size: 14px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  max-width: 350px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(45deg, #43b581, #369968);
}

.toast.error {
  background: linear-gradient(45deg, #f04747, #d73a49);
}

.toast.warning {
  background: linear-gradient(45deg, #faa61a, #f57c00);
}

.btn.small {
  padding: 8px 16px;
  font-size: 12px;
}

.field-row {
  background: rgba(47, 49, 54, 0.6);
  border: 1px solid rgba(114, 137, 218, 0.2);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 10px;
  position: relative;
}

.field-row .remove-field {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #f04747;
  color: white;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.field-inline-checkbox {
  display: flex;
  align-items: center;
  margin-top: 8px;
}

.field-inline-checkbox input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.variables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.variable-item {
  background: rgba(114, 137, 218, 0.2);
  color: #7289da;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
  border: 1px solid rgba(114, 137, 218, 0.3);
}

.variable-item:hover {
  background: rgba(114, 137, 218, 0.3);
  transform: translateY(-1px);
}

.variables-description {
  color: #b9bbbe;
  font-size: 12px;
  margin-bottom: 15px;
  font-style: italic;
}

.embed-field-preview {
  margin-bottom: 8px;
}

.embed-field-name {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.embed-field-value {
  color: #dcddde;
  font-size: 14px;
  line-height: 1.4;
}

.embed-fields-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.embed-author-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}
