/* Updated color scheme to dark red theme with custom loading animations */
:root {
  --primary-red: #dc2626;
  --dark-red: #991b1b;
  --light-red: #ef4444;
  --accent-red: #fca5a5;
  --accent-cyan: #06b6d4;
  --accent-green: #10b981;
  --accent-purple: #a855f7;
  --bg-dark: #0a0a0a;
  --bg-card: #121212;
  --bg-input: #1a1a1a;
  --text-light: #f5f5f5;
  --text-muted: #a3a3a3;
  --border-red: rgba(220, 38, 38, 0.3);
  --shadow-red: rgba(220, 38, 38, 0.2);
}

/* Global overflow prevention */
html, body {
  overflow-x: hidden;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Custom Loading Animations for Different Pages */
.loading-selection {
  background: linear-gradient(135deg, #0f0f0f 0%, #2d1b1b 100%);
}

.loading-auth {
  background: linear-gradient(135deg, #1a0f0f 0%, #2d1b1b 50%, #0f0f0f 100%);
}

.loading-dashboard {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 50%, #2d1b1b 100%);
}

/* Custom Loading Icons */
.loading-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  position: relative;
}

.loading-icon-selection {
  border: 4px solid var(--border-red);
  border-top: 4px solid var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-icon-auth {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 60px;
}

.loading-icon-auth::before,
.loading-icon-auth::after {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--primary-red);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite alternate;
}

.loading-icon-auth::after {
  animation-delay: 0.5s;
}

.loading-icon-dashboard {
  border: 3px solid transparent;
  border-top: 3px solid var(--primary-red);
  border-right: 3px solid var(--light-red);
  border-radius: 50%;
  animation: rotate 2s linear infinite;
}

.loading-text {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1rem;
}

.loading-subtext {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Container */
.container {
  background: rgba(26, 26, 26, 0.85);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px var(--shadow-red), 0 0 60px rgba(6, 182, 212, 0.1);
  text-align: center;
  max-width: 1200px;
  width: 90%;
  animation: fadeIn 0.6s ease-in-out;
  border: 1px solid var(--border-red);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

/* Added glowing border animation */
.container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(6, 182, 212, 0.1), transparent);
  animation: shimmerGlow 3s infinite;
  pointer-events: none;
}

@keyframes shimmerGlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* Enhanced login card with multi-color glow */
.login-card {
  animation: fadeInUp 0.6s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(220, 38, 38, 0.2), 0 0 60px rgba(6, 182, 212, 0.1), inset 0
    0 30px rgba(220, 38, 38, 0.05);
  border: 1px solid rgba(220, 38, 38, 0.3);
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

/* Added animated glow border to login card */
.login-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    rgba(220, 38, 38, 0.3),
    rgba(6, 182, 212, 0.2),
    rgba(16, 185, 129, 0.2),
    rgba(220, 38, 38, 0.3)
  );
  animation: rotateGlow 8s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

@keyframes rotateGlow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Enhanced input fields with glow effects */
.input-group input,
.input-group textarea {
  width: 100%;
  padding: 14px 16px 14px 44px;
  border: 2px solid #333333;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #1a1a1a;
  color: #f5f5f5;
  position: relative;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #666666;
}

.input-group input:focus,
.input-group textarea:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15), 0 0 20px rgba(220, 38, 38, 0.4), 0 0 40px rgba(6, 182, 212, 0.2), inset
    0 0 10px rgba(220, 38, 38, 0.08);
  background: #222222;
  transform: translateY(-2px);
}

.input-group input:hover:not(:focus),
.input-group textarea:hover:not(:focus) {
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.15);
  border-color: rgba(220, 38, 38, 0.6);
  background: #1f1f1f;
}

/* Enhanced button with multi-color glow and transitions */
.login-btn {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  animation: fadeInUp 0.6s ease-out 0.35s both;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3), 0 0 20px rgba(220, 38, 38, 0.2);
  position: relative;
  overflow: hidden;
}

/* Added glow effect to button on hover */
.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 {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4), 0 0 30px rgba(220, 38, 38, 0.3), 0 0 40px rgba(6, 182, 212, 0.15);
}

.login-btn:active {
  transform: translateY(0);
}

/* Enhanced form options with smooth transitions */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.3s both;
  transition: all 0.3s ease;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #4b5563;
  transition: all 0.3s ease;
}

.checkbox-label:hover {
  color: #dc2626;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  margin-right: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

input[type="checkbox"]:checked ~ .checkmark {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  border-color: #dc2626;
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.4), inset 0 0 5px rgba(220, 38, 38, 0.2);
}

/* Enhanced forgot password link with glow */
.forgot-password {
  color: #dc2626;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
}

