/* Premium Raffle Draw - Modern CSS */
:root {
  /* Color Palette */
  --primary: #6d28d9;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --secondary: #10b981;
  --secondary-dark: #059669;
  --accent: #f59e0b;
  --danger: #ef4444;
  --danger-dark: #dc2626;
  --success: #22c55e;
  --dark: #171717;
  --gray-900: #1f2937;
  --gray-800: #374151;
  --gray-700: #4b5563;
  --gray-600: #6b7280;
  --gray-500: #9ca3af;
  --gray-400: #d1d5db;
  --gray-300: #e5e7eb;
  --gray-200: #f3f4f6;
  --gray-100: #f9fafb;
  --white: #ffffff;
  
  /* Fonts */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Poppins', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  /* Z-index */
  --z-negative: -1;
  --z-elevate: 1;
  --z-sticky: 100;
  --z-drawer: 200;
  --z-dropdown: 300;
  --z-modal: 400;
  --z-popover: 500;
  --z-maximum: 9999;
  
  /* Dimensions */
  --header-height: 3.5rem;
  --footer-height: 2.5rem;
  --sidebar-width: 320px;
  --max-width: 1200px;
  --card-height: 350px;
}

/* Dark Theme Variables */
.dark-theme {
  --primary: #8b5cf6;
  --primary-dark: #7c3aed;
  --primary-light: #c4b5fd;
  --secondary: #0ea5e9;
  --secondary-dark: #0284c7;
  --accent: #f97316;
  --dark: #f9fafb;
  --gray-900: #f3f4f6;
  --gray-800: #e5e7eb;
  --gray-700: #d1d5db;
  --gray-600: #9ca3af;
  --gray-500: #6b7280;
  --gray-400: #4b5563;
  --gray-300: #374151;
  --gray-200: #1f2937;
  --gray-100: #111827;
  --white: #030712;
  --shadow-sm: 0 1px 2px 0 rgba(255, 255, 255, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(255, 255, 255, 0.07), 0 2px 4px -1px rgba(255, 255, 255, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(255, 255, 255, 0.07), 0 4px 6px -2px rgba(255, 255, 255, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(255, 255, 255, 0.07), 0 10px 10px -5px rgba(255, 255, 255, 0.02);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background-color: var(--gray-100);
    line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Dark theme body styles */
body.dark-theme {
  background-color: var(--gray-900);
  color: var(--gray-100);
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
  width: 100%;
    height: 100%;
  pointer-events: none;
  z-index: var(--z-negative);
  overflow: hidden;
}

.bg-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  filter: blur(40px);
}

.circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
  animation: float 20s infinite alternate ease-in-out;
}

.circle-2 {
  width: 400px;
  height: 400px;
  bottom: -150px;
  left: -150px;
  animation: float 25s infinite alternate-reverse ease-in-out;
}

.circle-3 {
  width: 200px;
  height: 200px;
  top: 40%;
  right: 25%;
  animation: float 15s infinite alternate ease-in-out;
}

.dot-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--gray-300) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

@keyframes float {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(20px, 20px);
  }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--gray-900);
}

body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
  color: var(--gray-100);
}

p {
  margin-bottom: var(--space-md);
}

/* Links */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* Focus States */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.5);
}

/* App Container */
.app-container {
  width: 100%;
  max-width: var(--max-width);
    margin: 0 auto;
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* App Header */
.app-header {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
  margin-bottom: var(--space-lg);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.app-title {
  font-size: 1.5rem;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
    text-align: center;
    position: relative;
  margin-bottom: 0;
}

.app-title::after {
    content: '';
    position: absolute;
  bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  border-radius: var(--radius-full);
}

/* Theme Selector */
.theme-selector {
    display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.settings-button {
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.settings-button:hover,
.theme-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
  color: var(--primary);
}

.settings-button:active,
.theme-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.settings-button {
  position: relative;
    overflow: hidden;
}

.settings-button::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.settings-button:hover::after {
  opacity: 1;
}

body.dark-theme .theme-button,
body.dark-theme .settings-button {
  background: rgba(31, 41, 55, 0.8);
  color: var(--gray-300);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* App Footer */
.app-footer {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to right, var(--gray-100), var(--gray-200), var(--gray-100));
  border-top: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.875rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}

.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--accent), var(--primary-light));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-xl);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-logo .tagline {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--gray-200);
  border-radius: 50%;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-links-group {
  min-width: 160px;
}

.footer-links-group h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--gray-800);
  font-weight: 600;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links-group h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-group ul li {
  margin-bottom: var(--space-sm);
}

