/* === Base Styles === */
main {
  max-width: 1200px;
  margin: auto;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f0f2f5;
  color: #333;
}

header {
  background-color: #0b355f;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header img {
  max-height: 80px;
  width: auto;
}

main {
  padding: 2rem;
}

.prompt-box {
  display: flex;
  flex-direction: column;
  margin-bottom: 2rem;
}

.prompt-box textarea {
  font-size: 1rem;
  padding: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  resize: vertical;
  min-height: 100px;
}

.prompt-box button {
  margin-top: 1rem;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #33aa44;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.toggle-buttons {
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.toggle-buttons button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  color: white;
  cursor: pointer;
}

.columns {
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
}



.ai-column {
  flex: 1;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}


.ai-column h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #0b355f;
}

.ai-response {
  background-color: #f9f9f9;
  padding: 1rem;
  border-radius: 5px;
  font-family: monospace;
  white-space: pre-wrap;
}

.response-controls {
  text-align: right;
  margin-top: 0.5rem;
}

.response-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #0b355f;
  margin-left: 0.5rem;
}

.highlight {
  background-color: yellow;
  font-weight: bold;
}

#loadingOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #0b355f;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.copy-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
}

.copy-button:hover svg {
  fill: #33aa44;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.fade-in.visible {
  opacity: 1;
}

/* === Shared Layout Styles for Other Pages === */
.content {
  max-width: 600px;
  margin: auto;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 1rem;
  font-weight: bold;
}

input, textarea {
  margin-top: 0.5rem;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

button[type="submit"] {
  margin-top: 1.5rem;
  background-color: #0b355f;
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}

button[type="submit"]:hover {
  background-color: #072646;
}

footer {
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem;
  color: #666;
}

/* Make all links white */
a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

/* Optional: Add hover effect */
a:hover {
  color: #1dc418; /* light blue on hover */
}

a:visited {
  color: rgb(255, 255, 255);
}

html {
  scroll-behavior: smooth;
}



/* === Mobile Responsiveness === */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  header img {
    max-width: 150px;
    height: auto;
    margin-bottom: 0.5rem;
  }

  .toggle-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .toggle-buttons button {
  width: 100%;
  margin-bottom: 0.5rem;
}


  .columns {
  margin-bottom: 2rem;
}

  .ai-column {
    width: 100%;
  }

  main {
    padding: 1rem;
  }

  .prompt-box textarea {
    font-size: 1rem;
    padding: 0.8rem;
  }

  .prompt-box button {
    width: 100%;
  }

  @media (max-width: 768px) {
  .ai-column {
    margin-bottom: 1rem;
    background-color: #ffffff;
  }
}
}

.site-header {
  background-color: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
  margin-right: 12px;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
}

.nav-links a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-links a:hover {
  text-decoration: underline;
}

.content.narrow {
  padding: 1.5rem;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { box-shadow: 0 0 20px rgba(255, 165, 0, 0.4); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}
.animated-banner {
  animation: pulseGlow 2s infinite;
}