* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Comic Sans MS", "Segoe UI",
    "Roboto", sans-serif;
  background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Floating Notification Banner */
.floating-banner {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 20px;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  max-width: 90%;
  width: auto;
  min-width: 300px;
  transition: top 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.floating-banner.show {
  top: 20px;
  animation: bannerPulse 2s ease-in-out infinite;
}

@keyframes bannerPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(102, 126, 234, 0.7);
  }
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95em;
  line-height: 1.4;
}

.banner-icon {
  font-size: 1.4em;
  animation: iconBounce 2s ease-in-out infinite;
  flex-shrink: 0;
}

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

.banner-text {
  flex: 1;
  font-weight: 500;
  text-align: center;
}

.banner-text a {
  color: #ffd700;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.banner-text a:hover {
  color: #fff;
}

.banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}

.banner-close:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: rotate(90deg);
}

.banner-close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .floating-banner {
    min-width: 280px;
    max-width: 95%;
    padding: 10px 15px;
  }

  .banner-content {
    font-size: 0.85em;
    gap: 8px;
  }

  .banner-icon {
    font-size: 1.2em;
  }

  .banner-close {
    width: 24px;
    height: 24px;
    font-size: 1.3em;
  }
}

/* Reset Password Modal - same scrollbar hiding */
#resetPasswordModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
  overflow-y: auto;
  /* Hide scrollbar */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

#resetPasswordModal::-webkit-scrollbar {
  display: none;
}

#resetPasswordModal .auth-content {
  max-height: 90vh;
  overflow-y: auto;
  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

#resetPasswordModal .auth-content::-webkit-scrollbar {
  display: none;
}

.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease;
  overflow-y: auto; /* Enable scrolling */
  /* Hide scrollbar for all browsers */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera */
.auth-modal::-webkit-scrollbar {
  display: none;
}

.auth-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 1);
  max-width: 450px;
  width: 90%;
  max-height: 90vh; /* Limit height */
  overflow-y: auto; /* Enable scrolling inside content */
  text-align: center;
  animation: slideIn 0.4s ease-out;
  /* Hide scrollbar for content too */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari, and Opera on content */
.auth-content::-webkit-scrollbar {
  display: none;
}

/* Ensure reset modal appears above everything */
#resetPasswordModal {
  z-index: 10001;
}
/* Ensure modals are properly centered */
#authModal .auth-content,
#resetPasswordModal .auth-content {
  margin: auto;
  max-height: 90vh;
  overflow-y: auto;
}

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

.auth-content h2 {
  text-align: center;
  color: #4fc3f7;
  margin-bottom: 15px;
  font-size: 2em;
}

.auth-content > p {
  text-align: center;
  color: #81c784;
  margin-bottom: 25px;
  font-size: 1.1em;
}

.auth-buttons {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 20px;
}

.auth-btn {
  padding: 15px 30px;
  font-size: 1.1em;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  font-family: inherit;
}

.guest-btn {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  color: white;
}