.forgot-password::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #06b6d4);
  transition: width 0.3s ease;
}

.forgot-password:hover {
  text-decoration: none;
  opacity: 1;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.forgot-password:hover::after {
  width: 100%;
}

/* Enhanced register link with glow effect */
.register-link {
  color: #dc2626;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
}

.register-link::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #dc2626, #10b981);
  transition: width 0.3s ease;
}

.register-link:hover {
  text-decoration: none;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.5);
}

.register-link:hover::before {
  width: 100%;
}

/* Enhanced quick access section with transitions */
.quick-access {
  text-align: center;
  margin-top: 20px;
  animation: fadeInUp 0.6s ease-out 0.4s both;
  color: #6b7280;
  transition: all 0.3s ease;
}

/* Added smooth display transitions for all elements */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.3), 0 0 40px rgba(6, 182, 212, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.5), 0 0 60px rgba(6, 182, 212, 0.2), 0 0 80px rgba(16, 185, 129, 0.1);
  }
}

/* Index Page Specific Styles */
.index-container {
  max-width: 1200px;
  width: 95%;
  padding: 0;
  text-align: left;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border-red);
  margin-bottom: 3rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px var(--primary-red));
}

.logo h1 {
  color: var(--primary-red);
  font-size: 1.8rem;
  font-weight: 700;
  text-shadow: 0 0 15px var(--primary-red);
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-red);
  background: rgba(220, 38, 38, 0.1);
  box-shadow: 0 0 15px var(--shadow-red);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary-red);
  border-radius: 1px;
}

.main {
  margin-bottom: 3rem;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 3rem 0;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.hero-highlight {
  color: var(--primary-red);
  text-shadow: 0 0 20px var(--primary-red);
  position: relative;
}

.hero-highlight::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-red), var(--light-red));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-red);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary {
  background: var(--primary-red);
  color: var(--text-light);
  box-shadow: 0 4px 15px var(--shadow-red);
}

.btn-primary:hover {
  background: var(--dark-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-red);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.btn-secondary:hover {
  background: var(--primary-red);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--shadow-red);
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.hero-shape {
  position: relative;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  border-radius: 50% 50% 50% 0;
  transform: rotate(45deg);
  box-shadow: 0 0 50px var(--shadow-red);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: rotate(45deg) translateY(0px);
  }
  50% {
    transform: rotate(45deg) translateY(-20px);
  }
}

.features {
  margin-bottom: 4rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-red);
  margin-bottom: 3rem;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 2rem;
  border-radius: 1rem;
  border: 2px solid var(--border-red);
  box-shadow: 0 4px 20px var(--shadow-red);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-red);
  box-shadow: 0 8px 30px var(--shadow-red);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.5rem;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-red);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-red);
  transform: scale(1.1);
  box-shadow: 0 0 20px var(--shadow-red);
}

.feature-card h3 {
  color: var(--primary-red);
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 1rem;
}

.stats-section {
  margin-bottom: 4rem;
}