.footer-links-group ul li a {
  color: var(--gray-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.footer-links-group ul li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-links-group ul li a i {
  font-size: 0.75rem;
  margin-right: var(--space-xs);
  opacity: 0.7;
}

.footer-bottom {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
}

.copyright {
  font-weight: 500;
}

.disclaimer, .ad-disclosure {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ad-disclosure a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Dark theme footer styles */
body.dark-theme .app-footer {
  background: linear-gradient(to right, var(--gray-900), var(--gray-800), var(--gray-900));
  border-top-color: var(--gray-700);
  color: var(--gray-300);
}

body.dark-theme .app-footer::before {
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
}

body.dark-theme .footer-logo h3 {
  color: var(--primary-light);
}

body.dark-theme .footer-logo .tagline {
  color: var(--gray-400);
}

body.dark-theme .social-icon {
  background-color: var(--gray-700);
  color: var(--primary-light);
}

body.dark-theme .social-icon:hover {
  background-color: var(--primary);
  color: white;
}

body.dark-theme .footer-links-group h4 {
  color: var(--gray-300);
}

body.dark-theme .footer-links-group h4::after {
  background-color: var(--primary-light);
}

body.dark-theme .footer-links-group ul li a {
  color: var(--gray-400);
}

body.dark-theme .footer-links-group ul li a:hover {
  color: var(--primary-light);
}

body.dark-theme .footer-bottom {
  background-color: var(--gray-900);
  border-top-color: var(--gray-700);
  color: var(--gray-400);
}

body.dark-theme .ad-disclosure a {
  color: var(--primary-light);
}

/* Media queries for footer responsiveness */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-bottom {
    padding: var(--space-md);
  }
  
  .footer-logo h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .footer-links-group {
    width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Enhanced Premium Button Styles */
.action-button, 
.primary-button, 
.secondary-button, 
.accent-button {
  min-width: 120px;
  height: 46px;
  padding: 0 var(--space-md);
    font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

.action-button::after,
.primary-button::after,
.secondary-button::after,
.accent-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: transparent;
  border-radius: var(--radius-md);
  z-index: -1;
  transition: all 0.3s ease;
}

.action-button:hover::after,
.primary-button:hover::after,
.secondary-button:hover::after,
.accent-button:hover::after {
  background-color: rgba(255, 255, 255, 0.1);
}

.primary-button {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.4);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(var(--primary-rgb), 0.3);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-800);
  border: 1px solid var(--gray-300);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  background: white;
}

.secondary-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accent-button {
  background: linear-gradient(135deg, var(--accent), #f97316);
  color: white;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

.accent-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.4);
}

.accent-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(245, 158, 11, 0.3);
}

/* Button disabled state */
.primary-button:disabled,
.secondary-button:disabled,
.accent-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Action buttons (table row actions) */
.action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--gray-700);
    display: flex;
    align-items: center;
    justify-content: center;
  border: 1px solid var(--gray-300);
  transition: all 0.25s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin: 0 3px;
}

.action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.action-btn.archive-item:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
  border-color: var(--primary-light);
}

.action-btn.delete-item:hover {
  background-color: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
  color: var(--danger);
  border-color: var(--danger);
}

.action-btn.restore-item:hover {
  background-color: rgba(var(--success-rgb, 34, 197, 94), 0.1);
  color: var(--success);
  border-color: var(--success);
}

/* View participants button */
.view-participants-button {
  min-width: 120px;
  height: 46px;
  padding: 0 var(--space-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  border: none;
    cursor: pointer;
  font-family: var(--font-body);
  letter-spacing: 0.3px;
}

.view-participants-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

.view-participants-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(59, 130, 246, 0.3);
}

/* Responsive button styles */
@media (max-width: 768px) {
  .action-button, 
  .primary-button, 
  .secondary-button, 
  .accent-button {
    min-width: 110px;
    height: 42px;
    font-size: 0.9rem;
}

  .action-btn {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 480px) {
  .action-button, 
  .primary-button, 
  .secondary-button, 
  .accent-button {
    min-width: 100px;
    height: 38px;
    font-size: 0.85rem;
    padding: 0 var(--space-sm);
  }
  
  .action-btn {
    width: 30px;
    height: 30px;
  }
}

/* Button with icon */
.button-with-icon {
  position: relative;
  padding-left: 42px;
}

.button-with-icon i {
  position: absolute;
  left: 16px;
  font-size: 1.1em;
}

/* Add subtle pulse effect to primary draw button */
.draw-button {
  position: relative;
}

.draw-button::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  opacity: 0;
  z-index: -1;
  animation: pulseBorder 2s infinite;
}

@keyframes pulseBorder {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    transform: scale(1.05);
    opacity: 0;
  }
}

/* Main Content - Updated Layout */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* Card and Controls Wrapper */
.card-controls-wrapper {
    display: flex;
    align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  width: 100%;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-md);
}

/* Card Section - Flashcard Style */
.card-section {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  width: 60%;
  max-width: 500px;
}

.card-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
    position: relative;
  padding: var(--space-lg) 0;
  width: 100%;
}

.spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-stack {
    position: relative;
  width: 100%;
  max-width: 450px;
  height: var(--card-height);
    perspective: 1000px;
  margin-bottom: var(--space-md);
}

.placeholder-card {
  position: absolute;
  top: 0;
  left: 0;
    width: 100%;
  height: 100%;
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transform: translateZ(-10px) scale(0.95) translateY(10px);
  transition: all var(--transition-normal);
  opacity: 0.5;
}

.placeholder-card.card-1 {
  transform: translateZ(-30px) scale(0.9) translateY(20px);
  opacity: 0.3;
}

.placeholder-card.card-2 {
  transform: translateZ(-20px) scale(0.925) translateY(15px);
  opacity: 0.4;
}

.placeholder-card.card-3 {
  transform: translateZ(-10px) scale(0.95) translateY(10px);
  opacity: 0.5;
}

.flashcard {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.flashcard.flipped {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--radius-xl);
  overflow: hidden;
    display: flex;
  align-items: center;
    justify-content: center;
  background-color: var(--white);
  box-shadow: var(--shadow-lg);
  padding: var(--space-lg);
}

.card-front {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.card-back {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: white;
  transform: rotateY(180deg);
}

.card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  transition: opacity var(--transition-normal);
}