.admin-btn {
  background: linear-gradient(135deg, #ab47bc, #8e24aa);
  color: white;
}

.signin-btn {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
}

.signup-btn {
  background: linear-gradient(135deg, #ffa726, #ff9800);
  color: white;
}

.verify-btn {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  color: white;
  margin-top: 10px;
}

.back-btn {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: white;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.secret-key-input {
  width: 100%;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(79, 195, 247, 0.5);
  border-radius: 12px;
  color: white;
  font-size: 1em;
  font-family: inherit;
  margin-top: 15px;
  outline: none;
}

.secret-key-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.secret-key-input:focus {
  border-color: #4fc3f7;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
}

.auth-error {
  color: #ff6b6b;
  text-align: center;
  margin-top: 10px;
  font-size: 0.9em;
}

.auth-note {
  text-align: center;
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 20px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .auth-content {
    padding: 30px 20px;
  }

  .auth-content h2 {
    font-size: 1.5em;
  }

  .auth-btn {
    padding: 12px 20px;
    font-size: 1em;
  }
}

/* Password visibility toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
}

.password-toggle-btn {
  position: absolute;
  right: 15px;
  top: calc(50% + 1px); /* Adjust this +1px value */
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
  padding: 0;
  z-index: 10;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.secret-key-input {
  position: relative;
}

.password-input-wrapper .secret-key-input {
  padding-right: 50px !important;
}

.password-toggle-btn:hover {
  color: rgba(255, 255, 255, 0.9);
}

.password-toggle-btn:focus {
  outline: none;
}

/* Adjust input padding when toggle button is present */
.password-input-wrapper input {
  padding-right: 45px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.header {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}
.title {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #4fc3f7;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-bottom: 10px;
}
.subtitle {
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: #81c784;
  margin-bottom: 20px;
}
.character-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin: 15px 0;
}
.character {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid #ffb74d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: bounce 2s infinite;
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}
.character:hover {
  transform: scale(1.1);
}
.character.jerry {
  animation-delay: 0.5s;
  background: linear-gradient(45deg, #42a5f5, #66bb6a);
}
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}
.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  margin: 10px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4fc3f7, #66bb6a, #ffb74d);
  border-radius: 4px;
  width: 25%;
  transition: width 1s ease;
}
.settings-panel {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}
.setting-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-slider {
  width: 80px;
  accent-color: #4fc3f7;
}
.control-btn {
  background: linear-gradient(135deg, #ab47bc, #8e24aa);
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
}
.control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(171, 71, 188, 0.4);
}
.control-btn-1 {
  background: linear-gradient(135deg, #186e9f, #0ebfeb);
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
}
.control-btn-1:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(171, 71, 188, 0.4);
}
.control-btn-2 {
  background: linear-gradient(135deg, #ff2600, #ff003c);
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
}

.control-btn-2:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}
.control-btn-3 {
  background: linear-gradient(135deg, #ff00ea, #ff00c8);
  border: none;
  border-radius: 18px;
  padding: 8px 16px;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: inherit;
}

.control-btn-3:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 65, 108, 0.4);
}
.exit-btn {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24) !important;
  font-weight: bold;
}
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 16px;
  min-height: 0;
}
.sidebar {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  overflow-y: auto;
  max-height: 100vh;
}
.sidebar::-webkit-scrollbar {
  width: 3px;
}
.sidebar h3 {
  margin-bottom: 16px;
  color: #4fc3f7;
  font-size: 1.1em;
}
.activity-card {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.activity-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.activity-card h4 {
  font-size: 1em;
  margin-bottom: 5px;
}
.activity-card p {
  font-size: 0.85em;
  opacity: 0.9;
}
.activity-card-main {
  background: linear-gradient(135deg, #e8c21a, #a68304);
  border-radius: 15px;
  padding: 12px;
  margin-bottom: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}
.activity-card-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}
.activity-card-main h4 {
  font-size: 1em;
  margin-bottom: 5px;
}
.activity-card-main p {
  font-size: 0.85em;
  opacity: 0.9;
}

.logo {
  display: block;
  margin: 0 auto 15px;
  width: 300px;
  height: auto;
}
.schedule-item {
  display: flex;
  align-items: center;
  padding: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 0.9em;
  margin-bottom: 8px;
}
.schedule-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}
.schedule-icon {
  width: 25px;
  height: 25px;
  margin-right: 10px;
  font-size: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-area {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.controls {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.messages {
  flex: 1;
  max-height: 500px;
  overflow-y: auto;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 15px;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
  scrollbar-color: #4fc3f7 rgba(255, 255, 255, 0.1);
}
.messages::-webkit-scrollbar {
  width: 6px;
}
.messages::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.messages::-webkit-scrollbar-thumb {
  background: #4fc3f7;
  border-radius: 3px;
}
.message {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  animation: slideIn 0.5s ease-out;
  gap: 12px;
}

/* Memory Game Styles */
.memory-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100%;
}

.memory-game-title {
  font-size: 2em;
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 20px;
}

.memory-game-info {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
  font-size: 1.2em;
  color: #fff;
}

.memory-level,
.memory-moves {
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.memory-level span,
.memory-moves span {
  font-weight: bold;
  color: #ffb74d;
}

.memory-grid {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.memory-card {
  width: 100px;
  height: 100px;
  cursor: pointer;
  perspective: 1000px;
}

.memory-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.memory-card.flipped .memory-card-inner,
.memory-card.matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-card-front,
.memory-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3em;
  border-radius: 15px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.memory-card-front {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  font-weight: bold;
}

.memory-card-back {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  transform: rotateY(180deg);
}

.memory-card.matched .memory-card-back {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
  animation: matchPulse 0.5s ease;
}

@keyframes matchPulse {
  0%,
  100% {
    transform: rotateY(180deg) scale(1);
  }
  50% {
    transform: rotateY(180deg) scale(1.1);
  }
}

.game-complete-message {
  text-align: center;
  padding: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.game-complete-emoji {
  font-size: 5em;
  margin-bottom: 20px;
  animation: bounce 1s infinite;
}

.game-complete-message h2 {
  font-size: 2em;
  color: #ffb74d;
  margin-bottom: 15px;
}

.game-complete-message p {
  font-size: 1.2em;
  color: #fff;
  margin: 10px 0;
}

.game-complete-btn {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 12px 24px;
  color: white;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 10px 5px;
  font-family: inherit;
}

.game-complete-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.5);
}
/* Level and Progress Bar */
.level-progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.level-badge {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 8px 16px;
  font-weight: bold;
  color: #ffb74d;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-size: 1.1em;
  min-width: 80px;
  text-align: center;
}

.level-progress-wrapper .progress-bar {
  flex: 1;
}

@media (max-width: 768px) {
  .memory-card {
    width: 70px;
    height: 70px;
  }

  .memory-card-front,
  .memory-card-back {
    font-size: 2em;
  }

  .memory-game-info {
    flex-direction: column;
    gap: 10px;
  }

  .memory-game-title {
    font-size: 1.5em;
  }

  .game-complete-message {
    padding: 20px;
  }

  .game-complete-emoji {
    font-size: 3em;
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.message.user {
  flex-direction: row-reverse;
}
.message-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3em;
  border: 3px solid rgba(255, 255, 255, 0.3);
  background: linear-gradient(45deg, #ff6b6b, #ffa726);
  flex-shrink: 0;
}
.message-content {
  flex: 1;
  max-width: calc(100% - 65px);
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 1em;
  line-height: 1.5;
  border: 2px solid rgba(255, 255, 255, 0.2);
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.message.user .message-content {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}
.message.assistant .message-content {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
}
.message-content h1,
.message-content h2,
.message-content h3,
.message-content h4 {
  margin: 8px 0 4px 0;
  color: #ffffff;
  font-weight: bold;
}
.message-content h1 {
  font-size: 1.4em;
}
.message-content h2 {
  font-size: 1.3em;
}
.message-content h3 {
  font-size: 1.2em;
}
.message-content h4 {
  font-size: 1.1em;
}
.message-content p {
  margin: 6px 0;
  line-height: 1.5;
}
.message-content strong {
  font-weight: bold;
  color: #ffffff;
}
.message-content em {
  font-style: italic;
}
.message-content ul,
.message-content ol {
  margin: 8px 0;
  padding-left: 20px;
}
.message-content li {
  margin: 4px 0;
  line-height: 1.4;
}
.emoji-reactions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  justify-content: flex-start;
}
.emoji-btn {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1em;
  cursor: pointer;
  transition: all 0.3s ease;
}
.emoji-btn:hover {
  transform: scale(1.1);
  border-color: #4fc3f7;
}
.input-area {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 25px;
  border: 2px solid rgba(255, 255, 255, 0.2);
}
.input-field {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 12px 16px;
  color: white;
  font-size: 1em;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
  min-width: 0;
}
.input-field::placeholder {
  color: rgba(255, 255, 255, 0.6);
}
.input-field:focus {
  border-color: #4fc3f7;
  box-shadow: 0 0 15px rgba(79, 195, 247, 0.3);
  background: rgba(255, 255, 255, 0.15);
}
.send-button {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  color: white;
  font-size: 1.3em;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(79, 195, 247, 0.3);
  flex-shrink: 0;
}
.send-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(79, 195, 247, 0.5);
}
.send-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.typing-indicator .message-content {
  background: linear-gradient(135deg, #666, #888);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Calm Breathing Mode Styles */
.calm-breathing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 20px;
  gap: 30px;
}

.calm-breathing-title {
  font-size: 2em;
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 10px;
}

.calm-breathing-subtitle {
  font-size: 1.2em;
  color: #81c784;
  text-align: center;
  margin-bottom: 20px;
}

.sound-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  width: 100%;
  max-width: 600px;
}

.sound-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 20px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sound-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(79, 195, 247, 0.4);
  border-color: #4fc3f7;
}

.sound-card.playing {
  border-color: #66bb6a;
  box-shadow: 0 10px 30px rgba(102, 187, 106, 0.5);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(102, 187, 106, 0.5);
  }
  50% {
    box-shadow: 0 10px 40px rgba(102, 187, 106, 0.8);
  }
}

.sound-image {
  width: 100%;
  height: 180px;
  border-radius: 15px;
  margin-bottom: 15px;
  font-size: 5em;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(79, 195, 247, 0.3),
    rgba(102, 187, 106, 0.3)
  );
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.sound-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.sound-description {
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
}

.play-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  background: #66bb6a;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2em;
  animation: bounce 1s infinite;
}

.sound-card.playing .play-indicator {
  display: flex;
}

.breathing-animation {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, #4fc3f7, #29b6f6);
  margin: 20px auto;
  animation: breathe 4s infinite;
  box-shadow: 0 0 30px rgba(79, 195, 247, 0.6);
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.3);
    opacity: 1;
  }
}