.stats-container {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-red);
  text-shadow: 0 0 20px var(--primary-red);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer {
  animation: fadeInUp 0.8s ease-out 0.6s both;
  border-top: 2px solid rgba(220, 38, 38, 0.3);
  background: #2a1515;
  padding: 40px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 20px;
  align-items: center;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-logo h3 {
  color: #dc2626;
  font-size: 1.3rem;
  margin-bottom: 8px;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.footer-logo p {
  color: #9ca3af;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: #9ca3af;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #dc2626;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(220, 38, 38, 0.2);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.footer-bottom p {
  color: #6b7280;
  font-size: 0.85rem;
}

/* Headings */
.container h1 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary-red);
  text-shadow: 0 0 15px var(--primary-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Custom Icons */
.custom-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.icon-user {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><circle cx="12" cy="8" r="4" fill="%23dc2626"/><path d="M4 20c0-4 3.5-7 8-7s8 3 8 7" stroke="%23dc2626" stroke-width="2" stroke-linecap="round"/><circle cx="12" cy="8" r="4" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

.icon-lock {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><rect x="5" y="11" width="14" height="10" rx="2" fill="%23dc2626"/><path d="M8 11V7a4 4 0 0 1 8 0v4" stroke="%23dc2626" stroke-width="2.5" stroke-linecap="round"/><circle cx="12" cy="16" r="1.5" fill="%23ffffff"/><rect x="11.5" y="16" width="1" height="2" fill="%23ffffff"/><rect x="5" y="11" width="14" height="10" rx="2" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

.icon-chat {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" fill="%23dc2626"/><circle cx="8" cy="11" r="1" fill="%23ffffff"/><circle cx="12" cy="11" r="1" fill="%23ffffff"/><circle cx="16" cy="11" r="1" fill="%23ffffff"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" stroke="%23dc2626" stroke-width="2.5" stroke-linecap="round"/><circle cx="8" cy="11" r="1" fill="%23ffffff"/><circle cx="12" cy="11" r="1" fill="%23ffffff"/><circle cx="16" cy="11" r="1" fill="%23ffffff"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

.icon-dashboard {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><rect x="3" y="3" width="8" height="8" rx="1" fill="%23dc2626"/><rect x="13" y="3" width="8" height="8" rx="1" fill="%23dc2626"/><rect x="3" y="13" width="8" height="8" rx="1" fill="%23dc2626"/><rect x="13" y="13" width="8" height="8" rx="1" fill="%23dc2626"/><rect x="3" y="3" width="8" height="8" rx="1" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/><rect x="13" y="3" width="8" height="8" rx="1" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/><rect x="3" y="13" width="8" height="8" rx="1" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/><rect x="13" y="13" width="8" height="8" rx="1" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.input-wrapper {
  margin-bottom: 1.5rem;
}

.input-wrapper:last-child {
  margin-bottom: 0;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0.3rem;
}

input,
textarea {
  padding: 0.9rem;
  padding-left: 3rem;
  border: 2px solid var(--border-red);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text-light);
  outline: none;
  width: 100%;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 80px;
  padding-top: 0.9rem;
  line-height: 1.5;
}

input:focus,
textarea:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 15px var(--shadow-red);
  background: #222;
  transform: translateY(-1px);
}

input:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: rgba(220, 38, 38, 0.5);
  background: rgba(34, 34, 34, 0.8);
}

input:hover:not(:focus) + .input-icon,
textarea:hover:not(:focus) + .input-icon {
  color: rgba(220, 38, 38, 0.5);
}

input:focus + .input-icon,
textarea:focus + .input-icon {
  color: var(--primary-red);
}

.password-toggle {
  position: absolute;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all 0.3s ease;
}

.password-toggle-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.password-toggle:hover {
  color: var(--primary-red);
  transform: scale(1.15);
}

.password-strength {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.strength-bar {
  width: 100%;
  height: 4px;
  background: var(--border-red);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 0.4rem;
}

.strength-fill {
  height: 100%;
  background: var(--primary-red);
  transition: all 0.3s ease;
  width: 0%;
}

.strength-fill.strength-very-weak {
  background: #dc2626;
  width: 20%;
}

.strength-fill.strength-weak {
  background: #ea580c;
  width: 40%;
}

.strength-fill.strength-medium {
  background: #ca8a04;
  width: 60%;
}

.strength-fill.strength-strong {
  background: #16a34a;
  width: 80%;
}

.strength-fill.strength-very-strong {
  background: #059669;
  width: 100%;
}

.strength-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  color: var(--text-light);
  font-size: 0.9rem;
  line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-red);
  border-radius: 4px;
  background: var(--bg-card);
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-red);
  border-color: var(--primary-red);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-light);
  font-size: 12px;
  font-weight: bold;
}

.checkbox-label:hover .checkmark {
  border-color: var(--primary-red);
}

.form-actions {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.btn-register {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.login-link {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-red);
}

.login-link p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.login-link a {
  color: var(--primary-red);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-link a:hover {
  color: var(--light-red);
  text-shadow: 0 0 10px var(--primary-red);
}

.error-message {
  color: var(--light-red);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  display: none;
  text-align: left;
  padding-left: 0.5rem;
  animation: slideIn 0.3s ease-out;
  background: rgba(239, 68, 68, 0.1);
  padding: 0.5rem;
  border-radius: 0.3rem;
  border-left: 3px solid var(--light-red);
}

input.error,
textarea.error {
  border-color: var(--light-red);
  background: rgba(239, 68, 68, 0.1);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
  animation: shake 0.5s ease-in-out;
}

input.success,
textarea.success {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.3);
}

.success-message {
  color: #16a34a;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  margin-bottom: 0.8rem;
  display: none;
  text-align: left;
  padding-left: 0.5rem;
  animation: slideIn 0.3s ease-out;
  background: rgba(22, 163, 74, 0.1);
  padding: 0.5rem;
  border-radius: 0.3rem;
  border-left: 3px solid #16a34a;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

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

/* Improved registration form styling for better organization */
.register-card {
  background: rgba(26, 26, 26, 0.95);
  padding: 2.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 30px var(--shadow-red);
  max-width: 550px;
  width: 90%;
  margin: 2rem auto;
  animation: fadeIn 0.6s ease-in-out;
  border: 1px solid var(--border-red);
  backdrop-filter: blur(10px);
  max-height: 90vh;
  overflow-y: auto;
}

.register-card h1 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
  color: var(--primary-red);
  text-shadow: 0 0 15px var(--primary-red);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.register-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 1rem;
}

.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-red);
}

