body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 90%;
  max-width: 800px;
  height: 90vh;
  background-color: #fff;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
}

.chat-box {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background-color: #fdfdfd;
}

.qa-block {
  background: #eaf4ff;
  border-left: 5px solid #1e90ff;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 6px;
}

.response-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  background: #f1f1f1;
  padding: 1rem;
  margin: 0.5rem 0 2rem;
  border-radius: 6px;
}

.response-box .column {
  flex: 1;
  background: #fff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.spinner {
  width: 40px;
  height: 40px;
  margin: 10px auto;
  border: 5px solid #ccc;
  border-top: 5px solid #1e90ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.hidden {
  display: none;
}

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

.error {
  color: red;
  margin: 1rem;
  font-weight: bold;
}
/* Top & Bottom Border Images */
.border-img {
  width: 5%;
  height: auto;
  display: inline-block;
}

/* Bold Header */
.app-header {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  color: #222;
  font-family: "Segoe UI", sans-serif;
  margin: 1rem 0;
  background: linear-gradient(to right, #fcd34d, #facc15);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
/* Navbar Styling */
.navbar {
  background-color: #2c3e50;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Segoe UI', sans-serif;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s ease;
}

.nav-links li a:hover {
  color: #f1c40f;
}

.auth-container {
  max-width: 400px;
  margin: 5rem auto;
  padding: 2rem;
  text-align: center;
  font-family: system-ui, sans-serif;
}

.auth-form input[type="email"] {
  width: 100%;
  padding: 1rem;
  margin: 1.2rem 0;
  border: 1px solid #aab;
  border-radius: 2rem;
  font-size: 1rem;
  outline: none;
}

.auth-form input[type="password"] {
  width: 100%;
  padding: 1rem;
  margin: 1.2rem 0;
  border: 1px solid #aab;
  border-radius: 2rem;
  font-size: 1rem;
  outline: none;
}

.auth-form button {
  width: 100%;
  padding: 1rem;
  border: none;
  background: black;
  color: white;
  border-radius: 2rem;
  font-size: 1rem;
  cursor: pointer;
  margin-bottom: 1rem;
}

.switch-link {
  font-size: 0.9rem;
  margin: 1rem 0;
}

.switch-link a {
  color: #3550ec;
  text-decoration: none;
}

.divider {
  margin: 2rem 0 1rem;
  border-top: 1px solid #ccc;
  position: relative;
}

.divider span {
  position: absolute;
  top: -0.6rem;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  padding: 0 0.6rem;
  color: #555;
  font-size: 0.9rem;
}

.auth-options .oauth-btn {
  width: 100%;
  padding: 0.9rem;
  margin: 0.5rem 0;
  border-radius: 2rem;
  border: 1px solid #ccc;
  background: #fff;
  font-size: 1rem;
  cursor: pointer;
  text-align: left;
  padding-left: 2.5rem;
  position: relative;
}

.oauth-btn.google::before {
  content: "🌐";
  position: absolute;
  left: 1rem;
}
.oauth-btn.microsoft::before {
  content: "🪟";
  position: absolute;
  left: 1rem;
}
.oauth-btn.apple::before {
  content: "";
  position: absolute;
  left: 1rem;
}
.oauth-btn.phone::before {
  content: "📞";
  position: absolute;
  left: 1rem;
}

.auth-footer {
  margin-top: 2rem;
  font-size: 0.8rem;
  color: #666;
}

.auth-footer a {
  color: #444;
  text-decoration: none;
  margin: 0 0.3rem;
}

input[type="email"] {
  border: 1px solid #aaa;
  border-radius: 2rem;
  padding: 1rem;
  width: 100%;
  font-size: 1.2rem;
  outline: none;
}

input[type="password"] {
  border: 1px solid #aaa;
  border-radius: 2rem;
  padding: 1rem;
  width: 100%;
  font-size: 1.2rem;
  outline: none;
}

button {
  width: 100%;
  border-radius: 2rem;
  background-color: black;
  color: white;
  padding: 1rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.error {
  color: red;
  margin: 0.5rem 0;
  text-align: center;
}

body.auth-body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.auth-container {
  width: 100%;
  max-width: 400px;
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  text-align: center;
}

.auth-container h1 {
  font-size: 28px;
  margin-bottom: 1.5rem;
}

.auth-form input[type="email"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: 1px solid #b0b0ff;
  outline: none;
  margin-bottom: 1rem;
}

.auth-form input[type="password"] {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: 1px solid #b0b0ff;
  outline: none;
  margin-bottom: 1rem;
}

.auth-form button {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border-radius: 2rem;
  border: none;
  background-color: #000;
  color: #fff;
  cursor: pointer;
  margin-bottom: 1rem;
}

.auth-footer {
  font-size: 14px;
  margin-bottom: 1.5rem;
}

.auth-footer a {
  color: #2e5bff;
  text-decoration: none;
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
  color: #aaa;
  font-size: 12px;
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
  margin: 0 10px;
}

.social-buttons button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
  border-radius: 2rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background-color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
}

.social-buttons img {
  margin-right: 8px;
}

.policy-links {
  margin-top: 1.5rem;
  font-size: 12px;
  color: #666;
}

.policy-links a {
  text-decoration: none;
  color: #666;
  margin: 0 0.5rem;
}

.error {
  color: red;
  font-size: 14px;
  margin-bottom: 1rem;
}

/* style.css */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f0f0;
  padding: 1rem;
}
.google-btn {
    display: flex;
    align-items: center;
    background-color: #47616c;
    color: white;
    width: 200px;
    height: 50px;
    border-radius: 5px;
    box-shadow: 0px 3px 10px -2px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    padding-inline: 8px;
    text-decoration: none;
}
.google-icon {
    background: url("https://upload.wikimedia.org/wikipedia/commons/5/53/Google_%22G%22_Logo.svg") transparent 5px 50% no-repeat;
    display: inline-block;
    vertical-align: middle;
    width: 35px;
    height: 50px;
}

.btn-text {
    margin-left: 10px;
}

.input-area {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-top: 1px solid #ddd;
}

#user-input {
  flex: 1;
  padding: 35px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 25px;
  outline: none;
  transition: border 0.2s ease;
}

#user-input:focus {
border-color: #4a90e2;
}

#send-btn, .mic-btn {
  background-color: #4a90e2;
  color: white;
  border: none;
  padding: 1em;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  max-width: 4em;
  transition: background 0.2s ease;
}

#send-btn:hover, .mic-btn:hover {
  background-color: #3c7bd1;
}

.welcome-banner {
  text-align: center;
  padding: 20px 10px;
  font-size: 20px;
  font-weight: 500;
  border-bottom: 1px solid #ccc;
  color: #333;
}

.nav-btn {
  padding: 10px 18px;
  background-color: #4a90e2;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.2s ease;
}

/* For individual buttons within the container */
.nav-btn a {
    margin-left: 10px; /* Add space between the buttons */
    color: white;
    text-decoration: none;
}

.profile-dropdown {
  position: relative;
}

.profile-icon {
  background-color: #4a90e2;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  
}

.profile-wrapper {
  position: absolute;
  top: 20px;
  right: 30px;
  z-index: 1000;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  right: 0;
  background: rgb(44, 62, 80);
  border: 1px solid rgb(44, 62, 80);
  border-radius: 8px;
  min-width: 120px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 999;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
}

.dropdown-menu a:hover {
  background-color: #f0f0f0;
}

