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

body {
  font-family: "Noto Sans Bengali", sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #2c3e50;
}

/* Modern gradient background without image overlay */
body::before {
  display: none;
}

/* Redesigned navbar with modern gradient, shadow, and spacing */
.chat-header {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  padding: 14px 28px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 5;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  z-index: 10;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

/* Modern gradient text for app name */
.logo-small .app-name {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #60a5fa, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Clean, modern nav links with soft hover effects */
.nav-link {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.nav-link.active {
  background: rgba(59, 130, 246, 0.3);
  border-color: rgba(59, 130, 246, 0.5);
  color: #60a5fa;
}

/* Modern, professional logout button */
.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* Page container */
.container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  width: 100%;
}

/* Modern chat card with clean shadow and rounded corners */
.chat-card {
  width: 100%;
  max-width: 900px;
  height: auto;
  max-height: calc(100vh - 88px);
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

/* Cleaner header info with soft gradient background */
.chat-header-info {
  padding: 16px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.query-type-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 1.05rem;
}

/* Improved message container with better spacing */
.chat-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  background: #ffffff;
  padding: 16px 20px;
}

.message {
  margin-bottom: 12px;
  display: flex;
  animation: slideIn 0.3s ease;
}

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

.bot-message {
  justify-content: flex-start;
}

.user-message {
  justify-content: flex-end;
}

/* Modern message bubbles with improved shadows and colors */
.message-content {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 10px;
  position: relative;
  line-height: 1.5;
  word-wrap: break-word;
}

.bot-message .message-content {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.user-message .message-content {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.6;
  display: block;
  margin-top: 4px;
}

/* Improved chat input styling with modern focus states */
.chat-input-container {
  padding: 16px 20px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.chat-input {
  display: flex;
  gap: 10px;
}

.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.3s ease;
  font-family: "Noto Sans Bengali", sans-serif;
}

.chat-input input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  background: #ffffff;
}

.chat-input input::placeholder {
  color: #94a3b8;
}

.chat-input input:disabled {
  background: #f1f5f9;
  color: #cbd5e1;
  cursor: not-allowed;
}

/* Modern send button with gradient and smooth transitions */
.chat-input button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  font-family: "Noto Sans Bengali", sans-serif;
}

.chat-input button:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.chat-input button:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
  box-shadow: none;
}

/* Markdown and rich content styling */
.message .markdown {
  font-size: 0.95rem;
  line-height: 1.6;
  color: inherit;
  word-break: break-word;
}

.message .markdown p {
  margin: 0 0 0.5rem;
}

.message .markdown ul,
.message .markdown ol {
  margin: 0.3rem 0 0.6rem 1.25rem;
  padding-left: 0;
}

.message .markdown li {
  margin: 0.2rem 0;
}

.message .markdown h1,
.message .markdown h2,
.message .markdown h3 {
  font-weight: 700;
  line-height: 1.3;
  margin: 0.3rem 0 0.4rem;
}

.message .markdown h1 {
  font-size: 1.1rem;
}

.message .markdown h2 {
  font-size: 1.05rem;
}

.message .markdown h3 {
  font-size: 1rem;
}

.message .markdown strong,
.message .markdown b {
  font-weight: 700;
}

.message .markdown code {
  background: rgba(0, 0, 0, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.9rem;
}

/* Complaint submit button styling */
.complaint-submit-container {
  margin-top: 8px;
}

.complaint-submit-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: "Noto Sans Bengali", sans-serif;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.complaint-submit-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}


/* Complaint reload button styling */
.complaint-reload-container {
  margin-top: 8px;
}

