body {
  font-family: var(--font-inter);
  background-size: cover;
  background-repeat: no-repeat;
  min-height: 100vh;
  color: #222;
  font-size: 3rem;
}



.container-fluid {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: rgba(255,255,255,0.01);
}



@media (min-width: 992px) {
  .container-fluid {
    flex-direction: row;
  }
  .left, .right {
    border-radius: 40px;
    padding: 5rem 4rem;
  }
  .left {
    border-radius: 40px 0 0 40px;
  }
  .right {
    border-radius: 0 40px 40px 0;
  }
}

.left, .right {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
}

.left {
  background: transparent;
  color: #fff;
  border-radius: 0 0 40px 40px;
  padding-left: 10vw;
  padding-right: 4vw;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 2.5rem;
  min-height: 100vh;
  /* Add a subtle shadow for depth */
  box-shadow: 2px 0 32px 0 rgba(86, 103, 246, 0.10);
}

.right {
  background: #fff;
  border-radius: 40px 40px 0 0;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.10);
}


.right form {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: rgba(245,245,255,0.7);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  border-radius: 24px;
  box-shadow: 0 2px 16px 0 rgba(86, 103, 246, 0.08);
}



.reply-box {
  margin-top: auto;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  padding: 8px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 2px 12px 0 rgba(86, 103, 246, 0.10);
}

.reply-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 3rem;
  padding: 8px 16px;
}

.reply-box button {
  background: linear-gradient(90deg, #5667f6 0%, #d94ae0 100%);
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
  color: #fff;
  font-size: 18px;
  transition: background 0.2s;
}
.reply-box button:hover {
  background: linear-gradient(90deg, #d94ae0 0%, #5667f6 100%);
}

.left h1 {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  font-family: var(--font-poppins);
}
.left h2 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-plusJakarta);
}
.left p.tagline {
  font-family: var(--font-poppins);
  margin-top: 2rem;
  font-size: 16px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 2px;
  color: #ffe;
}
.left p.desc {
  font-size: 3rem;
  line-height: 1.7;
  max-width: 95%;
  margin-top: 1.5rem;
  color: #e0e0e0;
}

.right h3 {
  font-size: 6rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1.2rem;
  color: #5667f6;
  letter-spacing: 1px;
}
.right p.sub {
  font-size: 4rem;
  color: #555;
  margin-top: 8px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: 500;
}

.form-label {
  font-size: 4rem;
  font-weight: 600;
  color: #5667f6;
  margin-bottom: 0.3rem;
}
.form-control {
  border-radius: 16px;
  height: 48px;
  font-size: 3rem;
  padding: 12px 18px;
  border: 1.5px solid #e0e0e0;
  margin-bottom: 1.2rem;
  transition: border 0.2s;
}
.form-control:focus {
  border: 1.5px solid #5667f6;
  box-shadow: 0 0 0 2px #dbeafe;
}
.form-note {
  font-size: 3rem;
  margin-top: 10px;
  color: #777;
  text-align: center;
}
.form-note a {
  color: #5f4ef7;
  text-decoration: underline;
}
.btn-gradient {
  background: linear-gradient(90deg, #a18cd1 0%, #f093fb 100%);
  border: none;
  color: #fff;
  height: 50px;
  border-radius: 30px;
  width: 100%;
  font-size: 4rem;
  font-weight: 700;
  margin-top: 25px;
  box-shadow: 0 2px 12px 0 rgba(161, 140, 209, 0.15);
  transition: background 0.2s, box-shadow 0.2s;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #f093fb 0%, #a18cd1 100%);
  box-shadow: 0 4px 24px 0 rgba(161, 140, 209, 0.18);
}
.login-link {
  font-size: 3rem;
  margin-top: 18px;
  color: #888;
}
.login-link a {
  color: #5f4ef7;
  font-weight: 600;
  text-decoration: underline;
}
.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0 25px;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1.5px;
  background: #ccc;
}
.divider span {
  padding: 0 14px;
  font-size: 3rem;
  color: #888;
  font-weight: 500;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  border: 1.5px solid #ccc;
  border-radius: 25px;
  font-size: 3rem;
  font-weight: 600;
  background-color: #fff;
  text-decoration: none;
  color: #555;
  margin-bottom: 10px;
  transition: border 0.2s, box-shadow 0.2s;
}
.social-btn:hover {
  border: 1.5px solid #5667f6;
  box-shadow: 0 2px 8px 0 rgba(86, 103, 246, 0.10);
}



/* Reduce excessive spacing for large screens */


