/* Background & Splash */
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at center, #041727, #010c17);
  font-family: 'Segoe UI', sans-serif;
  color: #ffffff;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#splash-screen {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #041727, #010c17);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 1s ease;
}

#splash-screen.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* Chat Container */
.chat-wrapper {
  display: none;
  width: 90%;
  max-width: 500px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  flex-direction: column;
  gap: 20px;
}

/* Language Select */
#language-select {
  align-self: flex-start;
  color: #78dfff;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}

#language-select select {
  background: transparent;
  border: none;
  color: #78dfff;
  font-size: 1rem;
  outline: none;
  appearance: none;
}

/* Title & Subtitle */
h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #00bfff;
  text-align: center;
}

.chat-wrapper > p {
  text-align: center;
  font-size: 1.1rem;
  color: #c0d3e5;
  margin: 0;
}

/* Input Area */
.input-wrapper {
  display: flex;
  align-items: center;
  background: #101c2b;
  border-radius: 12px;
  padding: 10px 15px;
}

.input-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: #b0c7de;
  font-size: 1rem;
}

.input-wrapper button {
  background: none;
  border: none;
  color: #00bfff;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 10px;
}

/* Chat Box */
#chat-box {
  max-height: 300px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 10px;
}

/* Message Bubbles */
.message {
  padding: 10px 16px;
  border-radius: 15px;
  max-width: 80%;
  font-size: 0.95rem;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.message.user {
  background: #00bfff;
  color: #00283a;
  align-self: flex-end;
  border-bottom-right-radius: 0;
}

.message.ai {
  background: rgba(255, 255, 255, 0.1);
  color: #e0eaff;
  align-self: flex-start;
  border-bottom-left-radius: 0;
}

/* File & Mic Buttons */
input[type="file"] {
  display: none;
}

#sendBtn, #file-upload-icon, #mic-icon {
  cursor: pointer;
  transition: transform 0.2s;
}

#sendBtn:hover,
#file-upload-icon:hover,
#mic-icon:hover {
  transform: scale(1.1);
}
