:root {
  --primary-color: #3b82f6;
  --secondary-color: #8b5cf6;
  --accent-color: #40d675;
  --accent-color2: #2c8a4d;
  --background-dark: #000000;
  --card-background: rgba(36, 36, 43, 0.202);
  --toggle-background: rgba(0, 0, 0, 0.575);
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --border-radius-lg: 20px;
  --border-radius-md: 12px;
  --sidebar-width: 280px;
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--background-dark);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.dashboard-container {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--background-dark);
  backdrop-filter: blur(15px);
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  left: 0;
}

.sidebar-logo {
  margin-right: 1rem;
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.sidebar-logo img {
  width: 60px;
  margin-right: 0.25rem;
  border-radius: 50%;
}

.sidebar-nav {
  list-style: none;
  flex-grow: 1;
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  padding: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.sidebar-nav-item:hover,
.sidebar-nav-item.active {
  background: rgba(36, 36, 43, 0.202);
  border-radius: var(--border-radius-lg);
  transform: translateX(10px);
}

.sidebar-nav-item i {
  margin-right: 1rem;
  font-size: 1.2rem;
}

.user-profile {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 1rem;
  object-fit: cover;
}

/* Main content area */
.main-content {
  flex-grow: 1;
  padding: 2rem;
  margin-left: var(--sidebar-width);
  transition: var(--transition-smooth);
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dashboard-card {
  background: var(--card-background);
  border-radius: var(--border-radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.dashboard-card h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: var(--accent-color);
  display: flex;
  align-items: center;
}

.dashboard-card h3 i {
  margin-right: 0.5rem;
}

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 80%;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
    padding-top: 4rem;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

.chart-description {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.5rem;
  border-radius: var(--border-radius-md);
  text-align: center;
}

.chart-description p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Components */
.progress-bar {
  width: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 1rem;
  position: relative;
}

.progress-bar-fill {
  height: 10px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  transition: width 1s ease-out;
  position: relative;
}

.progress-bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 5px;
  background-color: rgba(255, 255, 255, 0.5);
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.5;
  }
}

.task-list {
  list-style: none;
}

.task-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-smooth);
}

.task-item:last-child {
  border-bottom: none;
}

.task-item:hover {
  background: rgba(255, 255, 255, 0.05);
  padding-left: 0.5rem;
  border-radius: var(--border-radius-md);
}

.task-status {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.status-in-progress {
  background-color: var(--primary-color);
}

.status-completed {
  background-color: var(--accent-color2);
}

.status-not-started {
  background-color: var(--secondary-color);
}

.achievement-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.achievement-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.achievement-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.notification-center {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  padding: 0 15px;
  box-sizing: border-box;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.notification {
  background: var(--card-background);
  border-radius: var(--border-radius-md);
  border: 0.3px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.notification.show {
  opacity: 1;
  transform: translateX(0);
}

.notification i {
  margin-right: 0.5rem;
  font-size: 1rem;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15em, 1fr));
  margin-bottom: 2rem;
  gap: 1em;
  flex-wrap: wrap;
}

.stat-card {
  background: var(--card-background);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  flex: 1;
  text-align: center;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .quick-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-content: center;
  }

  .stat-card {
    width: 100%;
    max-width: none;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .stat-card {
    padding: 0.75rem;
  }

  .stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
  }
}

.menu-toggle {
  display: none;
  position: fixed;
  top: 13px;
  left: 20px;
  z-index: 1001;
  background: var(--toggle-background);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.menu-toggle:hover {
  background: rgba(45, 80, 137, 0.202);
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .menu-toggle,
  .sidebar-close {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sidebar-close {
    display: block;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.animate-fadeIn {
  animation: fadeIn 0.5s ease-out;
}

.animate-slideIn {
  animation: slideIn 0.5s ease-out;
}

/* Blur gradient background */
.blur-gradient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 10% 20%,
      rgba(102, 4, 255, 0.59) 0%,
      rgba(0, 0, 0, 0) 25%
    ),
    radial-gradient(
      circle at 90% 80%,
      rgba(0, 86, 226, 0.547) 0%,
      rgba(0, 0, 0, 0) 25%
    );
  filter: blur(100px);
  z-index: -1;
}

/* Coding activity Calendar */
.coding-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  width: 100%;
  padding-top: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  transition: var(--transition-smooth);
}

.calendar-day:hover {
  transform: scale(1.2);
}

.activity-low {
  background-color: rgba(64, 214, 117, 0.3);
}
.activity-medium {
  background-color: rgba(64, 214, 117, 0.6);
}
.activity-high {
  background-color: rgba(64, 214, 117, 0.9);
}

/* Leaderboard */
.leaderboard-list {
  list-style-type: none;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
}

.leaderboard-rank {
  font-weight: bold;
  margin-right: 1rem;
}

.leaderboard-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 1rem;
}

