* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 16% 78%, rgba(16, 185, 129, 0.22), transparent 45%),
    radial-gradient(circle at 84% 18%, rgba(56, 189, 248, 0.2), transparent 45%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #334155 100%);
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  position: relative;
}

#backgroundCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 1.2s ease-out forwards;
  opacity: 0;
  animation-delay: 0.3s;
}

.time-greeting {
  animation-delay: 0.2s;
}

#mainHeading {
  animation-delay: 0.4s;
}

.back-home-pill {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #e6fffb;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(30, 41, 59, 0.64));
  border: 1px solid rgba(110, 231, 183, 0.52);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.52);
  box-shadow:
    0 10px 28px rgba(2, 6, 23, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.back-home-pill:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow:
    0 14px 32px rgba(2, 6, 23, 0.58),
    0 0 20px rgba(16, 185, 129, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.sidebar-toggle-btn {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.62));
  border: 1px solid rgba(110, 231, 183, 0.62);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 14px 34px rgba(2, 6, 23, 0.55),
    0 0 20px rgba(16, 185, 129, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  z-index: 1001;
  transition: all 0.3s ease;
  color: #d1fae5;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
  animation: hudBreath 3s ease-in-out infinite;
}

.sidebar-toggle-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(52, 211, 153, 0.42);
  opacity: 0.85;
  pointer-events: none;
  animation: hudRing 3.2s linear infinite;
}

.sidebar-toggle-btn:hover {
  border-color: rgba(167, 243, 208, 0.95);
  box-shadow:
    0 16px 40px rgba(2, 6, 23, 0.62),
    0 0 30px rgba(16, 185, 129, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px) scale(1.07);
}

.sidebar-toggle-btn.rotated svg {
  transform: rotate(180deg);
}

.sidebar-toggle-btn svg {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.55));
}

.superman {
  position: fixed;
  right: 20px;
  bottom: 60px;
  width: 60px;
  height: 60px;
  z-index: 1002;
  opacity: 0;
  pointer-events: none;
}

.superman.flying-to-sidebar {
  animation: flyToSidebar 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.superman.flying-back {
  animation: flyBack 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes flyToSidebar {
  0% {
    right: 20px;
    bottom: 60px;
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }
  50% {
    right: 50%;
    bottom: 50%;
    opacity: 1;
    transform: rotate(-45deg) scale(1.2);
  }
  100% {
    right: calc(100% - 40px);
    bottom: calc(100% - 40px);
    opacity: 0;
    transform: rotate(-45deg) scale(0.5);
  }
}

@keyframes flyBack {
  0% {
    right: calc(100% - 40px);
    bottom: calc(100% - 40px);
    opacity: 1;
    transform: rotate(-45deg) scale(0.5);
  }
  50% {
    right: 50%;
    bottom: 50%;
    opacity: 1;
    transform: rotate(135deg) scale(1.2);
  }
  100% {
    right: 20px;
    bottom: 60px;
    opacity: 0;
    transform: rotate(180deg) scale(1);
  }
}

.time-display {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.86), rgba(30, 41, 59, 0.66));
  border: 1px solid rgba(110, 231, 183, 0.58);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: #ecfeff;
  text-shadow: 0 0 10px rgba(110, 231, 183, 0.55);
  box-shadow:
    0 12px 30px rgba(2, 6, 23, 0.44),
    0 0 22px rgba(16, 185, 129, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  z-index: 1000;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  animation: hudBreath 3.6s ease-in-out infinite;
}

.time-display::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0.02) 40%);
  pointer-events: none;
}

@keyframes hudBreath {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.06);
  }
}

@keyframes hudRing {
  0% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.9;
  }
  100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
}

.sidebar {
  width: 260px;
  background: linear-gradient(165deg, rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.76));
  border-right: 1px solid rgba(110, 231, 183, 0.34);
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow:
    0 24px 50px rgba(2, 6, 23, 0.58),
    0 0 28px rgba(16, 185, 129, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  height: 100vh;
  overflow-y: auto;
  transition: all 0.3s ease;
  margin-left: 0;
  z-index: 999;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: relative;
}

.sidebar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 86px;
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.16), rgba(16, 185, 129, 0));
  pointer-events: none;
}

.sidebar.collapsed {
  margin-left: -260px;
}

.new-chat-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.56));
  border: 1px solid rgba(110, 231, 183, 0.36);
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.4);
  transition: all 0.3s ease;
}

.new-chat-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(45, 212, 191, 0.16));
  border-color: rgba(110, 231, 183, 0.8);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px rgba(2, 6, 23, 0.52),
    0 0 20px rgba(16, 185, 129, 0.28);
}

.new-chat-btn svg {
  color: #99f6e4;
}