/* Enhance button appearance for all screens */
.btn-gradient {
  font-size: 1.5rem;
  height: 56px;
  padding: 0 2.5rem;
  border-radius: 32px;
  letter-spacing: 1px;
  box-shadow: 0 4px 24px 0 rgba(161, 140, 209, 0.18);
  transition: background 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-gradient:hover {
  background: linear-gradient(90deg, #f093fb 0%, #a18cd1 100%);
  box-shadow: 0 8px 32px 0 rgba(161, 140, 209, 0.22);
  transform: translateY(-2px) scale(1.04);
}

.social-btn {
  font-size: 1.2rem;
  height: 56px;
  border-radius: 32px;
  padding: 0 2rem;
  box-shadow: 0 2px 8px 0 rgba(86, 103, 246, 0.10);
  transition: border 0.2s, box-shadow 0.2s, transform 0.1s;
}
.social-btn:hover {
  border: 1.5px solid #5667f6;
  box-shadow: 0 4px 16px 0 rgba(86, 103, 246, 0.18);
  transform: translateY(-2px) scale(1.04);
}

@media (max-width: 1200px) {
  .left {
    padding-left: 4vw;
    padding-right: 1vw;
  }
}

.sidebar {
  width: 280px;
  height: 100vh;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding-top: 5px;
}
.sidebar .header-section { height: 50px; }
.sidebar .icon-box { color: #8d4eff; font-size: 18px; }
.sidebar .title-text { font-weight: 600; font-size: 14px; letter-spacing: 2px; color: #000; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .new-chat-btn { background: linear-gradient(to right, #8661f9, #9f5afd); color: white; border-radius: 20px; font-size: 13px; padding: 6px 16px; border: none; }
.sidebar .section-label { font-size: 11px; color: #999; text-transform: uppercase; font-weight: 500; letter-spacing: 0.5px; }
.sidebar .clear-link { font-size: 11px; color: #5a5af5; text-decoration: none; cursor: pointer; }
.conversation-list { margin-top: 8px; }
.conversation-item { background-color: transparent; padding: 8px 10px; font-size: 13px; color: #333; border-radius: 12px; margin-bottom: 6px; cursor: pointer; transition: background-color 0.2s ease; display: flex; align-items: center; }
.conversation-item:hover { background-color: #f5f5f5; }
.setting-btn { background-color: #f3f3f3; color: #333; font-size: 13px; font-weight: 500; border-radius: 15px; padding: 10px 12px; text-align: left; border: none; }
.setting-btn i { color: #555; font-size: 14px; margin-right: 5px; }



@media (max-width: 992px) {
  .container-fluid {
    flex-direction: column;
  }
  .left, .right {
    padding: 2rem 1rem;
    border-radius: 0;
  }
  .reply-box {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .left, .right {
    padding: 1.2rem 0.5rem;
  }
  .left {
    align-items: center;
    padding-left: 6vw;
    padding-right: 6vw;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }
  .btn-gradient {
    font-size: 2.5rem;
    height: 44px;
  }
  .left h1 {
    font-size: 5rem;
  }
  .left h2 {
    font-size: 4rem;
  }
  .right h3 {
    font-size: 4rem;
  }
  .form-label, .form-control, .form-note, .login-link, .divider span, .social-btn {
    font-size: 2.5rem;
  }
  .left h1, .left h2, .left p.tagline, .left p.desc, .reply-box {
    text-align: left;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 480px) {
  .left, .right {
    padding: 0.7rem 0.2rem;
  }
  .btn-gradient {
    font-size: 2rem;
    height: 40px;
  }
  .left h1 {
    font-size: 3.5rem;
  }
  .left h2 {
    font-size: 2.5rem;
  }
  .right h3 {
    font-size: 2.5rem;
  }
  .form-label, .form-control, .form-note, .login-link, .divider span, .social-btn {
    font-size: 2rem;
  }
}

@media (min-width: 1200px) {
  body {
    font-size: 2.2rem;
  }
  .left h1 {
    font-size: 1.65rem;
  }
  .left h2 {
    font-size:1.5rem;
  }
  .left p.tagline {
    font-size: 1.2rem;
  }
  .left p.desc {
    font-size: 1rem;
  }
  .right h3 {
    font-size: 2.8rem;
  }
  .right p.sub {
    font-size: 2rem;
  }
  .form-label {
    font-size: 1.7rem;
  }
  .form-control {
    font-size: 1.3rem;
  }
  .form-note {
    font-size: 1.3rem;
  }
  .btn-gradient {
    font-size: 1.7rem;
    height: 56px;
    padding: 0 2.5rem;
    letter-spacing: 1px;
    border-radius: 32px;
  }
  .login-link {
    font-size: 1.3rem;
  }
  .divider span {
    font-size: 1.3rem;
  }
  .social-btn {
    font-size: 1.3rem;
    height: 56px;
    border-radius: 32px;
    padding: 0 2rem;
  }
  .reply-box input {
    font-size: 1.3rem;
  }
  .left, .right {
    padding: 4rem 3rem;
  }
}





/* ------------------------------ Chat Section Styling -------------------------------- */

.chat-wrapper {
      max-width: 768px;
      height: 100vh;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      background: transparent;
      padding: 48px 32px 100px;
      overflow-y: auto;
      overflow-x: hidden;
      position: relative;
    }
    .chat-wrapper::-webkit-scrollbar {
      width: 0 !important;
      background: transparent;
    }
    .chat-wrapper::-webkit-scrollbar-thumb {
      background: transparent;
      border-radius: 6px;
    }
    .chat-wrapper::-webkit-scrollbar-track {
      background: transparent;
    }
    .chat-wrapper {
      -ms-overflow-style: none;  /* IE and Edge */
      scrollbar-width: none;     /* Firefox */
    }
    .user-msg, .bot-msg {
      position: relative;
      width: 100%;
    }
    .user-msg {
      display: flex;
      align-self: flex-start;
      text-align: left;
      margin-bottom: 5px;
    }
    .user-msg p {
      max-width: 92%;
      font-size: 15px;
      font-weight: 500;
      color:rgb(66, 66, 66);
      margin: auto 20px;
    }
    .user-icon {
      font-size: 26px;
      color: #111111;
    }
    .edit-icon {
      font-size: 18px;
      float: right;
      right: 0;
      margin: auto;
      color: #6c757d;
      cursor: pointer;
    }
    .bot-header {
      font-size: 10px;
      letter-spacing: 0.8px;
      font-weight: 700;
      background: linear-gradient(90deg, #9333ea 0%, #38bdf8 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      color: transparent;
      border-radius: 8px;
      display: inline-block;
      text-transform: uppercase;
    }
    .bot-msg p, .bot-msg ol, .bot-msg ul {
      font-size: 14.2px;
      color: #222;
      margin: 0;
    }
    .bot-msg-content {
      max-width: 92%;
      margin: auto 32px auto 46px;
      padding: 10px 0 10px 0;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }
    .bot-msg ol, .bot-msg ul {
      padding-left: 24px;
      margin-top: 10px;
    }
    .bot-msg li {
      margin-bottom: 8px;
    }
    .bot-actions {
      display: flex;
      justify-content: flex-end;
      align-items: center;
      margin-top: 18px;
      width: 100%;
      gap: 8px;
    }
    .reaction-group, .more-group, .regenerate-btn {
      background: #fff;
      border-radius: 18px;
      box-shadow: 0 2px 8px rgba(80,80,120,0.13), 0 1.5px 4px rgba(80,80,120,0.10);
      display: flex;
      align-items: center;
      padding: 4px 12px;
      margin-right: 0;
      transition: box-shadow 0.2s;
    }
    .reaction-group {
      gap: 5px;
    }
    .more-group {
      margin-left: 8px;
      padding: 4px 8px;
    }
    .regenerate-btn {
      border: none;
      outline: none;
      margin-left: auto;
    }
    .regenerate-btn:hover, .reaction-group:hover, .more-group:hover {
      box-shadow: 0 4px 16px rgba(80,80,120,0.18), 0 2px 8px rgba(80,80,120,0.13);
      background: #f6f6fb;
    }
    .reaction-group i, .more-group i, .regenerate-btn i {
      margin-right: 0;
      color: #888;
      cursor: pointer;
      font-size: 14px;
      vertical-align: middle;
      transition: all 0.2s ease;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: none;
      border: none;
      box-shadow: none;
    }
    .reaction-group {
        height: 20px;
    }
    .reaction-group span {
        font-size: 10px;
    }    
    .regenerate-btn i {
        font-size: 12px; 
        padding: 2px 0;
    }
    .regenerate-btn i:hover {
        color: #111;
    }
    .reaction-group i:hover, .more-group i:hover {
      color: #111;
      background: #f3f3fa;
      border-radius: 50%;
    }
    .input-bar {
      position: fixed;
      bottom: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 92%;
      max-width: 728px;
      background: #f1f3f4;
      border-radius: 30px;
      display: flex;
      align-items: center;
      padding: 14px 20px;
      box-shadow: 0 8px 18px rgba(0,0,0,0.2);
      z-index: 10;
    }
    .input-bar input {
      flex: 1;
      border: none;
      background: transparent;
      font-size: 14px;
      outline: none;
      color: #222;
    }
    .input-bar i {
      font-size: 20px;
      color: #1a73e8;
      margin-left: 14px;
      cursor: pointer;
    }
    