/* Base */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #1a1b1f;
  color: #fff;
  overflow: hidden;
}
#tsparticles {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Layout */
.main-container {
  display: flex;
  width: 90%;
  max-width: 1200px;
  margin: 60px auto 80px;
  height: 75vh;
  gap: 20px;
}

/* Magical Boxes */
.magical-box {
  background: rgba(34,35,42,0.9);
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(255,215,0,0.4);
  backdrop-filter: blur(15px);
}

/* Sidebar */
.sidebar {
  width: 30%;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
}
.chat-list {
  flex: 1;
  overflow-y: auto;
}
.chat-item {
  display: flex;
  padding: 10px;
  cursor: pointer;
  align-items: center;
}
.chat-item:hover {
  background: rgba(255,215,0,0.15);
}

/* Chat Section */
.chat-section {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.chat-header {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.chat-window {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
}
.typing-indicator {
  text-align: center;
  padding: 5px;
  font-style: italic;
  background: rgba(0,0,0,0.2);
}
.message-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid rgba(255,255,255,0.1);
  background: #22232a;
}

/* Avatars */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 10px;
}

/* Emoji Picker */
.emoji-picker {
  display: none;
  position: absolute;
  bottom: 70px;
  left: 20px;
  background: #22232a;
  border-radius: 10px;
  padding: 10px;
}
.emoji-picker span {
  cursor: pointer;
  font-size: 20px;
  padding: 3px;
}

/* Tools Panel */
.tools-panel {
  position: fixed;
  right: -320px;
  top: 0;
  height: 100%;
  width: 300px;
  background: #22232a;
  padding: 20px;
  transition: 0.3s;
}
.tools-panel.open {
  right: 0;
}

/* Fixed Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(26,27,31,0.9);
  padding: 10px 0;
}
.footer a {
  margin: 0 10px;
  font-size: 22px;
  color: #fff;
}
.gradient-text {
  background: linear-gradient(90deg, #ffd700, #ff8c00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glow-text {
  text-shadow: 0 0 10px #ffd700;
}