.form-section-last {
  border-bottom: none;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.section-title {
  color: var(--primary-red);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  text-align: left;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.form-hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: -0.3rem;
  margin-bottom: 1rem;
  padding-left: 0.5rem;
  font-style: italic;
}

.input-icon {
  position: absolute;
  left: 1rem;
  width: 20px;
  height: 20px;
  fill: var(--primary-red);
  pointer-events: none;
  z-index: 5;
}

/* Dashboard-specific styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(6, 182, 212, 0.05) 100%);
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.header-content h1 {
  font-size: 2rem;
  color: #dc2626;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-content p {
  color: #9ca3af;
  font-size: 0.95rem;
}

.header-stats {
  display: flex;
  gap: 2rem;
}

.stat-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #dc2626;
}

.stat-label {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.chat-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.03) 100%);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.header-info h3 {
  margin: 0;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  text-shadow: 0 0 10px rgba(220, 38, 38, 0.3);
}

.chat-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 4px 0 0 28px;
}

.dashboard-main {
  margin-bottom: 2rem;
}

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

.dashboard-card {
  background: rgba(26, 26, 26, 0.9);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(220, 38, 38, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.2);
  border-color: rgba(220, 38, 38, 0.5);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.card-header h3 {
  color: #dc2626;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.card-badge {
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.info-label {
  color: #9ca3af;
  font-size: 0.9rem;
}

.info-value {
  color: #f5f5f5;
  font-weight: 600;
}

.status-active {
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
}

.card-action-btn {
  width: 100%;
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.2);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.4);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-action-btn:hover {
  background: rgba(220, 38, 38, 0.3);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 6px;
  border-left: 3px solid rgba(220, 38, 38, 0.3);
  transition: all 0.3s ease;
}

.activity-item:hover {
  background: rgba(220, 38, 38, 0.1);
  border-left-color: #dc2626;
}

.activity-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.activity-item span:nth-child(2) {
  flex: 1;
  color: #f5f5f5;
  font-size: 0.9rem;
}

.activity-time {
  color: #9ca3af;
  font-size: 0.8rem;
  white-space: nowrap;
}

.events-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  transition: all 0.3s ease;
}

.event-item:hover {
  background: rgba(220, 38, 38, 0.1);
  transform: translateX(4px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.event-day {
  font-size: 1.3rem;
  font-weight: 700;
  color: #dc2626;
}

.event-month {
  font-size: 0.75rem;
  color: #9ca3af;
  text-transform: uppercase;
}

.event-details {
  flex: 1;
}

.event-title {
  margin: 0;
  color: #f5f5f5;
  font-weight: 600;
  font-size: 0.95rem;
}

.event-desc {
  margin: 0.25rem 0 0 0;
  color: #9ca3af;
  font-size: 0.85rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: rgba(220, 38, 38, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #dc2626;
  margin-bottom: 0.5rem;
}

.stat-name {
  font-size: 0.85rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.quick-btn {
  padding: 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
  border: 1px solid rgba(220, 38, 38, 0.3);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
  transform: translateY(-2px);
}

.logout-section {
  text-align: center;
  margin-top: 2rem;
}

.logout-btn {
  background: var(--dark-red);
  color: var(--text-light);
}

.logout-btn:hover {
  background: #7f1d1d;
  box-shadow: 0 0 20px rgba(127, 29, 29, 0.6);
}

/* Chat Interface Styles */
.chat-interface {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  background: rgba(15, 15, 15, 0.98);
  border: 2px solid var(--primary-red);
  border-radius: 15px;
  z-index: 2000;
  display: none;
  flex-direction: column;
  box-shadow: 0 0 40px var(--shadow-red);
  backdrop-filter: blur(15px);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-red);
  background: rgba(220, 38, 38, 0.1);
  border-radius: 13px 13px 0 0;
}

.chat-header h3 {
  color: var(--primary-red);
  margin: 0;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.close-chat {
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-chat:hover {
  background: rgba(220, 38, 38, 0.2);
  color: var(--light-red);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem;
  border-radius: 12px;
  word-wrap: break-word;
}

.user-message {
  align-self: flex-end;
  background: var(--primary-red);
  color: var(--text-light);
  border-bottom-right-radius: 4px;
}

.bot-message {
  align-self: flex-start;
  background: rgba(40, 40, 40, 0.9);
  color: var(--text-light);
  border: 1px solid var(--border-red);
  border-bottom-left-radius: 4px;
}

.bot-message.error {
  border-color: var(--dark-red);
  background: rgba(60, 20, 20, 0.9);
}

.message p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border-red);
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--border-red);
  border-radius: 8px;
  background: rgba(30, 30, 30, 0.9);
  color: var(--text-light);
  outline: none;
  font-size: 1rem;
}

