:root {
  --font-en: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial,
    sans-serif;
  --font-bn: "AkkasUnicode", "Noto Sans Bengali";
}

/* Local Unicode Bengali font (optional) */
@font-face {
  font-family: "AkkasUnicode";
  src: url("/AkkasUnicode.woff2") format("woff2"),
    url("/AkkasUnicode.woff") format("woff"),
    url("/AkkasUnicode.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0980-09FF, U+200C-200D, U+25CC;
}

html,
body {
  font-family: var(--font-en), var(--font-bn);
}
.bn,
[lang="bn"] {
  font-family: var(--font-bn), var(--font-en);
  line-height: 1.2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  background-color: #fff6f0;
  color: #333;
  margin: 0;
  padding: 0;
}
header {
  background-color: #ff9b44;
  padding: 1rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-bottom: 3px solid #d2812a;
}

.container {
  max-width: 1100px;
  margin: 2rem auto;
  background: #fffaf5;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Two-column layout for left inputs + right composer */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.left-column {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card {
  background: #fff;
  border: 1px solid #e69138;
  border-radius: 12px;
  padding: 16px;
}

input,
textarea {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.7rem;
  border: 1px solid #e69138;
  border-radius: 8px;
  font-size: 1rem;
}

p {
  margin: 10px 0 5px 0;
  font-weight: 550;
}

button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  border: 1px solid #e69138;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ff802b;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
}
button:hover:not(:disabled) {
  background-color: #e67300;
}
button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.results {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.result-row {
  position: relative;
  display: flex;
  align-items: stretch;
  margin: 0;
  gap: 10px;
}
.link-box {
  width: 70%;
  background: #ffe0c7;
  border: 2px solid #e69138;
  border-radius: 50px 0 0 50px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.link-text {
  flex: 1;
  margin-right: 0.5rem;
  font-family: monospace;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.serial {
  font-weight: bold;
  margin-right: 0.75rem;
  color: #cc5200;
  white-space: nowrap;
}
.copy-btn {
  width: 30%;
  background: #ff944d;
  border: none;
  color: #fff;
  padding: 0;
  border-radius: 0 50px 50px 0;
  cursor: pointer;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}
.copy-btn:hover:not(:disabled) {
  background: #e67300;
}
.copy-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.cell-tag {
  position: absolute;
  top: -12px;
  right: 0;
  background: #cc5200;
  color: #fff;
  padding: 2px 10px;
  font-size: 0.75rem;
  border-radius: 12px;
  line-height: 1.4;
  white-space: nowrap;
}
.group-divider {
  height: 2px;
  background: #d2812a;
  width: 100%;
  border-radius: 1px;
  margin: 10px 0;
}

.hint {
  color: #8b5a2b;
  font-size: 0.9rem;
  margin-top: 6px;
}

.hint-without-margin {
  color: #8b5a2b;
  font-size: 0.9rem;
  margin-top: 10px;
}

/* NEW: time/date info card styling (left column) */
.info-card {
  display: grid;
  gap: 8px;
}
.time-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #d06800;
}

#bdTime {
  margin-top: 5px;
}

.clock-icon {
  width: 30px;
  height: 30px;
  fill: #d06800;
}
.calendar-lines {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.calendar-line .label {
  font-weight: 700;
  color: #8b5a2b;
  margin-right: 6px;
}
.footer-note {
  text-align: center;
  margin-top: 14px;
  color: #8b5a2b;
  font-weight: 600;
}

@media (max-width: 820px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .result-row {
    flex-direction: column;
  }
  .link-box,
  .copy-btn {
    width: 100%;
    border-radius: 50px;
  }
  .copy-btn {
    margin-top: 6px;
  }
}
