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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
}

/* Header & Navigation */
header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 2px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 1000;
  animation: headerGlow 3s ease-in-out infinite alternate;
}

@keyframes headerGlow {
  from {
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4), 0 2px 10px rgba(0,0,0,0.1);
  }
  to {
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.6), 0 4px 15px rgba(240, 147, 251, 0.3);
  }
}

/* Add a subtle welcome animation when page loads */
header {
  animation: headerGlow 3s ease-in-out infinite alternate, welcomePulse 0.8s ease-out;
}

@keyframes welcomePulse {
  0% {
    transform: scale(0.98);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.navbar {
  padding: 1rem 0;
}

.navbar-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
  transition: all 0.4s ease;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.logo-image {
  height: 40px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  transition: all 0.4s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.logo-text {
  display: inline;
  transition: all 0.4s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.logo:hover .logo-image {
  transform: scale(1.1) rotate(2deg);
  filter: drop-shadow(0 4px 8px rgba(255, 215, 0, 0.4)) drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
}

.logo:hover .logo-text {
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.8), 0 0 20px rgba(255, 215, 0, 0.6);
  transform: scale(1.1) rotate(2deg);
}

/* Navbar Left Section */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Navbar Right Section */
.navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Login Button */
.login-btn {
  padding: 0.5rem 1.25rem;
  background: linear-gradient(45deg, #ff6b6b, #ffa500, #ff6b6b);
  background-size: 200% 200%;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.login-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
  animation-duration: 0.5s;
}

/* Chat menu */
.chat-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  margin-right: 0.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.chat-icon-btn svg {
  width: 24px;
  height: 24px;
  stroke: white;
  transition: all 0.3s ease;
}

.chat-icon-btn:hover {
  transform: translateY(-3px) scale(1.1);
  background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
  animation: iconBounce 0.6s ease;
}

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

.chat-icon-btn:hover svg {
  stroke: white;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger:hover .hamburger-line {
  background: white;
  opacity: 0.8;
}

/* Side Drawer */
.side-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  pointer-events: none;
}

.side-drawer.active {
  pointer-events: auto;
}

.side-drawer-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  transition: background-color 0.3s ease;
}

.side-drawer.active .side-drawer-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}

.side-drawer-content {
  position: absolute;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  box-shadow: -5px 0 25px rgba(102, 126, 234, 0.4), -2px 0 15px rgba(0, 0, 0, 0.3);
  transition: right 0.3s ease;
  overflow: hidden;
  border-left: 3px solid rgba(255, 255, 255, 0.3);
}

.side-drawer.active .side-drawer-content {
  right: 0;
}

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

.side-drawer-header h3 {
  color: white;
  margin: 0;
  font-size: 1.2rem;
}

.close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.close-btn:hover {
  color: white;
  background: linear-gradient(45deg, #ff6b6b, #e74c3c);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.nav-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 100px);
  overflow: hidden;
}

.nav-menu li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-menu .nav-divider {
  flex: 1;
  height: auto;
  background-color: transparent;
  margin: 0;
  border: none;
}

.nav-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  text-decoration: none;
  padding: 1rem 1.5rem;
  transition: all 0.4s ease;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  left: -100%;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
  transition: left 0.4s ease;
}

.nav-menu .nav-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.nav-menu a:hover {
  padding-left: 2rem;
  transform: translateX(10px);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-menu a:hover::before {
  left: 0;
}

.nav-menu a:hover .nav-icon {
  transform: scale(1.2) rotate(5deg);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

.nav-menu .privacy-section {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 0.5rem;
}

/* Main Content */
main {
  min-height: calc(100vh - 200px - 3rem);
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(118, 75, 162, 0.12) 30%, rgba(240, 147, 251, 0.08) 60%, rgba(78, 205, 196, 0.10) 100%);
  margin-top: -1.5rem;
  margin-bottom: 3rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-bottom: 1px solid rgba(102, 126, 234, 0.3);
  position: relative;
  overflow: hidden;
}

/* Neural Network Background */
.hero .neural-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero .neural-network::before,
.hero .neural-network::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: 
    /* Connection Lines */
    linear-gradient(25deg, transparent 49.7%, rgba(102, 126, 234, 0.3) 49.8%, rgba(102, 126, 234, 0.3) 50.2%, transparent 50.3%),
    linear-gradient(-25deg, transparent 49.7%, rgba(118, 75, 162, 0.25) 49.8%, rgba(118, 75, 162, 0.25) 50.2%, transparent 50.3%),
    linear-gradient(65deg, transparent 49.7%, rgba(240, 147, 251, 0.2) 49.8%, rgba(240, 147, 251, 0.2) 50.2%, transparent 50.3%),
    linear-gradient(-65deg, transparent 49.7%, rgba(78, 205, 196, 0.25) 49.8%, rgba(78, 205, 196, 0.25) 50.2%, transparent 50.3%),
    /* Node Dots */
    radial-gradient(circle at 15% 25%, rgba(102, 126, 234, 0.8) 1px, transparent 2px),
    radial-gradient(circle at 85% 15%, rgba(118, 75, 162, 0.7) 1px, transparent 2px),
    radial-gradient(circle at 25% 75%, rgba(240, 147, 251, 0.6) 1px, transparent 2px),
    radial-gradient(circle at 75% 85%, rgba(78, 205, 196, 0.8) 1px, transparent 2px),
    radial-gradient(circle at 60% 40%, rgba(102, 126, 234, 0.5) 1px, transparent 2px),
    radial-gradient(circle at 40% 60%, rgba(118, 75, 162, 0.6) 1px, transparent 2px);
  background-size: 200px 200px, 180px 180px, 220px 220px, 160px 160px, 100px 100px, 120px 120px, 140px 140px, 110px 110px, 80px 80px, 90px 90px;
  animation: neuralPulse 12s ease-in-out infinite;
}

.hero .neural-network::after {
  background-image: 
    /* Additional Connection Lines */
    linear-gradient(45deg, transparent 49.7%, rgba(102, 126, 234, 0.2) 49.8%, rgba(102, 126, 234, 0.2) 50.2%, transparent 50.3%),
    linear-gradient(-45deg, transparent 49.7%, rgba(240, 147, 251, 0.15) 49.8%, rgba(240, 147, 251, 0.15) 50.2%, transparent 50.3%),
    /* Additional Node Dots */
    radial-gradient(circle at 30% 30%, rgba(78, 205, 196, 0.6) 1px, transparent 2px),
    radial-gradient(circle at 70% 70%, rgba(102, 126, 234, 0.7) 1px, transparent 2px),
    radial-gradient(circle at 50% 20%, rgba(118, 75, 162, 0.5) 1px, transparent 2px),
    radial-gradient(circle at 20% 50%, rgba(240, 147, 251, 0.6) 1px, transparent 2px);
  background-size: 150px 150px, 170px 170px, 60px 60px, 70px 70px, 50px 50px, 65px 65px;
  animation: neuralPulse 10s ease-in-out infinite reverse;
  opacity: 0.7;
}

@keyframes neuralPulse {
  0%, 100% { 
    opacity: 0.6; 
    transform: scale(1) rotate(0deg);
  }
  50% { 
    opacity: 0.9; 
    transform: scale(1.02) rotate(1deg);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0%, transparent 30%),
    radial-gradient(circle at 70% 80%, rgba(102, 126, 234, 0.08) 0%, transparent 40%),
    linear-gradient(45deg, transparent 40%, rgba(240, 147, 251, 0.06) 50%, transparent 60%);
  animation: heroSparkle 8s linear infinite;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      90deg,
      transparent 0px,
      rgba(255, 255, 255, 0.03) 1px,
      rgba(255, 255, 255, 0.03) 2px,
      transparent 3px,
      transparent 40px
    );
  pointer-events: none;
  animation: futuristicScan 6s linear infinite;
}

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



@keyframes heroSparkle {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

.hero-title {
  font-size: clamp(2.3rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, #4c51bf 0%, #667eea 30%, #5a67d8 60%, #2b6cb0 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  animation: titleFloat 3s ease-in-out infinite alternate;
  width: 100%;
  filter: drop-shadow(0 0 15px rgba(76, 81, 191, 0.3));
}

@keyframes titleFloat {
  from { transform: translateY(0px); }
  to { transform: translateY(-3px); }
}

.hero-subtitle {
  font-size: 1.4rem;
  color: #4d4d4d;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin-bottom: 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 2.5rem 1.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2.0rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.feature-card:hover {
  transform: translateY(-5px);
}

.feature-card h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
  color: #2c3e50;
}

/* Page Section */
.page-section {
  margin: 0 auto 2rem;
  max-width: 800px;
}

.page-title {
  display:flex;
  width: 100%;
}

.page-title h2{
  display: flex;              /* ← THIS is the key */
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  color: #2c3e50;
  font-size: 1.7rem;
  margin-bottom: 1.5rem;
  white-space: nowrap;
}

.page-title h2::after {
  content: "";
  flex: 1;                    /* ← remaining width */
  height: 0.3rem;
  background: linear-gradient(
    to right,
    rgba(102, 126, 234, 0.6) 0%,
    rgba(102, 126, 234, 0.3) 50%,
    transparent 100%
  );
  border-radius: 999px;
}

/* Avatar Filters */
.avatar-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.5rem;
  background: white;
  color: #2c3e50;
  text-decoration: none;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: #3498db;
  background: #f8f9fa;
  transform: translateY(-2px);
}

.filter-btn.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
}