/* Add card-label-container styles */
.card-label-container {
  width: 100%;
  position: absolute;
  top: 12%;
  left: 0;
  padding: var(--space-xs) 0;
  z-index: 5;
  transform: translateZ(0);
  will-change: transform;
  text-align: center;
}

/* Update card-label styles */
.card-label {
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-700);
  display: inline-block;
  position: relative;
}

/* Add card-name-container styles */
.card-name-container {
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  padding: var(--space-md) 0;
  z-index: 1;
  text-align: center;
}

.name-display {
  font-size: 2rem;
  font-weight: 500;
  background: linear-gradient(45deg, var(--primary-dark), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  transition: all var(--transition-normal);
}

.name-display.animating {
  font-size: 2.75rem;
  transform: none;
  color: var(--primary);
}

.winner-label {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
    color: white;
  position: relative;
  z-index: 1;
}

.winner-name {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
    color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.winner-details {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Confetti Canvas */
.confetti-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-dropdown);
}

/* Draw Controls Container - Now on the right side */
.draw-controls-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) 0;
  width: 40%;
  max-width: 350px;
}

/* Draw Controls */
.draw-controls {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.counter-group {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  width: 100%;
}

.counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background-color: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 110px;
  flex: 1;
  margin: 0 var(--space-xs);
}

.counter-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.counter-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.button-group {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  flex-direction: column;
}

.button-group .primary-button,
.button-group .secondary-button,
.button-group .accent-button {
  width: 100%;
}

/* Results Container - New Full Width Bottom Section */
.results-container {
  width: 80%;
  margin: 0 auto;
}

/* Results Section - Reduced height by 50% */
.results-section {
  background-color: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 250px; /* Reduced from 500px */
  border: 1px solid var(--gray-200);
  width: 100%;
}

.results-header {
    display: flex;
    align-items: center;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  background-color: var(--gray-100);
}

.results-header h2 {
  margin-bottom: 0;
  font-size: 1.25rem;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.results-header h2 i {
  color: var(--accent);
}

.tab-buttons {
  display: flex;
  gap: var(--space-sm);
  z-index: 1;
}

.tab-button {
  padding: var(--space-xs) var(--space-md);
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  transition: color var(--transition-fast);
  font-size: 0.9rem;
}

.tab-button::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  transform-origin: center;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
  font-weight: 600;
}

.tab-button.active::after {
  transform: scaleX(1);
}

.download-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  padding: 0;
  margin-left: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tabs-container {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.tab-content {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px);
  transition: all var(--transition-normal);
  overflow-y: auto;
}

.tab-content.active {
    opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.results-table {
    width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.results-table th {
  text-align: left;
  padding: var(--space-sm) var(--space-md);
  font-weight: 600;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-300);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
}

.results-table td {
  padding: var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-800);
}

.results-table tr:hover td {
  background-color: var(--gray-100);
}

.results-table tr:last-child td {
  border-bottom: none;
}

.empty-row td {
  text-align: center;
  padding: var(--space-xl);
  color: var(--gray-500);
  font-style: italic;
}

.actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: flex-end;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
    align-items: center;
    justify-content: center;
  border: none;
    cursor: pointer;
  transition: all var(--transition-fast);
  background-color: var(--gray-100);
  color: var(--gray-600);
}

.action-btn:hover {
  transform: translateY(-2px);
}

.archive-item {
  color: var(--secondary);
}

.archive-item:hover {
  background-color: rgba(16, 185, 129, 0.1);
}

.delete-item {
  color: var(--danger);
}

.delete-item:hover {
  background-color: rgba(239, 68, 68, 0.1);
}

.restore-item {
  color: var(--primary);
}

.restore-item:hover {
  background-color: rgba(109, 40, 217, 0.1);
}

/* Row Animations */
@keyframes highlightRow {
  0% {
    background-color: rgba(167, 139, 250, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.highlight-row {
  animation: highlightRow 2s ease-out;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
    align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  max-width: 500px;
    width: 90%;
  box-shadow: var(--shadow-xl);
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  position: relative;
}

.modal.show .modal-content {
  transform: translateY(0);
}

.modal-header {
  margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
    margin: 0;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
    cursor: pointer;
  padding: var(--space-xs);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

.modal-body {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .modal-content {
    padding: var(--space-lg);
  }
  
  .modal-title {
    font-size: 1.25rem;
  }
}

/* Winner Modal */
.winner-modal-content {
  max-width: 600px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: white;
  border: none;
}

.winner-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl) var(--space-lg) var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.winner-header h2 {
  color: white;
  margin-bottom: 0;
  font-size: 2rem;
  z-index: 1;
}

.winner-header .close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  color: white;
  background-color: rgba(255, 255, 255, 0.1);
}

.winner-header .close-modal:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.winner-header .close-modal .keyboard-shortcut {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.65rem;
  padding: 1px 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
}

.winner-crown {
  margin-bottom: var(--space-md);
  font-size: 3rem;
  color: var(--accent);
  animation: bounce 2s infinite;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.winner-body {
  padding: var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.celebration-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  pointer-events: none;
}

.sparkles {
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  filter: blur(1px);
}

.sparkle-1 {
  top: 20%;
  left: 15%;
  animation: twinkle 3s infinite;
}

.sparkle-2 {
  top: 40%;
  right: 20%;
  animation: twinkle 2.5s 0.3s infinite;
}

.sparkle-3 {
  bottom: 30%;
  left: 30%;
  animation: twinkle 3.5s 0.6s infinite;
}

.winner-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto var(--space-lg);
  background-color: white;
  border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  font-size: 4rem;
  color: var(--primary);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

.winner-info {
  margin-bottom: var(--space-xl);
}

.winner-info h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}

.winner-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

.winner-footer {
  display: flex;
  justify-content: center;
  padding: 0 var(--space-lg) var(--space-xl);
}

.winner-footer .primary-button {
  background: white;
  color: var(--primary);
  min-width: 200px;
}

/* Footer */
.app-footer {
  margin-top: auto;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background: linear-gradient(to right, var(--gray-100), var(--gray-200), var(--gray-100));
  border-top: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 0.875rem;
  box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.03);
  position: relative;
}

.app-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-light), var(--accent), var(--primary-light));
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
  gap: var(--space-xl);
}

