/* =========================================================
   GLOBAL
========================================================= */
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(145deg, #898fe8, #aa8be9);
  color: white;
}

/* =========================================================
   PAGE CENTERING
========================================================= */
.top-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

.container {
  max-width: 480px;
  width: 100%;
  padding: 30px 20px;
}

/* =========================================================
   HEADINGS
========================================================= */
.title {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 700;
  text-align: center;
}

.quote {
  text-align: center;
  margin-top: -8px;
  opacity: 0.95;
  font-size: clamp(12px, 3vw, 14px);
}

.quote span {
  display: block;
  margin-top: 4px;
  font-weight: 300;
  font-size: clamp(12px, 3vw, 14px);
}

/* =========================================================
   CARD
========================================================= */
.card {
  background: rgba(255, 255, 255, 0.18);
  padding: 22px;
  border-radius: 20px;
  margin-top: 22px;
  backdrop-filter: blur(18px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.card h2 {
  margin-bottom: 15px;
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 600;
}

/* =========================================================
   INPUTS
========================================================= */
.input-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

.input-group label {
  margin-bottom: 4px;
  font-size: clamp(12px, 3vw, 14px);
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
}

#mic-btn {
  padding: 0 14px;
  border-radius: 12px;
  border: none;
  background: #6b75ff;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* =========================================================
   ROW LAYOUT
========================================================= */
.row {
  display: flex;
  gap: 22px;
}

.row .input-group {
  flex: 1;
}

/* =========================================================
   TOGGLES
========================================================= */
.subhead {
  margin-top: 10px;
  margin-bottom: 8px;
}

.toggle-row {
  display: flex;
  justify-content: space-between;
}

.toggle-row label {
  font-size: 14px;
}

/* =========================================================
   BUTTONS
========================================================= */
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

button.primary {
  background: #4a57ff;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button.secondary {
  background: #9ca3af;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

/* =========================================================
   OUTPUT
========================================================= */
.output-title {
  margin-top: 25px;
  font-size: clamp(18px, 4vw, 20px);
}

.suggestion {
  background: rgba(255,255,255,0.18);
  margin-top: 15px;
  padding: 14px;
  border-radius: 14px;
  color: #fff;
}

/* =========================================================
   PROGRESS BAR
========================================================= */
.progress-container {
  margin-top: 25px;
}

.progress-bar {
  height: 14px;
  background: rgba(255,255,255,0.3);
  border-radius: 20px;
}

#progressFill {
  height: 100%;
  width: 0%;
  background: #00ff99;
  border-radius: 20px;
  transition: 0.4s;
}

/* =========================================================
   ADD-ON BUTTONS
========================================================= */
.addon-buttons button {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: #6b75ff;
  color: white;
  font-weight: 600;
  margin-bottom: 10px;
  cursor: pointer;
}

/* =========================================================
   CHATBOT
========================================================= */
/* Chatbot button */
#chatbot-box, 
#chatbot-box * {
  color: black !important;  
  font-family: Arial, sans-serif;
}

#chatbot-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #6b75ff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  font-size: 26px;
  color: white; 
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}

#chatbot-box {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 320px;
  max-width: 90%;
  background: #fefefe;
  border-radius: 15px;
  display: none;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  font-size: 14px;
}

.chatbot-header {
  background: #6b75ff;
  padding: 12px;
  color: white !important; 
  display: flex;
  justify-content: space-between;
  font-weight: bold;
}

.chatbot-messages {
  height: 250px;
  overflow-y: auto;
  padding: 12px;
  background: #f5f5f5;
}

.user-msg {
  background: #e0e0e0;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  max-width: 80%;
  align-self: flex-end;
}

.bot-msg {
  background: #d1d8ff;
  padding: 8px 10px;
  border-radius: 10px;
  margin-bottom: 6px;
  max-width: 80%;
  align-self: flex-start;
}

.chatbot-input {
  padding: 12px;
  display: flex;
  gap: 8px;
  background: #fefefe;
}

.chatbot-input input {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #ccc;
  background: #fff;
}

.chatbot-input button {
  padding: 8px 12px;
  border: none;
  border-radius: 12px;
  background: #6b75ff;
  color: white;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive tweaks */
@media (max-width: 500px) {
  #chatbot-box {
    bottom: 85px;
    right: 5%;
  }
}

@media (max-width: 400px) {
  #chatbot-btn {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .chatbot-header,
  .chatbot-input {
    padding: 10px;
  }
}

@media (max-width: 330px) {
  .row {
    gap: 10px;
  }
}

/* Application Section Styling */
#applicationsSection {
    width: 90%;
    max-width: 1100px;
    margin: 60px auto;
    text-align: center;
}

.app-title {
    color: white;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 25px;
}

.app-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 20px;
}

.app-card {
    background: rgba(255, 255, 255, 0.18);
    padding: 20px;
    border-radius: 18px;
    backdrop-filter: blur(14px);
    color: white;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    transition: 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.25);
    background: rgba(255, 255, 255, 0.30);
}

.app-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.app-card p {
    font-size: 14px;
    opacity: 0.9;
}