/* Characters Grid */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.character-card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  overflow: hidden;
  display: flex;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.character-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.character-image {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: visible;
  background: #ecf0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.character-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.character-name {
  font-size: 1.2rem;
  color: #2c3e50;
  margin: 0;
  font-weight: 600;
}

.character-lifespan {
  font-size: 0.9rem;
  color: #7f8c8d;
  margin: 0;
}

.character-category {
  font-size: 0.85rem;
  color: #95a5a6;
  margin: 0;
}

.no-characters {
  text-align: center;
  color: #7f8c8d;
  padding: 3rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Content */
.content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content h2 {
  color: #2c3e50;
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3498db;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
  font-size: 1rem;
}

.btn:hover {
  background-color: #2980b9;
}

.btn-secondary {
  background-color: #95a5a6;
}

.btn-secondary:hover {
  background-color: #7f8c8d;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Tables */
.table {
  width: 100%;
  background: white;
  border-collapse: collapse;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  overflow: hidden;
}

.table thead {
  background-color: #2c3e50;
  color: white;
}

.table th,
.table td {
  padding: 1rem;
  text-align: left;
}

.table tbody tr {
  border-bottom: 1px solid #ecf0f1;
}

.table tbody tr:hover {
  background-color: #f8f9fa;
}

.users-list {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Forms */
.form-container {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 600px;
}

.user-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-top: 1.5rem;
}
.form-group:first-of-type {
  margin-top: 0;
}

.form-group label {
  margin-bottom: 0.5rem;
  color: #2c3e50;
  font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  background-color: white;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #3498db;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Expandable Text */
.collapsed {
  display: -webkit-box;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.expanded {
line-clamp: unset;
  -webkit-line-clamp: unset;
  display: block;
}

.expand-btn {
  background: transparent;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  display: inline-block;
  transition: color 0.2s;
}

/* Error Pages */
.error-page {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-page h1 {
  font-size: 6rem;
  color: #e74c3c;
  margin-bottom: 1rem;
}

.error-page h2 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.3);
  animation: footerFloat 4s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: footerSparkle 6s linear infinite;
}

@keyframes footerFloat {
  from {
    transform: translateY(0px);
    box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.3);
  }
  to {
    transform: translateY(-2px);
    box-shadow: 0 -6px 25px rgba(240, 147, 251, 0.4);
  }
}

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

footer p {
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

footer:hover p {
  transform: scale(1.05);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

/* Authentication Styles */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: 0;
}

.auth-card {
  background: white;
  padding: 30px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 450px;
}

.auth-card h1,
.auth-card h2 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.auth-form small {
  color: #7f8c8d;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.btn-block {
  width: 100%;
  margin-top: 0.5rem;
}

.btn-primary {
  background-color: #3498db;
}

.btn-primary:hover {
  background-color: #2980b9;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #ecf0f1;
}

.auth-footer a {
  color: #3498db;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.alert {
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.alert-error {
  background-color: #fee;
  color: #c33;
  border: 1px solid #fcc;
}

.alert ul {
  margin: 0;
  padding-left: 1.5rem;
}

.alert li {
  margin: 0.25rem 0;
}

/* Auth process status Styles */
.status-icon {
  text-align: center;
  margin-bottom: 2rem;
}

.status-icon.error svg {
  stroke: #f44336;
}

.status-message {
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.status-tips {
  background-color: #f9f9f9;
  border-left: 4px solid #3498db;
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.status-tips h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.status-tips ul {
  list-style-position: inside;
  margin-left: 1rem;
}

.status-tips li {
  margin-bottom: 0.5rem;
  color: #555;
}

.status-options {
  margin: 2rem 0;
  padding: 2rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.status-options h3 {
  color: #2c3e50;
  margin-bottom: 1.5rem;
  text-align: center;
}

.resend-form {
  text-align: center;
  margin-top: 2rem;
}

.resend-form .btn {
  margin-top: 1rem;
}

.resend-link {
  text-align: center;
  margin-top: 2rem;
}

.resend-link p {
  margin-bottom: 0.5rem;
  color: #7f8c8d;
}

.resend-link a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
}

.resend-link a:hover {
  text-decoration: underline;
  color: #2980b9;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 5px;
  margin-bottom: 1rem;
}

.auth-links .separator {
  margin: 0 0.5rem;
  color: #95a5a6;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 3rem;
  box-shadow: 0 -4px 20px rgba(102, 126, 234, 0.3);
  animation: footerFloat 4s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

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

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

  .table {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.5rem;
  }
}

/* Global Alert Popup */
.alert-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.alert-overlay.active {
  display: flex;
}

.alert-popup {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
  text-align: center;
}

.alert-icon {
  margin: 0 auto 1.5rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.alert-icon svg {
  stroke: white;
}

.alert-title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1rem;
  font-weight: bold;
}

.alert-message {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.alert-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.alert-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 0.75rem 2.5rem;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.alert-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.alert-btn-cancel {
  background: #95a5a6;
  box-shadow: 0 4px 15px rgba(149, 165, 166, 0.4);
}

.alert-btn-cancel:hover {
  background: #7f8c8d;
  box-shadow: 0 6px 20px rgba(149, 165, 166, 0.6);
}

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

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

/* Modal Styles - Common across all pages */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: white;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.0rem;
  border-bottom: 1px solid #ecf0f1;
  flex-shrink: 0;
  background-color: white;
  border-radius: 12px 12px 0 0;
}

.modal-header h2 {
  margin: 0;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #95a5a6;
  cursor: pointer;
  line-height: 1;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #2c3e50;
}

.modal-body {
  padding: 1.0rem;
  overflow-y: auto;
  flex: 1;
}

/* Tab Navigation - Common across all pages */
.tab-navigation {
  display: flex;
  gap: 0.5rem;
  margin: 0rem auto 2rem;
  width: 100%;
  border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #7f8c8d;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: -2px;
}

.tab-btn:hover {
  color: #2c3e50;
  background-color: #f8f9fa;
}

.tab-btn.active {
  color: #3498db;
  border-bottom-color: #3498db;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}