.footer-logo {
  flex: 1;
  min-width: 250px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
  font-weight: 700;
  letter-spacing: -0.5px;
}

.footer-logo .tagline {
  color: var(--gray-600);
  margin-bottom: var(--space-lg);
  line-height: 1.5;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: var(--gray-200);
  border-radius: 50%;
  color: var(--primary);
  transition: all var(--transition-normal);
}

.social-icon:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
}

.footer-links-group {
  min-width: 160px;
}

.footer-links-group h4 {
  font-size: 1rem;
  margin-bottom: var(--space-md);
  color: var(--gray-800);
  font-weight: 600;
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links-group h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--primary);
}

.footer-links-group ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-group ul li {
  margin-bottom: var(--space-sm);
}

.footer-links-group ul li a {
  color: var(--gray-600);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: 0.875rem;
  display: inline-flex;
  align-items: center;
}

.footer-links-group ul li a:hover {
  color: var(--primary);
  transform: translateX(3px);
}

.footer-links-group ul li a i {
  font-size: 0.75rem;
  margin-right: var(--space-xs);
  opacity: 0.7;
}

.footer-bottom {
  width: 100%;
  margin: 0 auto;
  padding: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--gray-200);
  background-color: var(--gray-100);
  color: var(--gray-600);
  font-size: 0.8rem;
  line-height: 1.6;
}

.footer-bottom-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-bottom p {
  margin-bottom: var(--space-sm);
}

.copyright {
  font-weight: 500;
}