.chat-input input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px var(--shadow-red);
}

.chat-input button {
  padding: 0.8rem 1.2rem;
  background: var(--primary-red);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.chat-input button:hover {
  background: var(--light-red);
  transform: translateY(-1px);
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

.hamburger-icon {
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 5px;
  background: rgba(220, 38, 38, 0.1);
  border-radius: 8px;
  border: 2px solid var(--primary-red);
  transition: all 0.3s ease;
}

.hamburger-icon:hover {
  background: rgba(220, 38, 38, 0.2);
  box-shadow: 0 0 15px var(--shadow-red);
}

.hamburger-icon span {
  width: 20px;
  height: 2px;
  background: var(--primary-red);
  border-radius: 1px;
  transition: all 0.3s ease;
}

.hamburger-icon.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Chat History Sidebar Styles */
.chat-history-sidebar {
  position: fixed;
  top: 0;
  left: -350px;
  width: 350px;
  height: 100vh;
  background: rgba(15, 15, 15, 0.98);
  border-right: 2px solid var(--primary-red);
  z-index: 999;
  transition: left 0.3s ease;
  backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
}

.chat-history-sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-red);
  background: rgba(220, 38, 38, 0.1);
}

.sidebar-header h3 {
  color: var(--primary-red);
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.close-sidebar {
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-sidebar:hover {
  background: rgba(220, 38, 38, 0.2);
  color: var(--light-red);
}

.chat-history-list {
  padding: 1rem;
  flex: 1;
  overflow-y: auto;
}

.history-item {
  padding: 1rem;
  margin-bottom: 0.5rem;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.history-item:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--primary-red);
  transform: translateX(5px);
}

.history-title {
  color: var(--text-light);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

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

/* Added compact settings bar at bottom of sidebar */
.sidebar-settings-bar {
  padding: 1rem;
  border-top: 2px solid var(--border-red);
  background: rgba(220, 38, 38, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.settings-toggle-btn {
  width: 50px;
  height: 50px;
  background: rgba(220, 38, 38, 0.1);
  border: 2px solid var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.settings-toggle-btn::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, var(--primary-red) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.settings-toggle-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  border-color: var(--light-red);
  box-shadow: 0 0 25px var(--shadow-red);
  transform: scale(1.1) rotate(90deg);
}

.settings-toggle-btn:hover::before {
  opacity: 0.3;
  animation: pulse 1.5s infinite;
}

.settings-toggle-btn:active {
  transform: scale(0.95) rotate(90deg);
}

/* Added quick settings popup styles */
.quick-settings-popup {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 15, 15, 0.98);
  border: 2px solid var(--primary-red);
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  min-width: 200px;
  z-index: 1000;
}

.quick-settings-popup.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Ensure buttons are always clickable even when parent has pointer-events: none */
.quick-settings-popup button,
.quick-settings-popup select {
  pointer-events: auto;
}

.quick-setting-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.6rem;
  background: rgba(26, 26, 26, 0.8);
  border: 1px solid var(--border-red);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.quick-setting-item:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--primary-red);
  box-shadow: 0 0 15px var(--shadow-red);
  transform: translateX(5px);
}

.setting-icon {
  font-size: 1.5rem;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-setting-item select {
  flex: 1;
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border-red);
  border-radius: 8px;
  color: var(--text-light);
  padding: 0.5rem;
  cursor: pointer;
  outline: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.quick-setting-item select:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 10px var(--shadow-red);
}

.quick-reset-btn,
.quick-settings-btn,
.quick-logout-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.quick-reset-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: rotate(180deg);
}

.quick-settings-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  transform: scale(1.1);
}

.quick-logout-btn:hover {
  background: rgba(220, 38, 38, 0.3);
  transform: translateX(5px);
}

.lower-left-controls {
  position: fixed;
  bottom: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 1000;
}

.control-btn {
  display: flex;
  align-items: center;
  padding: 0.8rem 1rem;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--border-red);
  border-radius: 8px;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.control-btn:hover {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--primary-red);
  box-shadow: 0 0 15px var(--shadow-red);
  transform: translateX(5px);
}

.settings-btn:hover {
  color: var(--primary-red);
}

.exit-btn:hover {
  color: var(--light-red);
  background: rgba(220, 38, 38, 0.2);
}

/* Settings Modal Styles */
.settings-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(15, 15, 15, 0.98);
  border: 2px solid var(--primary-red);
  border-radius: 15px;
  width: 400px;
  max-width: 90%;
  backdrop-filter: blur(15px);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-red);
  background: rgba(220, 38, 38, 0.1);
  border-radius: 13px 13px 0 0;
}