.complaint-reload-btn {
  background: linear-gradient(135deg, #698dda 0%, #ccdee3 100%);
  color: #fff;
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  font-family: "Noto Sans Bengali", sans-serif;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.complaint-reload-btn:hover {
  background: linear-gradient(135deg, #3a497b 0%, #27305a 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Token lookup button (placed beside title) */
.token-lookup-btn {
  margin-left: 12px;
  padding: 8px 14px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(16,185,129,0.15);
  font-family: "Noto Sans Bengali", sans-serif;
}
.token-lookup-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16,185,129,0.22);
}

/* Modal styles for token lookup */
.token-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.token-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
}
.token-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(2,6,23,0.35);
  z-index: 2;
  border: 1px solid #e6eef6;
}
.token-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.token-modal-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}
.token-modal-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: #475569;
}
.token-modal-body input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-size: 1rem;
  outline: none;
  margin-bottom: 8px;
}
.token-modal-body input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.06);
}
.token-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}
.token-lookup-result {
  max-height: 240px;
  overflow: auto;
  padding: 8px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #eef2ff;
  color: #0f172a;
  font-size: 0.95rem;
}


/* Modern login/signup card design */
.login-container {
  width: 100%;
  max-width: 500px;
  margin: auto;
  padding: 20px;
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-align: center;
  color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Add professional animations for login/signup pages */

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

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

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

/* Animate login card entrance */
.login-card {
  animation: scaleIn 0.5s ease-out, fadeIn 0.5s ease-out;
}

/* Animate logo section */
.logo-section {
  animation: fadeInDown 0.6s ease-out;
}

.logo-section {
  margin-bottom: 32px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  animation: floatUp 0.7s ease-out;
}

.electricity-icon {
  width: 50px;
  height: 50px;
  filter: brightness(0) saturate(100%) invert(31%) sepia(97%) saturate(686%) hue-rotate(210deg) brightness(97%)
    contrast(89%);
  object-fit: contain;
  animation: floatUp 0.7s ease-out;
  transition: transform 0.3s ease;
}

.electricity-icon:hover {
  transform: scale(1.1) rotate(5deg);
}

.logo h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInDown 0.8s ease-out;
}

.tagline {
  color: #64748b;
  font-size: 1rem;
  margin: 12px 0 0;
}

.login-form {
  text-align: left;
  animation: fadeIn 0.7s ease-out 0.2s both;
}

.form-group {
  margin-bottom: 18px;
  animation: floatUp 0.6s ease-out;
  animation-fill-mode: both;
}

.form-group:nth-child(1) {
  animation-delay: 0.3s;
}

.form-group:nth-child(2) {
  animation-delay: 0.4s;
}

.form-group:nth-child(3) {
  animation-delay: 0.5s;
}

.form-group:nth-child(4) {
  animation-delay: 0.6s;
}

.form-group:nth-child(5) {
  animation-delay: 0.7s;
}

.form-group:nth-child(6) {
  animation-delay: 0.8s;
}

.form-group:nth-child(7) {
  animation-delay: 0.9s;
}

/* Enhanced input focus animations with glow effect */
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  background: #ffffff;
  color: #1e293b;
  transition: all 0.3s ease;
  font-family: "Noto Sans Bengali", sans-serif;
  position: relative;
  transition: all 0.3s ease;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 0 0 12px rgba(59, 130, 246, 0.15);
  background: #f8fafc;
  transform: translateY(-1px);
}

/* Input label animation on focus */
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1e293b;
  font-size: 0.95rem;
  animation: floatUp 0.6s ease-out;
  animation-fill-mode: both;
  transition: color 0.3s ease;
}

.form-group input:focus ~ label,
.form-group textarea:focus ~ label {
  color: #3b82f6;
}

/* Enhanced button with sophisticated hover effects */
.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Noto Sans Bengali", sans-serif;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
  animation: floatUp 0.6s ease-out 1.2s both;
  position: relative;
  overflow: hidden;
}

.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.login-btn:hover::before {
  left: 100%;
}

.login-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.35);
  letter-spacing: 0.5px;
}

.login-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

/* Error message animation */
.error-message {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 18px;
  text-align: center;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
  border-left: 4px solid #ef4444;
}

/* Footer text with link hover animation */
.footer-text {
  margin-top: 20px;
  color: #64748b;
  font-size: 0.95rem;
  text-align: center;
  animation: floatUp 0.6s ease-out 1.3s both;
}

