* {
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  margin: 0;
  background: #0f0f0f;
  color: white;
}

/* TOP BAR */
.topbar {
  height: 55px;
  background: #151515;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
}

.title {
  font-weight: bold;
}

/* CHAT */
#chat {
  padding: 10px;
  height: calc(100vh - 120px);
  overflow-y: auto;
}

.user {
  background: #1f1f1f;
  padding: 8px 12px;
  border-radius: 12px;
  margin: 6px 0;
  max-width: 70%;
  margin-left: auto;
}

.ai {
  margin: 6px 0;
}

/* INPUT */
.input-wrapper {
  padding: 8px;
  background: #151515;
}

.input-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

textarea {
  flex: 1;
  resize: none;
  border-radius: 20px;
  padding: 10px;
  border: none;
  outline: none;
}

.icon-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 18px;
  position: relative;
  overflow: hidden;
}

.hidden {
  display: none;
}

/* SEND ZOOM */
#sendBtn {
  animation: zoom 0.3s ease;
}

@keyframes zoom {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* RIPPLE EFFECT */
.ripple::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,0.4);
  border-radius: 50%;
  transform: scale(0);
  width: 100px;
  height: 100px;
  animation: ripple 0.6s linear;
  opacity: 0;
}

.ripple:active::after {
  transform: scale(3);
  opacity: 1;
}

@keyframes ripple {
  to {
    transform: scale(3);
    opacity: 0;
  }
}

/* THINKING */
.thinking {
  height: 18px;
  width: 60px;
  background: linear-gradient(90deg,#fff,#000,#fff);
  animation: load 1s infinite;
}

@keyframes load {
  0% { background-position: 0%; }
  100% { background-position: 100%; }
}

/* RESPONSE ACTIONS */
.actions {
  display: flex;
  gap: 10px;
  font-size: 14px;
  margin-top: 5px;
}