.disclaimer, .ad-disclosure {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.ad-disclosure a {
  color: var(--primary);
  text-decoration: underline;
  font-weight: 500;
}

/* Dark theme footer styles */
body.dark-theme .app-footer {
  background: linear-gradient(to right, var(--gray-900), var(--gray-800), var(--gray-900));
  border-top-color: var(--gray-700);
  color: var(--gray-300);
}

body.dark-theme .app-footer::before {
  background: linear-gradient(to right, var(--primary), var(--accent), var(--primary));
}

body.dark-theme .footer-logo h3 {
  color: var(--primary-light);
}

body.dark-theme .footer-logo .tagline {
  color: var(--gray-400);
}

body.dark-theme .social-icon {
  background-color: var(--gray-700);
  color: var(--primary-light);
}

body.dark-theme .social-icon:hover {
  background-color: var(--primary);
  color: white;
}

body.dark-theme .footer-links-group h4 {
  color: var(--gray-300);
}

body.dark-theme .footer-links-group h4::after {
  background-color: var(--primary-light);
}

body.dark-theme .footer-links-group ul li a {
  color: var(--gray-400);
}

body.dark-theme .footer-links-group ul li a:hover {
  color: var(--primary-light);
}

body.dark-theme .footer-bottom {
  background-color: var(--gray-900);
  border-top-color: var(--gray-700);
  color: var(--gray-400);
}

body.dark-theme .ad-disclosure a {
  color: var(--primary-light);
}

/* Media queries for footer responsiveness */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: var(--space-lg);
    padding: var(--space-lg);
  }
  
  .footer-links {
    width: 100%;
    justify-content: space-between;
  }
  
  .footer-bottom {
    padding: var(--space-md);
  }
  
  .footer-logo h3 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  .footer-links {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .footer-links-group {
    width: 100%;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Animations */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.1);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes flipInY {
  from {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
  to {
    transform: perspective(400px) rotateY(0deg);
    opacity: 1;
  }
}

@keyframes flipOutY {
  from {
    transform: perspective(400px) rotateY(0deg);
    opacity: 1;
  }
  to {
    transform: perspective(400px) rotateY(90deg);
    opacity: 0;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Media Queries - Updated for new layout */
@media (max-width: 1200px) {
  .card-section {
    width: 55%;
  }
  
  .draw-controls-container {
    width: 45%;
  }
}

@media (max-width: 1024px) {
  .card-controls-wrapper {
    flex-direction: column;
    gap: var(--space-lg);
  }
  
  .card-section, 
  .draw-controls-container {
    width: 100%;
    max-width: 500px;
  }
  
  .results-container {
    width: 95%;
  }
  
  .button-group {
    flex-direction: row;
  }
  
  .button-group.mt-sm {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  :root {
    --card-height: 280px;
  }
  
  .app-header {
    padding: 0;
  }
  
  .app-title {
    font-size: 1.2rem;
  }
  
  .app-title::after {
    width: 60px;
  }
  
  .card-stack {
    max-width: 300px;
  }
  
  .card-section, 
  .draw-controls-container {
    max-width: 100%;
  }
  
  /* Update card label container for mobile */
  .card-label-container {
    top: 12%;
    padding: var(--space-xs) 0;
  }
  
  /* Update card label for mobile */
  .card-label {
    font-size: 0.9rem;
  }
  
  /* Update card name container for mobile */
  .card-name-container {
    padding: var(--space-sm) 0;
  }
  
  .name-display {
    font-size: 1.5rem;
  }
  
  .winner-name {
    font-size: 1.5rem;
  }
  
  .counter {
    min-width: 90px;
  }
  
  .counter-value {
    font-size: 1.3rem;
  }
  
  .primary-button,
  .secondary-button,
  .accent-button {
    padding: 0 var(--space-md);
    height: 2.5rem;
    font-size: 0.9rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .upload-panel {
    width: 100%;
  }
  
  .tab-button {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.8rem;
  }
  
  .results-container {
    width: 100%;
  }
}

@media (max-width: 480px) {
  /* Smaller mobile styles for card elements */
  .card-label-container {
    top: 10%;
  }
  
  .card-label {
    font-size: 0.8rem;
  }
  
  .name-display {
    font-size: 1.3rem;
  }
  
  .card-name-container {
    padding: var(--space-xs) 0;
  }
}

/* Add Name Form Styles */
.add-name-container {
  padding: var(--space-lg);
}

.add-name-container h3 {
  margin-bottom: var(--space-md);
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.1rem;
}

.add-name-form {
  background-color: var(--accent);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  color: var(--gray-700);
}

.form-input {
  width: 100%;
  height: 2.5rem;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  font-family: var(--font-body);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-actions {
  margin-top: var(--space-lg);
  display: flex;
  justify-content: flex-end;
}

#additional-fields-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.field-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.field-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

/* Empty state styling */
.empty-state {
  text-align: center;
  padding: var(--space-xxl) var(--space-md);
  color: var(--gray-500);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--gray-400);
}

.empty-state h4 {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
  color: var(--gray-700);
}

.empty-state p {
  margin-bottom: var(--space-md);
}

/* Dark theme overrides for new elements */
body.dark-theme .add-name-form {
  background-color: var(--gray-800);
}

body.dark-theme .form-input {
  background-color: var(--gray-700);
  border-color: var(--gray-600);
  color: var(--gray-200);
}

body.dark-theme .form-input::placeholder {
  color: var(--gray-500);
}

body.dark-theme .form-group label {
  color: var(--gray-300);
}

/* Keyboard shortcut hint style */
.keyboard-shortcut {
  display: inline-flex;
  align-items: center;
  margin-left: var(--space-sm);
  font-size: 0.7rem;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background-color: var(--gray-100);
  vertical-align: middle;
}

body.dark-theme .keyboard-shortcut {
  background-color: var(--gray-700);
  border-color: var(--gray-600);
  color: var(--gray-300);
}

.close-modal {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color var(--transition-fast);
    position: relative;
}

.close-modal:hover {
  background-color: var(--gray-200);
}

.close-modal .keyboard-shortcut {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.65rem;
  padding: 1px 4px;
}

/* Customization Panel */
.customization-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.customization-panel.open {
  transform: translateX(0);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.panel-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.panel-header h2 i {
  color: var(--primary);
}

.panel-content {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.settings-section {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
}

.settings-section:last-child {
  border-bottom: none;
}

.settings-section h3 {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.setting-item {
  margin-bottom: var(--space-md);
}

.setting-item label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.settings-actions {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
}

/* Color Presets */
.color-presets {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-xs);
}

.color-preset {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.color-preset:hover {
  transform: scale(1.1);
}

.color-preset.active {
  border-color: var(--gray-700);
  transform: scale(1.15);
}

.preset-purple {
  background: linear-gradient(135deg, #6d28d9, #a78bfa);
}

.preset-blue {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
}

.preset-green {
  background: linear-gradient(135deg, #047857, #6ee7b7);
}

.preset-pink {
  background: linear-gradient(135deg, #be185d, #f472b6);
}

.preset-orange {
  background: linear-gradient(135deg, #c2410c, #fb923c);
}

/* Color Picker */
.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.color-picker {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background-color: transparent;
}

.color-picker::-webkit-color-swatch-wrapper {
  padding: 0;
}

.color-picker::-webkit-color-swatch {
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.color-value {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Radio Group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xs);
}

.radio-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-weight: normal;
  margin-bottom: 0;
}

.radio-label input {
  cursor: pointer;
}

/* Sliders */
.slider {
  width: 100%;
  height: 6px;
  background: var(--gray-300);
  border-radius: var(--radius-full);
  outline: none;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.2);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: var(--space-xs);
}

/* Select Inputs */
.form-select {
  width: 100%;
  height: 2.5rem;
  padding: 0 var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  background-color: var(--white);
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236b7280'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2);
  outline: none;
}

/* Settings Button */
.settings-button {
  margin-right: var(--space-sm);
}

/* Dark Theme Overrides for Customization Panel */
body.dark-theme .customization-panel {
  background-color: var(--gray-800);
}

body.dark-theme .panel-header {
  border-bottom: 1px solid var(--gray-700);
}

body.dark-theme .settings-section {
  border-bottom: 1px solid var(--gray-700);
}

body.dark-theme .settings-section h3 {
  color: var(--gray-300);
}

body.dark-theme .setting-item label {
  color: var(--gray-400);
}

body.dark-theme .color-preset {
  border-color: var(--gray-600);
}

body.dark-theme .color-preset.active {
  border-color: var(--gray-300);
}

body.dark-theme .color-value {
  color: var(--gray-400);
}

body.dark-theme .slider {
  background: var(--gray-600);
}

body.dark-theme .form-select {
  background-color: var(--gray-700);
  border-color: var(--gray-600);
  color: var(--gray-300);
}

/* New Animation Classes */
/* Default is already defined in main CSS */

/* 3D Spin Animation */
@keyframes spinAnimation {
  0% {
    transform: rotateY(0deg);
    }
    100% {
    transform: rotateY(360deg);
  }
}

.animation-spin .flashcard {
  transform-style: preserve-3d;
}

.animation-spin .flashcard.flipped {
  animation: spinAnimation 1s forwards;
}

/* Bounce Animation */
@keyframes bounceAnimation {
  0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
  }
  40% {
    transform: translateY(-30px);
  }
  60% {
    transform: translateY(-15px);
  }
}

.animation-bounce .flashcard.flipped {
  animation: bounceAnimation 1s forwards;
}

/* Fade Animation */
@keyframes fadeAnimation {
  0% {
        opacity: 1;
    }
  50% {
        opacity: 0;
    }
  100% {
    opacity: 1;
  }
}

.animation-fade .flashcard.flipped {
  animation: fadeAnimation 1.5s forwards;
}

/* Typewriter Animation */
.animation-typewriter .name-display {
  border-right: 3px solid var(--primary);
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  animation: typing 2s steps(30, end) forwards;
}

@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Card Styles */
/* Standard is already defined */

/* Glassmorphism */
.card-style-glass .card-front,
.card-style-glass .card-back {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-style-glass .card-front .name-display {
  color: var(--primary-dark);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.card-style-glass .card-front .card-label-container {
  background: rgba(255, 255, 255, 0.3);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
}

.card-style-glass .card-back {
  background: rgba(109, 40, 217, 0.4);
}

/* Minimal */
.card-style-minimal .card-front,
.card-style-minimal .card-back {
  background: var(--white);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.card-style-minimal .card-front .name-display {
  color: var(--primary);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.card-style-minimal .card-front .card-label-container {
  border-bottom: 1px solid var(--gray-200);
  padding-bottom: var(--space-md);
}

.card-style-minimal .card-back {
  border-color: var(--primary-light);
}

/* Gradient */
.card-style-gradient .card-front {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.card-style-gradient .card-front .card-label {
  color: rgba(255, 255, 255, 0.9);
}

.card-style-gradient .card-front .card-label-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.card-style-gradient .card-front .name-display {
  color: white;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-style-gradient .card-back {
  background: linear-gradient(135deg, var(--secondary), var(--primary-dark));
}

/* Background Styles */
.bg-waves {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    var(--primary),
    var(--primary) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* Font Family Variations */
.font-poppins {
  --font-body: 'Poppins', sans-serif;
}

.font-roboto {
  --font-body: 'Roboto', sans-serif;
}

.font-opensans {
  --font-body: 'Open Sans', sans-serif;
}

.font-montserrat {
  --font-body: 'Montserrat', sans-serif;
}

.font-playfair {
  --font-body: 'Playfair Display', serif;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .customization-panel {
    width: 100%;
  }
}

/* Button spacing */
.mt-sm {
  margin-top: var(--space-sm);
}

/* Review Winners Button */
.accent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  height: 3rem;
  padding: 0 var(--space-xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: none;
  background: linear-gradient(45deg, var(--accent), #fbbf24);
  color: white;
  box-shadow: var(--shadow-md);
  width: 100%;
}

.accent-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.accent-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Fullscreen Modal for Winners Review */
.fullscreen-modal {
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
}

.fullscreen-modal-content {
  width: 95%;
  max-width: 1000px;
  height: 90vh;
  max-height: 800px;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  display: flex;
        flex-direction: column;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.review-header h2 {
  color: white;
  margin-bottom: 0;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.review-header h2 i {
  color: var(--accent);
  font-size: 1.25rem;
}

.review-controls {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.review-nav-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.review-nav-button:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.review-counter {
  color: white;
  font-size: 1rem;
  font-weight: 500;
  min-width: 60px;
  text-align: center;
}

.review-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-lg);
}

.review-card-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 300px;
  perspective: 1000px;
  z-index: 1;
}

.review-card {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.review-card.flipped {
  transform: rotateY(180deg);
}

.review-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  display: flex;
        flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
  overflow: hidden;
}

.review-avatar {
  width: 90px;
  height: 90px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 3.5rem;
  color: white;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.3);
}

.winner-prize {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  animation: pulse 2s infinite;
}

.winner-spotlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
  opacity: 0.7;
  pointer-events: none;
}

.review-label {
  font-size: 0.9rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.review-name {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.review-details {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: var(--space-md);
}

.review-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background-color: var(--primary);
  color: white;
}

.review-badge.archived {
  background-color: var(--secondary);
}

.review-footer {
  display: flex;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(0, 0, 0, 0.2);
}

.review-confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Decorative elements */
.review-decorations {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.decoration {
  position: absolute;
  font-size: 2.5rem;
  opacity: 0.8;
  animation: float 6s infinite alternate ease-in-out;
}

.decoration-1 {
  top: 15%;
  left: 10%;
  animation-duration: 8s;
}

.decoration-2 {
  top: 20%;
  right: 15%;
  animation-duration: 9s;
  animation-delay: 1s;
}

.decoration-3 {
  bottom: 20%;
  left: 15%;
  animation-duration: 7s;
  animation-delay: 0.5s;
}

.decoration-4 {
  bottom: 15%;
  right: 10%;
  animation-duration: 10s;
}

/* Animation for review card */
@keyframes enterFromRight {
  from {
    opacity: 0;
    transform: translateX(50px) rotateY(10deg);
  }
  to {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
}

@keyframes exitToLeft {
  from {
    opacity: 1;
    transform: translateX(0) rotateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50px) rotateY(-10deg);
  }
}

.card-enter {
  animation: enterFromRight 0.6s forwards;
}

.card-exit {
  animation: exitToLeft 0.6s forwards;
}

/* Media queries for smaller screens */
@media (max-width: 768px) {
  .fullscreen-modal-content {
    width: 100%;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
  
  .review-header h2 {
    font-size: 1.2rem;
  }
  
  .review-nav-button {
    width: 32px;
    height: 32px;
  }
  
  .review-card-container {
    max-width: 320px;
    height: 250px;
  }
  
  .review-avatar {
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
  }
  
  .review-name {
    font-size: 1.5rem;
  }
  
  .decoration {
    font-size: 1.75rem;
    }
}

/* Spacing utility classes */
.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.pt-md {
  padding-top: var(--space-md);
}

/* Ensure active, focus, and hover states work correctly */
.primary-button:active,
.secondary-button:active,
.accent-button:active {
  transform: translateY(1px);
}

.primary-button:focus,
.secondary-button:focus,
.accent-button:focus,
.action-button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 109, 40, 217), 0.4);
}

.draw-button {
  background-color: var(--primary);
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0 var(--space-lg);
  height: 48px;
  min-width: 140px;
  border-radius: var(--radius-full);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.draw-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.draw-button:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-sm);
}

.draw-button i {
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .draw-button {
    height: 44px;
    min-width: 130px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .draw-button {
    height: 40px;
    min-width: 120px;
    font-size: 0.95rem;
    padding: 0 var(--space-md);
  }
}

#winnerModal .modal-content {
  text-align: center;
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-variant) 100%);
  border: 2px solid var(--primary);
  max-width: 600px;
}

#winnerModal .modal-header {
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

#winnerModal .modal-title {
  font-size: 2rem;
  color: var(--primary);
  text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

#winnerModal .modal-close {
  position: absolute;
  right: 0;
  top: 0;
}

#winnerModal .winner-name {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin: var(--space-lg) 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background-color: rgba(var(--primary-rgb), 0.1);
  box-shadow: var(--shadow-md);
  word-break: break-word;
  line-height: 1.2;
}

#winnerModal .modal-body {
  margin-bottom: var(--space-xl);
}

#winnerModal .confetti {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 768px) {
  #winnerModal .modal-title {
    font-size: 1.75rem;
  }
  
  #winnerModal .winner-name {
    font-size: 2rem;
    padding: var(--space-md);
  }
}

@media (max-width: 480px) {
  #winnerModal .modal-title {
    font-size: 1.5rem;
  }
  
  #winnerModal .winner-name {
    font-size: 1.5rem;
    padding: var(--space-sm);
  }
}

/* Participant Modal Styles */
.participants-stage {
  position: relative;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--space-xl) 0;
  padding: 0 var(--space-xl);
  overflow: hidden;
}

.participant-card-container {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 320px;
  perspective: 1000px;
}

.participant-card {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease-in-out;
  box-shadow: var(--shadow-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
  border: 1px solid var(--gray-300);
}

.participant-card.card-enter {
  animation: enterFromRight 0.6s ease forwards;
}

.participant-card.card-exit {
  animation: exitToLeft 0.3s ease forwards;
}

.participant-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
        flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.participant-avatar {
  position: relative;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-radius: 50%;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
  transform: translateZ(20px);
  transition: all 0.3s ease;
}

.participant-avatar i {
  font-size: 54px;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.participant-info {
  width: 100%;
  z-index: 1;
}

.participant-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--gray-900);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
}

.participant-details {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  overflow-wrap: break-word;
  word-break: break-word;
}

.entries-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
  margin-top: var(--space-sm);
  position: relative;
  overflow: hidden;
}

.entries-badge.multiple {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.entries-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* Responsive Participant Modal */
@media (max-width: 768px) {
  .participants-stage {
    height: 350px;
    padding: 0 var(--space-md);
  }
  
  .participant-card-container {
    height: 280px;
  }
  
  .participant-avatar {
    width: 100px;
    height: 100px;
  }
  
  .participant-avatar i {
    font-size: 44px;
  }
  
  .participant-name {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .participants-stage {
    height: 300px;
    padding: 0 var(--space-sm);
  }
  
  .participant-card-container {
    height: 250px;
  }
  
  .participant-avatar {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
  }
  
  .participant-avatar i {
    font-size: 36px;
  }
  
  .participant-name {
    font-size: 1.25rem;
  }
  
  .participant-details {
    font-size: 0.85rem;
  }
  
  .entries-badge {
    font-size: 0.8rem;
    padding: 2px 8px;
  }
}

/* Dark theme support for participant presentation */
body.dark-theme .participant-card {
  background: linear-gradient(135deg, var(--gray-800) 0%, var(--gray-900) 100%);
  border-color: var(--gray-700);
}

body.dark-theme .participant-card-inner {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(5px);
}

body.dark-theme .participant-name {
  color: var(--gray-100);
}

body.dark-theme .participant-details {
  color: var(--gray-400);
}

body.dark-theme .participant-avatar {
  background: linear-gradient(135deg, #4f46e5, #3730a3);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

body.dark-theme .entries-badge {
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

body.dark-theme .entries-badge.multiple {
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

/* Upload Button */
.upload-button {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.15);
  color: var(--primary);
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.upload-button:hover {
  background-color: rgba(var(--primary-rgb), 0.08);
  border-color: rgba(var(--primary-rgb), 0.2);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(var(--primary-rgb), 0.2);
}

.upload-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 8px rgba(var(--primary-rgb), 0.15);
}

body.dark-theme .upload-button {
  background-color: rgba(31, 41, 55, 0.8);
  color: var(--primary-light);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}

/* Upload Panel - Updated for Premium Design */
.upload-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background-color: var(--white);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-drawer);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--gray-200);
}

.upload-panel.open {
  transform: translateX(0);
}

.upload-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--space-lg);
  border-bottom: 1px solid var(--gray-200);
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.03), rgba(var(--primary-rgb), 0.08));
}

.upload-header h2 {
  font-size: 1.25rem;
  margin-bottom: 0;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.upload-header h2 i {
  color: var(--primary);
}

.close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s ease;
  position: relative;
  color: var(--gray-700);
}

.close-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.08);
  color: var(--primary);
  transform: translateY(-2px);
}

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

