
/* Base styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f4f8fb;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h1, h5 {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.homeheader {
  width: 100%;
  background: linear-gradient(to right, #0044cc, #00ccff);
  color: white;
  padding: 30px 10%;
  box-sizing: border-box;
}

.homeheader h1 {
  font-size: 28px;
}

.homeheader p {
  font-size: 14px;
  font-weight: 500;
  margin-top: 5px;
}

/* Intro, Container, Footer with improved padding */
.intro,
.container,
.footer {
  width: 85%;
  max-width: 1200px;
  margin: 15px auto;
  padding: 0 5%;
  box-sizing: border-box;
}

/* Intro Section */
.intro {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.7em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Container Layout */
.container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
  gap: 20px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
}

/* Input Column */
.input-column {
  background-color: #f9fbfd;
  border: 1px solid #d0e2f2;
  padding: 20px;
  width: 30%;
  border-radius: 8px;
  box-sizing: border-box;
  color: #333;
  min-width: 280px;
}

.input-column h5 {
  font-size: 16px;
  margin-bottom: 15px;
}

.input-column label {
  font-weight: 600;
  font-size: 13px;
  margin-top: 10px;
  display: block;
}

.input-column input,
.input-column select {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
}

/* Output Column */
.output-column {
  width: 65%;
  padding: 20px;
  background-color: #fefeff;
  border: 1px solid #e1eaf0;
  border-radius: 8px;
  line-height: 1.6;
  color: #444;
  min-width: 320px;
  font-size: 16px;
}

.output-link {
  color: #0044cc;
  font-weight: bold;
  text-decoration: underline;
}

/* Generate Button */
.gen_button {
  background: linear-gradient(to right, #0052d4, #65c7f7);
  color: white;
  font-weight: bold;
  padding: 10px 20px;
  font-size: 13px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.gen_button:hover {
  background: linear-gradient(to right, #0040b0, #4ab1e3);
}

.gen_button:active {
  transform: scale(0.97);
}

/* Footer */
.footer {
  font-size: 13px;
  line-height: 1.5em;
  color: #555;
  padding-bottom: 20px;
}

/* Highlighted Tags */
/* Uniform tag styling */
.tag {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px 4px 4px 0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: bold;
  line-height: 1.4;
  color: white;
  white-space: nowrap;
}

.market-opportunity { background: #007c3e; }
.product-launch { background: #c71585; }
.challenges { background: #d9534f; }
.growth-drivers { background: #4caf50; }
.restructuring { background: #f4a300; }
.esg { background: #3cb371; }
.capex { background: #ba55d3; }
.business-optimisation { background: #fbc02d; color: #000; }
.ma, .transactions { background: #2196f3; }
.spin-off { background: #ff9800; color: #000; }

.money, .percent {
  color: #0044cc;
  font-weight: bold;
}

/* Scrollable Transcript Box (if needed) */
.transcript-column {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  line-height: 1.7em;
  width: 85%;
  height: 400px;
  overflow-y: auto;
  margin-top: 20px;
}

/* Media Queries for Responsiveness */
@media screen and (max-width: 768px) {
  .container {
    flex-direction: column;
    align-items: center;
  }

  .input-column,
  .output-column {
    width: 100%;
  }
}