.footer-text a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
  transition: all 0.3s ease;
}

.footer-text a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.3s ease;
}

.footer-text a:hover::after {
  width: 100%;
}

.footer-text a:hover {
  color: #2563eb;
  text-decoration: none;
}

/* Input validation success state */
.form-group input.success,
.form-group textarea.success {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Input validation error state */
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Validation feedback messages */
.form-feedback {
  font-size: 0.8rem;
  margin-top: 4px;
  display: none;
  animation: floatUp 0.3s ease-out;
}

.form-feedback.success {
  color: #10b981;
  display: block;
}

.form-feedback.error {
  color: #ef4444;
  display: block;
}

/* Password strength indicator */
.password-strength {
  height: 3px;
  background: #e2e8f0;
  border-radius: 2px;
  margin-top: 4px;
  overflow: hidden;
  display: none;
}

.password-strength.show {
  display: block;
}

.password-strength-bar {
  height: 100%;
  width: 0%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.password-strength-bar.weak {
  width: 33%;
  background: #ef4444;
}

.password-strength-bar.medium {
  width: 66%;
  background: #f59e0b;
}

.password-strength-bar.strong {
  width: 100%;
  background: #10b981;
}

/* Modern dashboard card design */
.dashboard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 20px;
}

.dashboard-card {
  background: #ffffff;
  padding: 40px 48px;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

/* Modern mode cards with gradient borders and hover effects */
.mode-card {
  border-radius: 10px;
  padding: 28px;
  border: 2px solid #e2e8f0;
  transition: all 0.3s ease;
  background: #ffffff;
}

.mode-card h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.mode-card p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.mode-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.general-mode {
  border-left: 4px solid #3b82f6;
}

.general-mode:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(59, 130, 246, 0.02));
  border-left-color: #2563eb;
}

.complaint-mode {
  border-left: 4px solid #ef4444;
}

.complaint-mode:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.05), rgba(239, 68, 68, 0.02));
  border-left-color: #dc2626;
}

.agent-mode {
  border-left: 4px solid #10b981;
}

.agent-mode:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(16, 185, 129, 0.02));
  border-left-color: #059669;
}

/* Modern mode buttons */
.mode-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-family: "Noto Sans Bengali", sans-serif;
}

.general-mode .mode-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #fff;
}

.general-mode .mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.complaint-mode .mode-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
}

.complaint-mode .mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.agent-mode .mode-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.agent-mode .mode-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Welcome text on dashboard */
.welcome-text {
  color: #1e293b;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 12px 0 8px;
}

/* Responsive design for tablets and mobile */
@media (max-width: 768px) {
  .chat-card {
    max-height: calc(100vh - 80px);
    border-radius: 8px;
  }

  .message-content {
    max-width: 85%;
  }

  .logo-small .app-name {
    font-size: 1.5rem;
    letter-spacing: 0.3px;
  }

  .nav-links {
    gap: 6px;
  }

  .nav-link,
  .logout-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .nav-right {
    gap: 8px;
  }

  .chat-header {
    padding: 12px 16px;
  }

  .login-card {
    padding: 32px 24px;
  }

  .dashboard-card {
    padding: 24px 20px;
  }

  .modes-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mode-card {
    padding: 20px;
  }

  .container {
    padding: 12px;
  }
}

@media (max-width: 480px) {
  .chat-header {
    padding: 10px 12px;
  }

  .logo-small .app-name {
    font-size: 1.2rem;
  }

  .nav-link,
  .logout-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
  }

  .message-content {
    max-width: 90%;
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .chat-input input,
  .chat-input button {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  .login-card {
    padding: 24px 18px;
  }

  .logo h1 {
    font-size: 2rem;
  }

  .login-form {
    margin-top: 16px;
  }

  .form-group {
    margin-bottom: 14px;
  }

  .dashboard-card {
    padding: 16px 12px;
  }
}

