/* Global styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  margin: 0;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Container with modern card design */
.container {
  max-width: 800px;
  width: 100%;
  margin: 20px auto;
  padding: 30px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Headings with modern typography */
h1 {
  text-align: center;
  color: #2d3748;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  text-align: center;
  color: #4a5568;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
}

/* Email address display with copy button */
#email-address {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2b6cb0;
  text-align: center;
  padding: 12px;
  background: #edf2f7;
  border-radius: 8px;
  margin: 1rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
}

#email-address::after {
  content: 'Sao chép';
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #718096;
  font-size: 0.9rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#email-address:hover::after {
  opacity: 1;
}

/* Timer with progress ring animation */
.timer {
  text-align: center;
  font-size: 1rem;
  color: #4a5568;
  margin: 1rem 0;
  position: relative;
}

#countdown {
  font-weight: 600;
  color: #2b6cb0;
}

/* New email button with hover animation */
#new-email {
  display: block;
  margin: 1.5rem auto;
  padding: 12px 24px;
  background: linear-gradient(90deg, #2b6cb0 0%, #4299e1 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#new-email:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

#new-email:active {
  transform: translateY(0);
}

/* Email list with smooth transitions */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: #ffffff;
  margin: 0.5rem 0;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li:hover {
  background: #ebf8ff;
  transform: translateX(5px);
  border-color: #4299e1;
}

li span {
  font-size: 0.9rem;
  color: #718096;
}

/* Email content with smooth fade-in */
#email-content {
  margin-top: 1.5rem;
  padding: 20px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  white-space: pre-wrap;
  font-size: 0.95rem;
  color: #2d3748;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

/* Fade-in animation for email content */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 600px) {
  .container {
    margin: 10px;
    padding: 15px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.2rem;
  }
  
  #email-address {
    font-size: 1rem;
  }
  
  #new-email {
    padding: 10px 20px;
  }
}