.leaderboard-name.leaderboard-name {
  flex-grow: 1;
}

.leaderboard-score {
  font-weight: bold;
  color: var(--accent-color);
}

/* Resource links */
.resource-list {
  list-style-type: none;
}

.resource-item {
  margin-bottom: 0.5rem;
}

.resource-link {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.resource-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Message bar */
.message-badge {
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.messages-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: var(--background-dark);
  backdrop-filter: blur(15px);
  transform: translateX(100%);
  transition: var(--transition-smooth);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.messages-container.active {
  transform: translateX(0);
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.messages-list {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1rem;
}

.message-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.75rem;
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}

.message-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.message-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

.message-content {
  flex-grow: 1;
}

.message-sender {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

.message-preview {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.message-time {
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.close-messages {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.main-content > div {
  display: none;
}
.main-content > div.active {
  display: block;
}

#attendance > h1 {
  width: max-content;
  margin-inline: auto;
  margin-bottom: 1em;
  letter-spacing: 0.1em;
}
.attendance-table {
  --table-border: 0.125em;
  border: var(--table-border) solid white;
  border-collapse: collapse;
  overflow-x: auto;
}
.attendance-table :is(td, th) {
  border: var(--table-border) solid white;
  padding: 0.5em;
}
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(36, 36, 43, 0.5);
}

::-webkit-scrollbar-thumb {
  background: #3b82f6;
}

::-webkit-scrollbar-thumb:hover {
  background: #5f9cff;
}
.messages-list::-webkit-scrollbar {
  width: 0px;
}

/* Login page */

.login-page-wrapper {
  position: fixed;
  z-index: 2000;
  background: var(--background-dark);
  inset: 0;
  width: 100%;
  height: 100vh;
  /* padding: 1.5rem; */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.login-page-wrapper.closed {
  animation: remove-login 4s both;
}
@keyframes remove-login {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    transform: translateY(-999em) scale(0.7);
    opacity: 0;
  }
}
.login-page-wrapper.active {
  opacity: 1;
  transform: none;
}

body:has(.login-page-wrapper.active) {
  overflow: hidden;
}
.form-wrapper {
  padding: 1.5rem;
}
.form-wrapper {
  height: max-content;
}

.heading-wrapper {
  display: grid;
  place-content: center;
  height: 100%;
  padding: 1.5rem 4rem 1.5rem 4rem;
  border-right: 0.25em solid hsl(0, 0%, 20%);
}
.login-logo {
  margin-inline: auto;
}
.login-page-wrapper h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
}
.login-form-wrapper {
  display: grid;
  place-items: center;
  flex: 1;
}
.login-form {
  width: clamp(20rem, 90%, 40rem);
  display: grid;
  font-size: 1.5rem;
  margin-inline: auto;
  gap: 2rem;
  border: 0.5em solid hsl(0, 0%, 10%);
  padding: clamp(0.5rem, 5vw, 3rem);
  height: max-content;
  border-radius: 0.75em;
}
.login-form .input-wrapper {
  display: grid;
  gap: 1rem;
  margin-inline: auto;
  width: 100%;
}
.login-form input {
  font-size: 1.25rem;
  border: 0.25em solid hsl(0, 0%, 25%);
  border-radius: 0.5em;
  padding: 0.5rem 1em;
  background: hsl(0, 0%, 25%);
  color: white;
}
@media screen and (max-width: 60em) {
  .login-form input {
    width: 90%;
  }
  .login-page-wrapper {
    flex-direction: column;
    width: 100%;
  }
  .heading-wrapper {
    border: 0;
    height: max-content;
    padding: 1.5rem;
  }
  .login-form-wrapper {
    width: 100%;
  }
}
.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.633);
}
.login-btn {
  padding: 0.5em 2em;
  width: max-content;
  font-size: 1.25rem;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  border: 0.25em solid hsl(217, 91%, 80%);
  cursor: pointer;
  border-radius: 0.5em;
  font-weight: 700;
  font-family: inherit;
}
.login-btn:hover {
  background: hsl(217, 91%, 65%);
}

/* Chatbot Styles */
.chatbot-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #4b6bfb;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  transition: all 0.3s ease;
}

.chatbot-toggle i {
  font-size: 24px;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  background-color: #3b5beb;
}

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: min(90%, 30em);
  height: 35em;
  background-color: #1e293b;
  border-radius: 15px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 998;
  transform: scale(0);
  transform-origin: bottom right;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.chatbot-container.active {
  transform: scale(1);
  opacity: 1;
}

.chatbot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background-color: #131e32;
  border-bottom: 1px solid #2d3a4f;
}