.close-btn .keyboard-shortcut {
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 0.65rem;
  padding: 1px 4px;
  background-color: var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-700);
}

.upload-content {
  flex: 1;
  padding: var(--space-lg);
  overflow-y: auto;
}

.upload-area {
  margin-bottom: var(--space-lg);
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  background-color: var(--white);
}

.upload-area:hover {
  border-color: var(--primary-light);
  background-color: rgba(var(--primary-rgb), 0.03);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.upload-area.dragging {
  border-color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.05);
  transform: scale(1.01);
}

.upload-area i {
  font-size: 3rem;
  color: var(--primary-light);
  margin-bottom: var(--space-md);
}

.file-button {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-radius: var(--radius-full);
  font-weight: 500;
  margin: var(--space-md) 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
  border: none;
}

.file-button:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(var(--primary-rgb), 0.4);
}

.file-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.file-types {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: var(--space-md);
}

.error-message {
  color: var(--danger);
  margin-bottom: var(--space-lg);
  font-size: 0.875rem;
  font-weight: 500;
  background-color: rgba(var(--danger-rgb, 239, 68, 68), 0.1);
  padding: var(--space-sm);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--danger);
}

.file-info {
  margin-top: var(--space-lg);
}

.file-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  background-color: var(--gray-100);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid var(--gray-200);
}

