/* ===========================================================
   Global Resets & Dark‐Mode Base Colors (ChatGPT‐like theme)
   =========================================================== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  font-family: "Inter", sans-serif;
  background-color: #343541;        /* Deep charcoal background */
  color: #e2e2e2;                   /* Light text color */
}

/* ===========================================================
   Outer Flex Container
   =========================================================== */

.main-container {
  display: flex;
  flex-wrap: wrap;                  /* Stack vertically on narrow screens */
  gap: 2rem;                        /* Space between the two cards */
  justify-content: center;          /* Center horizontally */
  padding: 2rem;                    /* Padding around the entire layout */
}

/* ===========================================================
   Shared “Card” Styles (STT & TTS)
   =========================================================== */

.chat-container {
  background-color: #444654;        /* Slightly lighter charcoal for cards */
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  width: 600px;                     /* Fixed width, but will shrink on small screens */
  max-width: 100%;
}

/* Headings (ChatGPT uses a bold, clear H1) */
.chat-container h1 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
  color: #ffffff;                   /* Pure white for headings */
}

/* ===========================================================
   Button Row & Buttons
   =========================================================== */

.button-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.button-row button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #10a37f;        /* ChatGPT’s signature green accent */
  border: none;
  color: #ffffff;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.button-row button:hover {
  background-color: #0e8c6b;
}

/* If you have inline SVG icons (clipboard, mic, etc.), ensure they inherit the white stroke */
.button-row svg {
  stroke: #ffffff;
  fill: none;
}

/* ===========================================================
   Textareas (dark input/output boxes)
   =========================================================== */

textarea {
  width: 100%;
  border: none;
  border-radius: 6px;
  padding: 1rem;
  font-size: 1rem;
  line-height: 1.5;
  resize: none;
  background-color: #343541;        /* Match the page background for a seamless “infinite chat” look */
  color: #e2e2e2;
  min-height: 200px;
  box-shadow: inset 0 0 0 1px #565869;  /* Subtle inner border */
}

/* Placeholder text should be slightly lighter */
textarea::placeholder {
  color: #8c8c8c;
}

/* ===========================================================
   Footer Note (per card)
   =========================================================== */

.footer-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: #8c8c8c;
  text-align: center;
}

/* ===========================================================
   Responsive Tweaks (stack on small widths)
   =========================================================== */

@media (max-width: 650px) {
  .chat-container {
    width: 100%;
  }
}