.chatbot-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e2e8f0;
}

.chatbot-title i {
  font-size: 20px;
  color: #4b6bfb;
}

.chatbot-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.close-chatbot {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 18px;
  padding: 5px;
  transition: color 0.2s ease;
}

.close-chatbot:hover {
  color: #e2e8f0;
}

.chatbot-messages {
  flex-grow: 1;
  padding: 15px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-message {
  display: flex;
  gap: 10px;
  max-width: 80%;
  animation: fadeIn 0.3s ease;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bot-message .chatbot-avatar {
  background-color: #4b6bfb;
  color: white;
}

.user-message .chatbot-avatar {
  background-color: #10b981;
  color: white;
}

.chatbot-message-content {
  background-color: #273548;
  padding: 10px 15px;
  border-radius: 15px;
  color: #e2e8f0;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.user-message .chatbot-message-content {
  background-color: #10b981;
}

/* Markdown styling for bot messages */
.bot-message .chatbot-message-content h1,
.bot-message .chatbot-message-content h2,
.bot-message .chatbot-message-content h3,
.bot-message .chatbot-message-content h4,
.bot-message .chatbot-message-content h5,
.bot-message .chatbot-message-content h6 {
  margin-top: 0.5em;
  margin-bottom: 0.3em;
  font-weight: 600;
  line-height: 1.25;
}

.bot-message .chatbot-message-content h1 {
  font-size: 1.5em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.3em;
}

.bot-message .chatbot-message-content h2 {
  font-size: 1.3em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.2em;
}

.bot-message .chatbot-message-content h3 {
  font-size: 1.15em;
}

.bot-message .chatbot-message-content h4 {
  font-size: 1.1em;
}

.bot-message .chatbot-message-content ul,
.bot-message .chatbot-message-content ol {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
  padding-left: 1.5em;
}

.bot-message .chatbot-message-content li {
  margin: 0.25em 0;
}

.bot-message .chatbot-message-content a {
  color: #4b9bff;
  text-decoration: none;
}

.bot-message .chatbot-message-content a:hover {
  text-decoration: underline;
}

.bot-message .chatbot-message-content code {
  font-family: monospace;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
}

.bot-message .chatbot-message-content pre {
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  padding: 0.8em;
  overflow: auto;
  margin: 0.5em 0;
}

.bot-message .chatbot-message-content pre code {
  background-color: transparent;
  padding: 0;
  white-space: pre;
  display: block;
}

.bot-message .chatbot-message-content blockquote {
  border-left: 4px solid rgba(255, 255, 255, 0.2);
  margin-left: 0;
  padding-left: 0.8em;
  color: rgba(255, 255, 255, 0.8);
}

.bot-message .chatbot-message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0;
}

.bot-message .chatbot-message-content table th,
.bot-message .chatbot-message-content table td {
  padding: 0.4em 0.6em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.bot-message .chatbot-message-content table th {
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: 600;
}

.bot-message .chatbot-message-content hr {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  margin: 1em 0;
}

.bot-message .chatbot-message-content img {
  max-width: 100%;
  border-radius: 4px;
}

/* Preserve some spacing in the content */
.bot-message .chatbot-message-content p {
  margin: 0.5em 0;
}

/* LaTeX Math Styling */
.bot-message .chatbot-message-content .katex {
  font-size: 1.1em;
}

.bot-message .chatbot-message-content .katex-display {
  margin: 0.75em 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5em 0;
}

.bot-message .chatbot-message-content .katex-display > .katex {
  display: flex;
  justify-content: center;
}

.bot-message .chatbot-message-content .katex-error {
  color: #f44336;
  white-space: normal;
  font-size: 0.9em;
}

.chatbot-input-area {
  display: flex;
  padding: 15px;
  background-color: #131e32;
  border-top: 1px solid #2d3a4f;
}

#chatbotInput {
  flex-grow: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background-color: #273548;
  color: #e2e8f0;
  outline: none;
  transition: background-color 0.2s ease;
}

#chatbotInput:focus {
  background-color: #2d3a4f;
}

#chatbotSendBtn {
  margin-left: 10px;
  background-color: #4b6bfb;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#chatbotSendBtn:hover {
  background-color: #3b5beb;
}

.typing-indicator .chatbot-message-content {
  display: flex;
  align-items: center;
  gap: 5px;
}

.typing-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: #94a3b8;
  border-radius: 50%;
  animation: bounce 1.5s infinite;
}

.typing-indicator .dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator .dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

@keyframes bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

@media (max-width: 768px) {
  .chatbot-container {
    width: calc(100% - 30px);
    height: 70vh;
    right: 15px;
    bottom: 90px;
  }

  .chatbot-toggle {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}