.file-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--primary-rgb), 0.1));
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  color: var(--primary);
}

.file-details {
  flex: 1;
}

.file-details p {
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--gray-800);
}

.file-details span {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}

.progress-wrapper {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--gray-200);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(to right, var(--primary), var(--accent));
  width: 0;
  transition: width 0.5s ease;
}

/* Dark theme support for upload panel */
body.dark-theme .upload-panel {
  background-color: var(--gray-900);
  border-left: 1px solid var(--gray-800);
}

body.dark-theme .upload-header {
  border-bottom: 1px solid var(--gray-800);
  background: linear-gradient(to right, rgba(var(--primary-rgb), 0.05), rgba(var(--primary-rgb), 0.1));
}

body.dark-theme .upload-header h2 {
  color: var(--gray-100);
}

body.dark-theme .close-btn {
  color: var(--gray-400);
}

body.dark-theme .close-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.2);
  color: var(--primary-light);
}

body.dark-theme .close-btn .keyboard-shortcut {
  background-color: var(--gray-800);
  color: var(--gray-300);
}

body.dark-theme .upload-area {
  border-color: var(--gray-700);
  background-color: var(--gray-800);
}

body.dark-theme .upload-area:hover {
  border-color: var(--primary);
  background-color: var(--gray-800);
}

