body {
  font-family: 'Segoe UI', sans-serif;
  background: #f7f9fc;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
}

.container {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 700px;
  width: 100%;
}

h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.upload-box {
  border: 2px dashed #007bff;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 20px;
  background: #f0f8ff;
}

.upload-box input {
  display: none;
}

.upload-box label {
  color: #007bff;
  font-weight: bold;
  cursor: pointer;
}

#previewBox img {
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#embedPreview {
  margin-top: 10px;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  white-space: nowrap;
  overflow-x: auto;
}

#base64Output {
  width: 100%;
  height: 100px;
  margin-top: 10px;
  font-size: 13px;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  resize: vertical;
}

#toggleBtn {
  margin-top: 8px;
  background: #ddd;
  border: none;
  padding: 8px 12px;
  border-radius: 5px;
  cursor: pointer;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.actions button {
  padding: 10px 14px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.actions button:hover {
  background: #0056b3;
}
