/* Base64 Encoder / Decoder — page-specific styles */
/* Layout structure is unchanged; this only fixes appearance */

.main_heading {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}

article.bg-white p {
  color: #555;
  margin-bottom: 1.25rem;
}

/* Controls row */
.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem;
}

.controls button {
  border: none;
  border-radius: 6px;
  padding: 8px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.15s ease, transform 0.05s ease;
}

.controls button:active {
  transform: scale(0.97);
}

.controls .encode  { background: #2563eb; }
.controls .decode  { background: #7c3aed; }
.controls .copy    { background: #059669; }
.controls .download{ background: #d97706; }
.controls .clear   { background: #dc2626; }

.controls button:hover {
  opacity: 0.88;
}

/* Editor: input/output side by side, same as current layout */
.editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 1rem;
}

.editor textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1f2937;
  background: #fafafa;
}

.editor textarea:focus {
  outline: none;
  border-color: #2563eb;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.editor textarea#output {
  background: #f3f4f6;
}

/* Status bar */
#status {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
}

#status.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

#status.error {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

/* Doc / FAQ sections below the tool */
.doc-section,
.faq-section {
  background: #fff;
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.doc-section h2,
.faq-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #1a1a1a;
}

.doc-section ul {
  padding-left: 1.2rem;
}

.doc-section li {
  margin-bottom: 0.4rem;
  color: #444;
}

.faq-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 1rem;
  color: #1a1a1a;
}

.faq-section p {
  color: #555;
  margin-bottom: 0;
}

/* Responsive: stack input/output on small screens, same breakpoint logic */
@media (max-width: 768px) {
  .editor {
    grid-template-columns: 1fr;
  }

  .controls button {
    flex: 1 1 auto;
    text-align: center;
  }
}



















/* 
.controls{
display:flex;
gap:10px;
}

.editor{
display:grid;
grid-template-columns:1fr 1fr;
gap:20px;
}

textarea{
height:450px;
}

.status{
margin-top:20px;
}

.success{
background:#dcfce7;
}

.error{
background:#fee2e2;
} */