.modal-header h3 {
  color: var(--primary-red);
  margin: 0;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.close-modal {
  background: none;
  border: none;
  color: var(--primary-red);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.close-modal:hover {
  background: rgba(220, 38, 38, 0.2);
  color: var(--light-red);
}

.modal-body {
  padding: 1.5rem;
}

.setting-group {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-group label {
  color: var(--text-light);
  font-weight: 600;
}

.setting-group select {
  background: rgba(26, 26, 26, 0.9);
  border: 1px solid var(--border-red);
  border-radius: 5px;
  color: var(--text-light);
  padding: 0.5rem;
}

.setting-group select:focus {
  border-color: var(--primary-red);
  outline: none;
  box-shadow: 0 0 10px var(--shadow-red);
}

/* Futuristic Checkbox Styles */
.setting-group input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 50px;
  height: 28px;
  background: rgba(26, 26, 26, 0.9);
  border: 2px solid var(--border-red);
  border-radius: 14px;
  position: relative;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.setting-group input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #666, #444);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.setting-group input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 8px;
  height: 8px;
  background: var(--primary-red);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.setting-group input[type="checkbox"]:hover {
  border-color: var(--primary-red);
  box-shadow: 0 0 15px var(--shadow-red);
  transform: scale(1.05);
}

.setting-group input[type="checkbox"]:hover::before {
  box-shadow: 0 0 10px rgba(220, 38, 38, 0.5);
}

.setting-group input[type="checkbox"]:checked {
  background: linear-gradient(135deg, var(--dark-red), var(--primary-red));
  border-color: var(--primary-red);
  box-shadow: 0 0 20px var(--shadow-red), inset 0 0 10px rgba(220, 38, 38, 0.3);
}

.setting-group input[type="checkbox"]:checked::before {
  left: 24px;
  background: linear-gradient(135deg, var(--primary-red), var(--light-red));
  box-shadow: 0 0 15px var(--primary-red), 0 0 25px rgba(220, 38, 38, 0.5);
  animation: hexagonPulse 2s infinite;
}

.setting-group input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  animation: ripple 0.6s ease-out;
}

.setting-group input[type="checkbox"]:active {
  transform: scale(0.95);
}

/* Hexagon Pulse Animation */
@keyframes hexagonPulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.3);
  }
}

/* Ripple Effect Animation */
@keyframes ripple {
  0% {
    width: 8px;
    height: 8px;
    opacity: 1;
  }
  100% {
    width: 40px;
    height: 40px;
    opacity: 0;
  }
}

/* Glow Trail Effect */
.setting-group input[type="checkbox"]:checked {
  animation: glowTrail 3s infinite;
}

@keyframes glowTrail {
  0%,
  100% {
    box-shadow: 0 0 20px var(--shadow-red), inset 0 0 10px rgba(220, 38, 38, 0.3);
  }
  50% {
    box-shadow: 0 0 30px var(--primary-red), inset 0 0 15px rgba(220, 38, 38, 0.5);
  }
}

/* Main Chat Interface Styles */
.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.main-chat-container {
  margin-bottom: 2rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.chat-interface-main {
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(30, 15, 15, 0.95) 100%);
  border: 2px solid var(--primary-red);
  border-radius: 20px;
  height: 650px;
  min-height: 650px;
  max-height: 650px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 50px rgba(220, 38, 38, 0.3), 0 0 100px rgba(220, 38, 38, 0.1);
  backdrop-filter: blur(20px);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.chat-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 2px solid rgba(220, 38, 38, 0.3);
  background: linear-gradient(90deg, rgba(220, 38, 38, 0.08) 0%, rgba(220, 38, 38, 0.03) 100%);
  flex-shrink: 0;
  backdrop-filter: blur(10px);
}

.header-info h3 {
  margin: 0;
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
}

.chat-subtitle {
  font-size: 0.8rem;
  color: #9ca3af;
  margin: 4px 0 0 28px;
}

.chat-messages-main {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-red) rgba(40, 40, 40, 0.5);
  contain: layout style paint;
}

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

.chat-messages-main::-webkit-scrollbar-track {
  background: rgba(40, 40, 40, 0.3);
  border-radius: 10px;
}