/* Feelings Helper Mode Styles */
.feelings-buttons-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 16px;
}

.feelings-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.feeling-btn {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 20px 10px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.feeling-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.6);
}

.feeling-emoji {
  font-size: 3em;
  line-height: 1;
}

.feeling-name {
  font-size: 1em;
  font-weight: bold;
  text-align: center;
  letter-spacing: 0.5px;
}

@media (max-width: 768px) {
  .feelings-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .feeling-btn {
    min-height: 100px;
    padding: 15px 8px;
  }

  .feeling-emoji {
    font-size: 2.5em;
  }

  .feeling-name {
    font-size: 0.9em;
  }
}
/* Social Stories Buttons Styles */
.social-stories-buttons {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  margin-bottom: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  justify-content: center;
}

.story-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 10px 16px;
  color: white;
  font-size: 0.9em;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.story-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  background: linear-gradient(135deg, #764ba2, #667eea);
}

.story-emoji {
  font-size: 1.3em;
}

.story-text {
  font-weight: 500;
}

@media (max-width: 768px) {
  .main-content {
    grid-template-columns: 1fr;
  }
  .sidebar {
    order: 2;
    max-height: 40vh;
  }
  .chat-area {
    order: 1;
    min-height: 50vh;
  }
  .character {
    width: 60px;
    height: 60px;
    font-size: 1.5em;
  }
  .sound-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .sound-image {
    height: 150px;
    font-size: 4em;
  }
  .social-stories-buttons {
    flex-direction: column;
    gap: 8px;
  }
  .story-btn {
    min-width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  .level-progress-container {
    gap: 10px;
  }

  .level-badge {
    min-width: 60px;
    padding: 8px 12px;
  }

  .level-number {
    font-size: 1.5em;
  }
}
/* Colors & Shapes Mode Styles */
.colors-shapes-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  height: 100%;
}

