/* Apply font and background to entire document */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #e4e4e4;
  color: #ffffff;
}

/* ===== BANNER ===== */
#banner {
  background-color: #86A675;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px; /* Increased for better visual balance */
  padding: 0 20px;
}

/* Logo wrapper */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Logo image */
.logo img {
  height: 64px; /* Scaled up */
}

/* Logo text */
.logo h1 {
  font-size: 28px;
  font-weight: 100;
  margin: 0;
  color: #ffffff;
}

/* ===== BUTTON ICONS ===== */
.minimize-button img {
  width: 16px;
  height: 16px;
}

.speaker-button img {
  width: 20px;
  height: 20px;
}

/* ===== TRI-TRANSLATOR BAR BASE ===== */
.trans-bar {
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
}

/* Per-bar backgrounds */
.trans-bar.english {
  background-color: #2D2D2D;
}
.trans-bar.roman {
  background-color: #3E4B38;
}
.trans-bar.arabic {
  background-color: #1F1F1F;
}

/* Layout sections */
.trans-bar .left,
.trans-bar .right {
  width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trans-bar .center {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

/* Input styling */
.trans-bar input {
  background-color: transparent;
  color: #ffffff;
  border: none;
  border-bottom: 2px solid #ffffff;
  font-size: 16px;
  outline: none;
  text-align: left;
  min-width: 1ch;
  max-width: 80%;
  width: auto;
  height: 100%;
  overflow-x: auto;
  white-space: nowrap;
}
/* Icon sizes */
.minimize-button img {
  width: 16px;
  height: 16px;
}

.expand-button img {
  width: 30px;
  height: 30px;
}

.speaker-button img {
  width: 20px;
  height: 20px;
}

.minimize-button,
.speaker-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trans-bar {
  transition: all 0.3s ease;
}

/* Collapse logic */
.trans-bar.collapsed {
  height: 0px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* When collapsed, roman moves up */
#tri-translator.minimized .trans-bar.roman {
  order: -1;
}

/* Icon buttons reset */
.expand-button,
.minimize-button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}