.chat-messages-main::-webkit-scrollbar-thumb {
  background: var(--primary-red);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.chat-messages-main::-webkit-scrollbar-thumb:hover {
  background: var(--light-red);
}

.welcome-message {
  border: 2px solid var(--primary-red);
  background: rgba(220, 38, 38, 0.05);
}

.welcome-message ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.welcome-message li {
  margin-bottom: 0.3rem;
}

.bot-avatar {
  width: 40px;
  height: 40px;
  background: var(--primary-red);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
}

.message {
  display: flex;
  align-items: flex-start;
  max-width: 85%;
  width: fit-content;
  min-width: 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  animation: messageSlide 0.3s ease-out;
  box-sizing: border-box;
}

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

.message-content {
  flex: 1;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
  box-sizing: border-box;
  overflow: hidden;
}

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

.user-message .message-content {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: var(--text-light);
  padding: 1rem 1.5rem;
  border-radius: 20px 20px 5px 20px;
  margin-right: 1rem;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
  max-width: 600px;
  min-width: 0;
  width: auto;
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

.bot-message .message-content {
  background: linear-gradient(135deg, rgba(40, 40, 40, 0.95) 0%, rgba(50, 30, 30, 0.9) 100%);
  color: var(--text-light);
  padding: 1.5rem 2rem;
  border-radius: 20px 20px 20px 5px;
  border: 2px solid rgba(220, 38, 38, 0.3);
  text-align: left;
  line-height: 1.8;
  max-width: 700px;
  min-width: 0;
  width: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  overflow-wrap: break-word;
  word-wrap: break-word;
  white-space: normal;
}

.bot-message .message-content p {
  margin: 0 0 1rem 0;
  text-align: left;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.8;
  max-width: 100%;
}

.bot-message .message-content p:last-child {
  margin-bottom: 0;
}

/* List formatting for better readability */
.bot-message .message-content br + br {
  display: block;
  content: "";
  margin-top: 0.5rem;
}

.chat-input-main {
  padding: 1.5rem 2rem;
  border-top: 2px solid rgba(220, 38, 38, 0.3);
  flex-shrink: 0;
  min-height: fit-content;
  background: linear-gradient(180deg, rgba(220, 38, 38, 0.03) 0%, rgba(15, 15, 15, 0.95) 100%);
  backdrop-filter: blur(10px);
  width: 100%;
  box-sizing: border-box;
}

.input-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-container input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid rgba(220, 38, 38, 0.4);
  border-radius: 30px;
  background: rgba(26, 26, 26, 0.95);
  color: var(--text-light);
  outline: none;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.input-container input:focus {
  border-color: var(--primary-red);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.4), inset 0 2px 10px rgba(0, 0, 0, 0.3);
  background: rgba(30, 30, 30, 0.95);
}

.send-btn {
  width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  border: none;
  border-radius: 50%;
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
  flex-shrink: 0;
}

.send-btn:hover {
  background: linear-gradient(135deg, var(--light-red) 0%, var(--primary-red) 100%);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 25px rgba(220, 38, 38, 0.6);
}

.send-btn:active {
  transform: scale(0.95);
}

.quick-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.quick-btn {
  padding: 0.5rem 1rem;
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--primary-red);
  border-radius: 20px;
  color: var(--primary-red);
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.quick-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  color: var(--text-light);
  transform: translateY(-2px);
}

.secondary-features {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.secondary-features .dashboard-card {
  padding: 1rem;
}

.profile-info p {
  margin: 0.5rem 0;
  color: var(--text-muted);
}

.profile-info strong {
  color: var(--text-light);
}

/* Custom Icons */
.icon-settings {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M12 15a3 3 0 1 0 0-6 3 3 0 0 0 0 6z" fill="%23dc2626"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1 0 2.83 2 2 0 0 1-2.83 0l-.06-.06a1.65 1.65 0 0 0-1.82-.33H9a1.65 1.65 0 0 0-1.51 1V3a2 2 0 0 1 2-2 2 2 0 0 1 2 2v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 0 2 2 0 0 1 0 2.83l-.06.06a1.65 1.65 0 0 0-.33 1.82V9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 2 2 2 2 0 0 1-2 2h-.09a1.65 1.65 0 0 0-1.51 1z" stroke="%23dc2626" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    no-repeat center;
  background-size: contain;
}

.icon-exit {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" fill="%23dc2626"/><circle cx="8" cy="11" r="1" fill="%23ffffff"/><circle cx="12" cy="11" r="1" fill="%23ffffff"/><circle cx="16" cy="11" r="1" fill="%23ffffff"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" stroke="%23dc2626" stroke-width="2" stroke-linecap="round"/><circle cx="8" cy="11" r="1" fill="%23ffffff"/><circle cx="12" cy="11" r="1" fill="%23ffffff"/><circle cx="16" cy="11" r="1" fill="%23ffffff"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

.icon-send {
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"><path d="M22 2L11 13" stroke="%23ffffff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M22 2L15 22l-4-9-9-4 20-7z" fill="%23ffffff"/><path d="M22 2L15 22l-4-9-9-4 20-7z" stroke="%23dc2626" stroke-width="2.5" stroke-linecap="round"/><circle cx="8" cy="11" r="1" fill="%23ffffff"/><circle cx="12" cy="11" r="1" fill="%23ffffff"/><circle cx="16" cy="11" r="1" fill="%23ffffff"/><path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2z" stroke="%23ef4444" stroke-width="0.5" opacity="0.5"/></svg>')
    no-repeat center;
  background-size: contain;
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

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

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Added custom SVG icon styles for futuristic look */
.custom-svg-icon {
  width: 24px;
  height: 24px;
  color: var(--primary-red);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.3));
}

.custom-svg-icon:hover {
  color: var(--light-red);
  filter: drop-shadow(0 0 15px var(--primary-red));
  transform: scale(1.1);
  animation: iconGlow 1.5s infinite;
}

/* Icon Glow Animation */
@keyframes iconGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 20px var(--primary-red));
  }
}