body.dark-theme .file-card {
  background-color: var(--gray-800);
  border-color: var(--gray-700);
}

body.dark-theme .file-icon {
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.3), rgba(var(--primary-rgb), 0.2));
}

body.dark-theme .file-details p {
  color: var(--gray-200);
}

body.dark-theme .file-details span {
  color: var(--primary-light);
}

body.dark-theme .progress-wrapper {
  background-color: var(--gray-700);
}

body.dark-theme .error-message {
  background-color: rgba(var(--danger-rgb, 239, 68, 68), 0.2);
  border-left: 3px solid var(--danger);
  color: var(--danger-light, #f87171);
}

body.dark-theme .card-label {
  color: var(--gray-300);
}

body.dark-theme .card-label-container {
  border-color: var(--gray-700);
}

body.dark-theme .name-display {
  background: linear-gradient(45deg, var(--primary-light), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
}

body.dark-theme .card-content {
  color: var(--gray-200);
}

body.dark-theme .card-front {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(20, 20, 20, 0.8));
  border: 1px solid var(--gray-700);
}

body.dark-theme .card-back {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

/* Dark theme card style variants */
body.dark-theme .card-style-glass .card-front {
  background: rgba(30, 30, 30, 0.3);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(70, 70, 70, 0.3);
}

body.dark-theme .card-style-glass .card-front .card-label-container {
  background: rgba(70, 70, 70, 0.3);
}

body.dark-theme .card-style-minimal .card-front {
  background: var(--gray-800);
  border: 2px solid var(--gray-700);
}

body.dark-theme .card-style-minimal .card-front .card-label-container {
  border-bottom: 1px solid var(--gray-700);
}

body.dark-theme .card-style-gradient .card-front .card-label-container {
  background: rgba(0, 0, 0, 0.2);
}