.shortcut {
  margin-left: auto;
  font-size: 12px;
  color: #d1fae5;
  background: rgba(110, 231, 183, 0.14);
  border: 1px solid rgba(110, 231, 183, 0.34);
  padding: 2px 8px;
  border-radius: 999px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  color: #e2e8f0;
  background: rgba(148, 163, 184, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(110, 231, 183, 0.48);
  color: #f8fafc;
  transform: translateX(3px);
}

.menu-item svg {
  color: #99f6e4;
}

.login-menu-item {
  border-color: rgba(110, 231, 183, 0.62);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(45, 212, 191, 0.16));
}

.login-menu-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.36), rgba(45, 212, 191, 0.2));
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow: hidden;
}

.chat-container {
  width: 100%;
  max-width: 900px;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 40px 40px 0;
}

.greeting-container {
  text-align: center;
  color: #fff;
  padding: 40px 0;
  flex-shrink: 0;
}

.time-greeting {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 15px;
  color: #ffd89b;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-heading {
  font-size: 42px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  line-height: 1.3;
}

.messages-wrapper {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 10px;
  margin-bottom: 20px;
}

.messages-wrapper::-webkit-scrollbar {
  width: 8px;
}

.messages-wrapper::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

.messages-wrapper::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 10px;
}

.messages-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

.input-container {
  width: 100%;
  flex-shrink: 0;
  margin-top: auto;
  padding-bottom: 56px;
}

.input-wrapper {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  border: 1px solid rgba(110, 231, 183, 0.45);
  border-radius: 34px;
  padding: 8px 8px 8px 24px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  box-shadow:
    0 14px 40px rgba(2, 6, 23, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 26px rgba(16, 185, 129, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all 0.3s ease;
  min-height: 60px;
}

.input-wrapper::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.08));
  pointer-events: none;
}

.input-wrapper:focus-within {
  border-color: rgba(110, 231, 183, 0.78);
  box-shadow:
    0 16px 46px rgba(2, 6, 23, 0.42),
    0 0 0 1px rgba(167, 243, 208, 0.62) inset,
    0 0 35px rgba(16, 185, 129, 0.32);
  transform: translateY(-2px);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 16px;
  color: #f8fafc;
  background: transparent;
  padding: 12px 0;
  resize: none;
  overflow-y: hidden;
  max-height: none;
  min-height: 44px;
  line-height: 1.5;
  font-family: "Brush Script MT", "Segoe Script", cursive;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.chat-input::placeholder {
  color: #d1fae5;
  opacity: 0.75;
  font-family: "Brush Script MT", "Segoe Script", cursive;
}

.chat-input::-webkit-scrollbar {
  display: none;
}

.chat-input::-webkit-scrollbar-thumb {
  background: rgba(167, 243, 208, 0.62);
  border-radius: 10px;
}

.attach-btn,
.mic-btn,
.submit-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #dbeafe;
  position: relative;
  flex-shrink: 0;
}

.attach-btn:hover,
.mic-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

.mic-btn.recording {
  background: #ff4444;
  color: #fff;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(255, 68, 68, 0);
  }
}

.submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.32);
}

.submit-btn:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  transform: scale(1.05);
}

.message {
  max-width: 80%;
  animation: fadeIn 0.3s ease;
  word-wrap: break-word;
}

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

.user-message {
  align-self: flex-end;
  margin-left: auto;
}

.ai-message {
  align-self: flex-start;
  margin-right: auto;
}

.message-content {
  padding: 15px 20px;
  border-radius: 20px;
  line-height: 1.5;
  word-wrap: break-word;
  border: 1px solid transparent;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.user-message .message-content {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.95) 0%, rgba(6, 182, 212, 0.9) 100%);
  color: #ecfeff;
  border-bottom-right-radius: 5px;
  border-color: rgba(167, 243, 208, 0.48);
  box-shadow:
    0 10px 26px rgba(6, 182, 212, 0.22),
    0 8px 22px rgba(16, 185, 129, 0.28);
}

.ai-message .message-content {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.76));
  color: #e2e8f0;
  border-bottom-left-radius: 5px;
  border-color: rgba(110, 231, 183, 0.34);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.message-content strong {
  font-weight: 700;
}

.message-content em {
  font-style: italic;
}

.message-content code {
  background: rgba(15, 23, 42, 0.36);
  color: #cffafe;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 0.9em;
}

.user-message .message-content code {
  background: rgba(255, 255, 255, 0.22);
  color: #f8fafc;
}

