@font-face {
  font-family: 'Minecraft';
  src: url('Fonts/Minecraft.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #eee;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
.header {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(94, 53, 177, 0.2) 0%, rgba(102, 126, 234, 0.2) 100%);
  border-radius: 15px;
  margin-bottom: 30px;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.header-content {
  position: relative;
}

.logo {
  font-size: 4rem;
  margin-bottom: 10px;
  animation: float 3s ease-in-out infinite;
}

.logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #8c00ff 0%, #ffffff 0%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.subtitle {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.mod-badge {
  display: inline-block;
  background: rgba(102, 126, 234, 0.2);
  border: 1px solid rgba(102, 126, 234, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #667eea;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.tab:hover::before {
  left: 100%;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(102, 126, 234, 0.5);
}

.tab.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
  border-color: #667eea;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Card */
.card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.section-title {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '⚙️';
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  color: #aaa;
  font-weight: 500;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #eee;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
  font-family: 'Courier New', monospace;
}

/* Text Editor */
.text-editor {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  gap: 5px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  align-items: center;
}

.color-picker-wrapper {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.color-btn {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.color-btn.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.custom-color-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 15px;
  padding: 5px 12px;
  background: rgba(102, 126, 234, 0.15);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 6px;
}

.custom-color-picker label {
  margin: 0;
  font-size: 0.85rem;
  color: #aaa;
  white-space: nowrap;
  font-weight: 500;
}

.custom-color-picker input[type="color"] {
  width: 40px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

.format-btn {
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  color: #eee;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: bold;
}

.format-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.format-btn.active {
  background: #667eea;
  border-color: #667eea;
}

.editor-input {
  width: 100%;
  padding: 12px;
  background: transparent;
  border: none;
  color: #eee;
  font-size: 1rem;
}

.editor-input:focus {
  outline: none;
}

.editor-preview {
  padding: 10px;
  background: #0f0f1e;
  border: 1px solid #2d2d44;
  border-radius: 1px;
  min-height: 10px;
  font-family: 'Minecraft', monospace !important;
  font-size: 20px;
  line-height: 1.0;
  color: #fff;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  image-rendering: pixelated;
  letter-spacing: 1.5px;
}

/* Minecraft Text Colors */
.mc-black { color: #000000; text-shadow: 2px 2px 0px #000000; }
.mc-dark_blue { color: #0000AA; text-shadow: 2px 2px 0px #00002A; }
.mc-dark_green { color: #00AA00; text-shadow: 2px 2px 0px #002A00; }
.mc-dark_aqua { color: #00AAAA; text-shadow: 2px 2px 0px #002A2A; }
.mc-dark_red { color: #AA0000; text-shadow: 2px 2px 0px #2A0000; }
.mc-dark_purple { color: #AA00AA; text-shadow: 2px 2px 0px #2A002A; }
.mc-gold { color: #FFAA00; text-shadow: 2px 2px 0px #3F2A00; }
.mc-gray { color: #AAAAAA; text-shadow: 2px 2px 0px #2A2A2A; }
.mc-dark_gray { color: #555555; text-shadow: 2px 2px 0px #151515; }
.mc-blue { color: #5555FF; text-shadow: 2px 2px 0px #15153F; }
.mc-green { color: #55FF55; text-shadow: 2px 2px 0px #153F15; }
.mc-aqua { color: #55FFFF; text-shadow: 2px 2px 0px #153F3F; }
.mc-red { color: #FF5555; text-shadow: 2px 2px 0px #3F1515; }
.mc-light_purple { color: #FF55FF; text-shadow: 2px 2px 0px #3F153F; }
.mc-yellow { color: #FFFF55; text-shadow: 2px 2px 0px #3F3F15; }
.mc-white { color: #FFFFFF; text-shadow: 2px 2px 0px #3F3F3F; }

.mc-bold { font-weight: bold; }
.mc-italic { font-style: italic; }
.mc-underline { text-decoration: underline; }
.mc-strikethrough { text-decoration: line-through; }
.mc-obfuscated {
  animation: obfuscate 0.1s infinite;
}

@keyframes obfuscate {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

/* Pickr Color Picker Styling */
.pickr {
  display: inline-block;
}

.pickr .pcr-button {
  width: 35px;
  height: 30px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.pickr .pcr-button:hover {
  border-color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.pickr .pcr-button::before {
  content: '🎨';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 16px;
  pointer-events: none;
}

.pcr-app {
  background: rgba(30, 30, 46, 0.98) !important;
  border: 2px solid rgba(102, 126, 234, 0.4) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(10px);
}

.pcr-app .pcr-interaction input {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #eee !important;
  border-radius: 5px !important;
  padding: 8px !important;
}

.pcr-app .pcr-interaction input:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2) !important;
}

.pcr-app .pcr-interaction .pcr-result {
  background: rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #4ade80 !important;
  font-family: 'Courier New', monospace !important;
}

.pcr-app .pcr-interaction .pcr-save,
.pcr-app .pcr-interaction .pcr-clear {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 8px 16px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.pcr-app .pcr-interaction .pcr-save:hover,
.pcr-app .pcr-interaction .pcr-clear:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4) !important;
}

.pcr-app .pcr-interaction .pcr-clear {
  background: rgba(239, 68, 68, 0.3) !important;
}

.pcr-app .pcr-swatches {
  background: rgba(0, 0, 0, 0.2) !important;
  border-radius: 5px !important;
  padding: 5px !important;
}

.pcr-app .pcr-swatches > button {
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 3px !important;
  transition: all 0.2s ease !important;
}

.pcr-app .pcr-swatches > button:hover {
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Lore and Enchantment Lists */
.lore-item,
.enchantment-item {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 10px;
}

.enchantment-row {
  display: grid;
  grid-template-columns: 1fr 100px 40px;
  gap: 10px;
  align-items: center;
}

.remove-btn {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1.2rem;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.4);
  transform: scale(1.1);
}

/* Buttons */
button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:hover::before {
  width: 300px;
  height: 300px;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

button:active {
  transform: translateY(0);
}

button.secondary {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

button.secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

button.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
}

/* Output */
pre {
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
  color: #4ade80;
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Message */
.message {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-top: 15px;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Info Section */
.info-section {
  background: rgba(102, 126, 234, 0.1);
  border: 2px solid rgba(102, 126, 234, 0.3);
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.info-section h3 {
  color: #667eea;
  margin-bottom: 15px;
}

.info-section p {
  line-height: 1.8;
  color: #ccc;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    padding: 30px 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .tabs {
    flex-direction: column;
  }

  .button-group {
    flex-direction: column;
  }

  .enchantment-row {
    grid-template-columns: 1fr;
  }
}