/* Base64Tool — tool-specific styles.
   Shared styles (nav, panels, buttons) live in ../../css/style.css */

.b6 { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Toolbar ---------- */
.b6-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b6-bar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.b6-modes {
  display: flex;
  gap: 4px;
  background: var(--card-2);
  border: 1px solid #1c1c20;
  border-radius: 11px;
  padding: 4px;
}
.b6-mode {
  border: none;
  border-radius: 8px;
  background: none;
  color: #74747e;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 15px;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.b6-mode:hover { color: #c4c4cc; }
.b6-mode.active { background: var(--pink); color: #fff; }
.b6-mode:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(232, 70, 124, .3); }

.tx-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #74747e;
  font-size: .76rem;
  cursor: pointer;
}
.tx-toggle input { accent-color: var(--pink); width: 14px; height: 14px; cursor: pointer; }
.tx-toggle code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  color: #8b8b94;
}

/* ---------- Panes ---------- */
.b6-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.b6-pane { display: flex; flex-direction: column; min-width: 0; }

.b6-pane textarea {
  width: 100%;
  min-height: 260px;
  max-height: 50vh;
  resize: vertical;
  display: block;
  background: transparent;
  border: none;
  padding: 14px 16px;
  color: var(--text);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem;
  line-height: 1.6;
  outline: none;
  word-break: break-all;
}
.b6-pane textarea::placeholder { color: #4a4a52; }
#b6-out { color: #9ae6b4; }

.jf-status {
  margin-left: auto;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.jf-status.is-good { color: #22c55e; }
.jf-status.is-bad { color: #ef4444; }

.jf-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .85rem;
}
.jf-error[hidden] { display: none; }

/* ---------- File ---------- */
.b6-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  padding: 22px 16px;
  border: 1px dashed #2a2a31;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.b6-drop:hover, .b6-drop.is-over {
  border-color: var(--pink);
  background: rgba(232, 70, 124, .06);
}
.b6-drop strong { font-size: .92rem; font-weight: 700; }
.b6-drop span { color: #5c5c66; font-size: .78rem; }

.b6-file-info {
  margin-top: 10px;
  color: #8b8b94;
  font-size: .8rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.b6-file-info[hidden] { display: none; }

@media (max-width: 880px) {
  .b6-panes { grid-template-columns: 1fr; }
  .b6-pane textarea { min-height: 170px; }
  .b6-bar-right { margin-left: 0; }
}
