/* --------------------------- */
/* GLOBAL STYLES */
/* --------------------------- */

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: radial-gradient(circle at top, #101021, #000000);
  color: white;
}

/* Glass effect */
.glass {
  background: rgba(15, 15, 30, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
}

/* Inputs */
.input, .chat-input {
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 100%;
  outline: none;
}

.input::placeholder, .chat-input::placeholder {
  color: #b8b8b8;
}

/* Buttons */
.btn-primary {
  padding: 12px 20px;
  background: linear-gradient(135deg, #6a5acd, #8b6cff);
  border: none;
  color: white;
  border-radius: 10px;
  cursor: pointer;
  font-size: 15px;
  transition: 0.2s;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 12px rgba(138, 109, 255, 0.7);
}

/* --------------------------- */
/* LOGIN PAGE */
/* --------------------------- */

.login-body {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  width: 380px;
  padding: 30px;
  text-align: center;
}

.login-logo {
  max-width: 140px;
  margin-bottom: 18px;
}

.login-title {
  margin-bottom: 8px;
}

.login-subtitle {
  margin-bottom: 25px;
  font-size: 14px;
  color: #b8b8b8;
}

.login-btn {
  width: 100%;
  margin-top: 8px;
}

.login-footer {
  margin-top: 25px;
  opacity: 0.5;
  font-size: 13px;
}

/* --------------------------- */
/* SIDEBAR */
/* --------------------------- */

.sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  max-width: 120px;
  margin: 0 auto 10px;
  display: block;
}

.sidebar-header {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar-subtitle {
  font-size: 13px;
  color: #a0a0a0;
}

.menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-item {
  padding: 12px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.menu-item .icon {
  width: 22px;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.09);
}

.menu-item.active {
  background: linear-gradient(135deg, rgba(104, 90, 205, 0.25), rgba(140, 110, 255, 0.35));
}

.logout {
  margin-top: auto;
  background: rgba(255, 80, 80, 0.15);
}

/* --------------------------- */
/* MAIN AREA */
/* --------------------------- */

.main-container {
  margin-left: 260px;
  padding: 20px;
}

.topbar {
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-title {
  font-weight: bold;
  font-size: 18px;
}

.topbar-subtitle {
  font-size: 13px;
  color: #b0b0b0;
}

.topbar-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.status-off {
  background: #ff5252;
}

.topbar-status-text {
  font-size: 13px;
  color: #ff8e8e;
}

/* --------------------------- */
/* CHAT */
/* --------------------------- */

.chat-window {
  padding: 18px 20px;
  height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.messages {
  flex: 1;
  overflow-y: auto;
  margin-bottom: 10px;
  padding-right: 10px;
}

.message {
  margin-bottom: 14px;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 75%;
  position: relative;
  animation: fadeIn 0.25s ease-out;
  font-size: 14px;
  white-space: pre-line;
}

.user {
  background: rgba(90, 140, 255, 0.35);
  align-self: flex-end;
}

.assistant {
  background: rgba(80, 255, 120, 0.2);
  align-self: flex-start;
}

.input-area {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

/* Suggestions chips */
.suggestions {
  margin: 8px 0 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  color: #ddd;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Typing indicator */
.typing {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.typing-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle, #58ff9c, #188b4b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.typing-dots span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: #dddddd;
  animation: blink 1.2s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

/* --------------------------- */
/* WINDOWS */
/* --------------------------- */

.hidden {
  display: none;
}

.docs-window, .profile-window {
  padding: 20px;
  min-height: 300px;
}

/* --------------------------- */
/* ANIMATIONS */
/* --------------------------- */

@keyframes blink {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