.colors-shapes-title {
  font-size: 2.5em;
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 15px;
}

.colors-shapes-subtitle {
  font-size: 1.2em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 40px;
}

.game-type-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 700px;
  width: 100%;
}

.game-type-btn {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  padding: 30px 20px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 200px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.game-type-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.game-type-icon {
  font-size: 4em;
}

.game-type-name {
  font-size: 1.8em;
  font-weight: bold;
}

.game-type-desc {
  font-size: 1em;
  opacity: 0.9;
  text-align: center;
}

.colors-shapes-game-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 100%;
}

.colors-shapes-game-title {
  font-size: 2em;
  color: #4fc3f7;
  text-align: center;
  margin-bottom: 10px;
}

.colors-shapes-instructions {
  font-size: 1.1em;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin-bottom: 30px;
}

.matching-game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  width: 100%;
}

.matching-column {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.matching-item {
  background: rgba(255, 255, 255, 0.1);
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
}

.matching-item:hover {
  transform: translateX(5px);
  border-color: #4fc3f7;
  background: rgba(255, 255, 255, 0.15);
}

.matching-item.selected {
  border-color: #ffb74d;
  background: rgba(255, 183, 77, 0.3);
  transform: scale(1.05);
}

.matching-item.matched {
  border-color: #66bb6a;
  background: rgba(102, 187, 106, 0.3);
  pointer-events: none;
  opacity: 0.7;
}

.color-box {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.shape-box {
  font-size: 5em;
  line-height: 1;
}

.name-box {
  font-size: 1.3em;
  font-weight: bold;
  color: white;
}

@media (max-width: 768px) {
  .game-type-buttons {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .matching-game-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .colors-shapes-title {
    font-size: 1.8em;
  }

  .colors-shapes-game-title {
    font-size: 1.5em;
  }

  .game-type-icon {
    font-size: 3em;
  }

  .game-type-name {
    font-size: 1.5em;
  }
}
