.image-to-base64-page {
  padding: 2rem;
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', sans-serif;
}

/* Tabs */
.tab-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tab-btn {
  background-color: #2a2a2a;
  color: #e0e0e0;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}
.tab-btn.active,
.tab-btn:hover {
  background-color: #3b82f6;
  color: #fff;
}

/* Upload Box */
.image-upload {
  border: 2px dashed #444;
  background-color: #1e1e1e;
  padding: 2rem;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: border-color 0.2s;
}
.image-upload.drag-over {
  border-color: #3b82f6;
}
.image-upload input {
  display: none;
}
.drag-hint {
  color: #888;
  margin-top: 0.5rem;
}

/* Options Section */
.output-options,
.resize-options,
.global-options {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}
.output-options label,
.resize-options label,
.global-options label {
  display: inline-block;
  margin-right: 1.5rem;
  cursor: pointer;
}
.resize-options select {
  background: #2a2a2a;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 4px;
  padding: 0.4rem 0.8rem;
}

/* Image Preview */
.image-preview {
  text-align: center;
  margin: 1.5rem 0;
}
.image-preview img {
  max-width: 300px;
  max-height: 300px;
  border-radius: 6px;
  border: 1px solid #333;
}

/* Action Buttons */
.global-actions,
.tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1.5rem 0;
}
.global-actions button,
.tool-buttons button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
}
.global-actions button:hover,
.tool-buttons button:hover {
  background-color: #2563eb;
}

/* Output Blocks */
.multi-output-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.output-block {
  background-color: #1e1e1e;
  border: 1px solid #2f2f2f;
  border-radius: 8px;
  padding: 1rem;
}
.output-block .image-thumb {
  max-width: 120px;
  max-height: 120px;
  border-radius: 4px;
  border: 1px solid #333;
}
.output-block .meta {
  margin-top: 0.5rem;
  color: #aaa;
  font-size: 0.9rem;
}
.output-block textarea {
  width: 100%;
  height: 100px;
  margin-top: 0.75rem;
  background: #111;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 0.6rem;
  font-family: monospace;
  font-size: 0.85rem;
  border-radius: 4px;
  resize: vertical;
}

/* Summary */
.summary-info {
  margin: 1rem 0;
  font-size: 0.95rem;
  color: #ccc;
}

/* Decode Area */
#tab-decode textarea {
  width: 100%;
  height: 120px;
  background: #111;
  color: #e0e0e0;
  border: 1px solid #333;
  padding: 0.6rem;
  font-family: monospace;
  border-radius: 4px;
  margin-bottom: 1rem;
}
#tab-decode .image-preview img {
  max-width: 240px;
  border: 1px solid #333;
  border-radius: 4px;
}

/* How to Use Section */
.how-to-use {
  background: #1e1e1e;
  border-radius: 8px;
  padding: 1.5rem;
  margin-top: 2rem;
}
.how-to-use h2 {
  color: #fff;
  margin-bottom: 1rem;
}
.how-to-use p {
  color: #bbb;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.how-to-use ol {
  padding-left: 1.25rem;
  color: #ccc;
}
.how-to-use li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.how-to-use code {
  background-color: #222;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.95rem;
}

/* Warning Message */
.decode-warning {
  color: #f87171;
  font-weight: bold;
  margin-top: 1rem;
}