.typing-indicator {
  padding: 10px 12px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.76));
  border-radius: 20px;
  border-bottom-left-radius: 5px;
  border: 1px solid rgba(110, 231, 183, 0.34);
  box-shadow:
    0 12px 28px rgba(2, 6, 23, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.typing-logo-loader {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(167, 243, 208, 0.34),
    rgba(16, 185, 129, 0.16) 45%,
    rgba(15, 23, 42, 0.72) 100%
  );
  border: 1px solid rgba(110, 231, 183, 0.56);
  box-shadow:
    0 0 0 1px rgba(110, 231, 183, 0.16) inset,
    0 0 24px rgba(16, 185, 129, 0.34),
    0 8px 20px rgba(2, 6, 23, 0.46);
  animation: aiLoaderFloat 2.1s ease-in-out infinite, aiLoaderPulse 1.8s ease-in-out infinite;
}

.typing-logo-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(110, 231, 183, 0.75));
  animation: aiLogoWobble 1.6s ease-in-out infinite;
}

.typing-fallback {
  font-size: 13px;
  font-weight: 700;
  color: #d1fae5;
  letter-spacing: 1px;
  text-shadow: 0 0 8px rgba(110, 231, 183, 0.6);
}

@keyframes aiLoaderFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes aiLoaderPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 1px rgba(110, 231, 183, 0.16) inset,
      0 0 20px rgba(16, 185, 129, 0.25),
      0 8px 20px rgba(2, 6, 23, 0.46);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(110, 231, 183, 0.28) inset,
      0 0 34px rgba(16, 185, 129, 0.44),
      0 10px 24px rgba(2, 6, 23, 0.5);
  }
}

@keyframes aiLogoWobble {
  0%,
  100% {
    transform: rotate(-4deg) scale(0.98);
  }
  50% {
    transform: rotate(4deg) scale(1.04);
  }
}

.chat-history-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.chat-history-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.chat-history-popup {
  background: #fff;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.chat-history-overlay.active .chat-history-popup {
  transform: scale(1);
}

.popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.popup-header h2 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.close-popup-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #666;
}

.close-popup-btn:hover {
  background: #e8e8e8;
  color: #333;
  transform: rotate(90deg);
}

.popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

.chat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-item {
  padding: 16px;
  background: #f8f9fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.chat-item:hover {
  background: #e8eaf0;
  border-color: #667eea;
  transform: translateX(5px);
}

.chat-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.chat-item-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-item-icon {
  width: 20px;
  height: 20px;
  color: #667eea;
}

.chat-item-date {
  font-size: 12px;
  color: #999;
}

.chat-item-preview {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.chat-item-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.chat-item-btn {
  flex: 1;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.load-chat-btn {
  background: #667eea;
  color: #fff;
}

.load-chat-btn:hover {
  background: #5568d3;
  transform: translateY(-2px);
}

.delete-chat-btn {
  background: #f5f5f5;
  color: #ff4444;
}

.delete-chat-btn:hover {
  background: #ff4444;
  color: #fff;
}

.empty-chat-list {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}

.empty-chat-list svg {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  opacity: 0.3;
}

.empty-chat-list h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #666;
}

.empty-chat-list p {
  font-size: 14px;
  line-height: 1.6;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.55), rgba(45, 212, 191, 0.5));
  border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(110, 231, 183, 0.78), rgba(45, 212, 191, 0.7));
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    z-index: 999;
  }

  .sidebar.collapsed {
    margin-left: -260px;
  }

  .sidebar-toggle-btn {
    right: 10px;
    bottom: 50px;
    width: 52px;
    height: 52px;
  }

  .superman {
    right: 10px;
    bottom: 50px;
    width: 50px;
    height: 50px;
  }

  .chat-container {
    padding: 20px 20px 0;
  }

  .greeting-container {
    padding: 52px 0 16px;
  }

  .main-heading {
    font-size: 32px;
  }

  .time-greeting {
    font-size: 18px;
  }

  .time-display {
    top: 10px;
    right: 10px;
    padding: 8px 16px;
    font-size: 14px;
    letter-spacing: 1.2px;
  }

  .back-home-pill {
    padding: 8px 12px;
    font-size: 12px;
  }

  .input-container {
    padding-bottom: 110px;
  }

  .chat-history-popup {
    width: 95%;
    max-height: 90vh;
  }

  .popup-header {
    padding: 20px;
  }

  .popup-header h2 {
    font-size: 20px;
  }

  .popup-content {
    padding: 16px 20px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 26px;
  }

  .time-greeting {
    font-size: 16px;
  }

  .chat-input {
    font-size: 14px;
  }

  .greeting-container {
    padding: 62px 0 18px;
  }

  .input-container {
    padding-bottom: 124px;
  }
}

@media (min-width: 1024px) {
  .chat-input {
    font-size: 19px;
  }

  .chat-input::placeholder {
    font-size: 19px;
  }
}
