/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', sans-serif;
}

/* ================= BODY ================= */

body{
  height:100vh;
  display:flex;
  flex-direction:column;

  background:linear-gradient(135deg,#6d28d9,#2563eb);
  transition:.3s;
}

/* ================= TOP BAR ================= */

.top-bar{
  height:60px;
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:0 20px;
  color:white;

  background:rgba(0,0,0,.25);
  backdrop-filter:blur(10px);
}

.mode-btn{
  border:none;
  padding:6px 12px;
  border-radius:20px;
  cursor:pointer;
  background:white;
}

/* ================= CHAT AREA ================= */

.chat-container{
  flex:1;
  overflow-y:auto;
  padding:20px;
  padding-bottom:120px;

  display:flex;
  flex-direction:column;
  gap:15px;
}

/* ================= CHAT BUBBLES ================= */

.ai-chat-box,
.user-chat-box{
  display:flex;
  gap:10px;
}

.user-chat-box{
  justify-content:flex-end;
}

.ai-chat-area,
.user-chat-area{
  max-width:70%;
  padding:12px 16px;
  border-radius:18px;
  color:white;
}

/* AI bubble */
.ai-chat-area{
  background:rgba(255,255,255,0.15);
}

/* User bubble */
.user-chat-area{
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
}

/* ================= AVATAR ================= */

#aiImage,
#userImage{
  width:36px;
  height:36px;
  border-radius:50%;
}

/* ================= PROMPT ================= */

.prompt-area{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);

  width:92%;
  max-width:700px;

  display:flex;
  gap:10px;

  padding:10px 14px;

  border-radius:40px;
  background:rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
}

.prompt-area input{
  flex:1;
  border:none;
  outline:none;
  background:transparent;
  color:white;
  font-size:15px;
}

#submit{
  border:none;
  width:40px;
  height:40px;
  border-radius:50%;
  cursor:pointer;

  color:white;
  background:linear-gradient(135deg,#7c3aed,#3b82f6);
}

/* ================= LIGHT MODE ================= */

body.light{
  background:linear-gradient(135deg,#e0e7ff,#c7d2fe);
}

body.light .ai-chat-area,
body.light .user-chat-area{
  color:black;
}
/* Avatar style for ALL messages */

.avatar{
  width:60px;
  height:60px;
  border-radius:50%;
  object-fit:cover;
  flex-shrink:0;
}
/* single screen layout */

.screen{
  display:none;
  height:100vh;

  justify-content:center;
  align-items:center;
  flex-direction:column;
  gap:25px;
}

.screen.active{
  display:flex;
}

#chat{
  justify-content:flex-start;
}

/* bot image */

.bot-big{
  width:140px;
  height:140px;
  border-radius:50%;
}
.center{
  height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:25px;
}

.bot-big{
  width:140px;
  height:140px;
  border-radius:50%;
}
/* ===== user info ===== */

.user-info{
  display:flex;
  align-items:center;
  gap:10px;
}

.user-pic{
  width:32px;
  height:32px;
  border-radius:50%;
  object-fit:cover;
}

.logout-btn{
  padding:5px 10px;
  border:none;
  border-radius:15px;
  cursor:pointer;
  background:#ef4444;
  color:white;
  font-size:12px;
}