/* Enhanced quick setting item hover with icon animation */
.quick-setting-item:hover .custom-svg-icon {
  transform: scale(1.15) rotate(5deg);
  color: var(--light-red);
}

/* Specific icon animations */
.quick-reset-btn:hover .custom-svg-icon {
  animation: rotateIcon 0.6s ease-in-out;
}

@keyframes rotateIcon {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.quick-settings-btn:hover .custom-svg-icon {
  animation: spinGear 2s linear infinite;
}

@keyframes spinGear {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.quick-logout-btn:hover .custom-svg-icon {
  animation: slideOut 0.5s ease-in-out;
}

@keyframes slideOut {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

/* Enhanced setting icon in quick settings popup */
.quick-setting-item .custom-svg-icon {
  flex-shrink: 0;
}

/* Notification Toast Styles */
.notification-toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 300px;
  max-width: 500px;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transform: translateX(400px);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.notification-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.notification-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notification-svg-icon {
  width: 20px;
  height: 20px;
}

.notification-message {
  flex: 1;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #ffffff;
}

.notification-success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.95), rgba(21, 128, 61, 0.95));
  border-left: 4px solid #16a34a;
}

.notification-error {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  border-left: 4px solid #dc2626;
}

.notification-warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95));
  border-left: 4px solid #f59e0b;
}

.notification-info {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(37, 99, 235, 0.95));
  border-left: 4px solid #3b82f6;
}

@media (max-width: 768px) {
  .dashboard-container {
    padding: 1rem;
  }

  .chat-interface-main {
    height: 500px;
  }

  .chat-history-sidebar {
    width: 300px;
    left: -300px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-btn {
    text-align: center;
  }

  .notification-toast {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .chat-interface-main {
    height: 400px;
  }

  .chat-history-sidebar {
    width: 280px;
    left: -280px;
  }

  .hamburger-menu {
    top: 15px;
    left: 15px;
  }

  .lower-left-controls {
    bottom: 15px;
    left: 15px;
  }
}

/* Add missing quick-user-btn styles for clickability */
.quick-user-btn {
  background: rgba(220, 38, 38, 0.1);
  border: 1px solid var(--primary-red);
  border-radius: 8px;
  color: var(--primary-red);
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  font-size: 0;
  /* Ensure button is always clickable */
  pointer-events: auto !important;
}

.quick-user-btn:hover {
  background: rgba(220, 38, 38, 0.2);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.2);
  transform: scale(1.05);
}

.quick-user-btn:active {
  transform: scale(0.95);
}

/* Add visible state for profile modal */
.settings-modal.visible {
  display: flex;
}

/* Add loading animation for chat history */
.history-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.loading-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(220, 38, 38, 0.3);
  border-top: 2px solid var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 0.5rem;
}

/* New floating action button positioned outside sidebar */
.new-conversation-floating-btn {
  position: fixed;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-red), var(--dark-red));
  color: var(--text-light);
  border: 2px solid var(--primary-red);
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  box-shadow: 0 8px 25px var(--shadow-red);
  backdrop-filter: blur(10px);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.new-conversation-floating-btn:hover {
  background: linear-gradient(135deg, var(--light-red), var(--primary-red));
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 40px var(--shadow-red);
  border-color: var(--light-red);
}

.new-conversation-floating-btn:active {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 20px var(--shadow-red);
}

.new-conversation-floating-btn .btn-icon {
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.new-conversation-floating-btn .btn-label {
  display: inline;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .new-conversation-floating-btn {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
    top: 15px;
    left: 15px;
  }

  .new-conversation-floating-btn .btn-label {
    display: none;
  }

  .new-conversation-floating-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    padding: 0;
    justify-content: center;
  }
}

.sidebar-footer {
  padding: 0;
  height: 0;
  overflow: hidden;
}
