/* base64.css — requires css/common.css */

.container {
  max-width: 560px;
}

body {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}

h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

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

.row {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

label {
  font-size: 0.9rem;
  color: #ccc;
}

textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #eee;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.95rem;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: rgba(100, 200, 255, 0.5);
}

.btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-convert {
  background: #e67e22;
  color: #fff;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-convert:hover {
  background: #cf6d17;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.1);
  color: #ccc;
  padding: 10px 28px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-copy:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-swap {
  background: rgba(255, 255, 255, 0.06);
  color: #aaa;
  font-size: 1.2rem;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-swap:hover {
  background: rgba(255, 255, 255, 0.12);
}

.mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.output-row {
  margin-top: 16px;
}

.back-top {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 5;
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
}
.back-top:hover {
  color: #fff;
}

@media (max-width: 600px) {
  textarea {
    min-height: 100px;
  }
}
