
    :root {
      --primary: #4285F4;
      --primary-dark: #3367D6;
      --text-primary: #202124;
      --text-secondary: #5F6368;
      --bg-color: #f8f9fa;
      --card-bg: #ffffff;
      --border-color: #dadce0;
      --success: #34A853;
      --error: #EA4335;
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: 'Inter', sans-serif;
      background: var(--bg-color);
      margin: 0;
      padding: 0;
      color: var(--text-primary);
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }




    /* Smooth fade for the copied message */
.copy-success {
  opacity: 0;
  transition: opacity 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  -webkit-user-select: none;
  user-select: none;
}

/* When visible, opacity is 1 - toggled via JS */
.copy-success.visible {
  opacity: 1;
}

/* Email item styling - truncate long emails if needed */
.email-item {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 0.5rem;
  font-family: monospace;
}

/* Adjust list items spacing and alignment */
#resultList li {
  padding: 0.3rem 0.5rem;
  cursor: default;
}

/* Smaller button on small devices - responsive */
@media (max-width: 576px) {
  .copy-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
  }
}


    header {
        background: white;
        padding: 16px 0;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        position: relative;
    }

    header::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(to right, var(--primary), var(--primary-dark));
    }

    .header-content {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo-container {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .logo {
        width: 40px;
        height: 40px;
        color: var(--primary);
        animation: logo-spin 2s linear infinite;
    }

    .logo-text {
        font-weight: 600;
        font-size: 18px;
        color: var(--text-primary);
        animation: text-fade-in 1s ease-in-out;
    }

    @keyframes logo-spin {
        0% {
            transform: rotate(0deg);
        }
        100% {
            transform: rotate(360deg);
        }
    }

    @keyframes text-fade-in {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }

    .nav-links {
      display: flex;
      gap: 24px;
    }

    .nav-links a {
      text-decoration: none;
      color: var(--text-secondary);
      font-weight: 500;
      font-size: 15px;
      transition: color 0.2s;
    }

    .nav-links a:hover {
      color: var(--primary);
    }

    main {
      flex: 1;
      padding: 40px 20px;
      max-width: 1200px;
      width: 100%;
      margin: 0 auto;
    }

    .container {
      width: 100%;
      background: var(--card-bg);
      padding: 32px;
      border-radius: 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      text-align: center;
      border: 1px solid var(--border-color);
      margin: 0 auto;
    }

    h1 {
      color: var(--text-primary);
      font-weight: 600;
      font-size: 28px;
      margin: 0 0 12px 0;
    }

    .subtitle {
      font-size: 16px;
      color: var(--text-secondary);
      margin-bottom: 24px;
      line-height: 1.5;
    }

    .input-group {
      position: relative;
      margin-bottom: 24px;
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    input {
      padding: 14px 16px;
      width: 100%;
      max-width: 500px;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      font-size: 16px;
      transition: all 0.2s;
    }

    input:focus {
      outline: none;
      border-color: var(--primary);
      box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
    }

    input::placeholder {
      color: #9AA0A6;
    }

    .error-message {
      color: var(--error);
      font-size: 14px;
      margin-top: 8px;
      display: none;
    }

    button {
      padding: 12px 24px;
      background-color: var(--primary);
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    button:hover {
      background-color: var(--primary-dark);
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    button:active {
      transform: translateY(1px);
    }

    .results-container {
      margin-top: 32px;
      text-align: left;
      border: 1px solid var(--border-color);
      border-radius: 8px;
      overflow: hidden;
    }

    .results-header {
      padding: 16px;
      background-color: #f8f9fa;
      border-bottom: 1px solid var(--border-color);
      font-weight: 500;
      font-size: 16px;
      color: var(--text-secondary);
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .results-info {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .total-count {
      font-size: 14px;
      color: var(--text-secondary);
    }

    .count-badge {
      background-color: var(--primary);
      color: white;
      padding: 4px 10px;
      border-radius: 20px;
      font-size: 14px;
      font-weight: 500;
    }

    .copy-all-btn {
      background: transparent;
      color: var(--primary);
      border: 1px solid var(--primary);
      padding: 6px 12px;
      font-size: 14px;
      box-shadow: none;
    }

    .copy-all-btn:hover {
      background: rgba(66, 133, 244, 0.08);
    }

    ul {
      max-height: 500px;
      overflow-y: auto;
      margin: 0;
      padding: 0;
    }

    li {
      padding: 12px 16px;
      list-style: none;
      border-bottom: 1px solid var(--border-color);
      font-size: 15px;
      transition: all 0.1s;
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;
      position: relative;
    }

    li:hover {
      background-color: rgba(0, 0, 0, 0.02);
    }

    li:last-child {
      border-bottom: none;
    }

    .email-item {
      flex: 1;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      padding-right: 12px;
    }

    .copy-success {
      position: absolute;
      right: 16px;
      background: var(--success);
      color: white;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 12px;
      opacity: 0;
      transition: opacity 0.2s;
      pointer-events: none;
    }

    .copy-success.visible {
      opacity: 1;
    }

    footer {
      background: var(--primary);
      color: white;
      padding: 40px 0;
      margin-top: 40px;
    }

    .footer-content {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 24px;
    }

    .footer-links {
      display: flex;
      gap: 24px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .footer-links a {
      text-decoration: none;
      color: white;
      font-size: 14px;
      font-weight: 500;
      transition: color 0.2s;
    }

    .footer-links a:hover {
      color: var(--primary-dark);
    }

    .social-icons {
      display: flex;
      gap: 16px;
    }

    .social-icons a {
      color: white;
      font-size: 18px;
      transition: color 0.2s;
    }

    .social-icons a:hover {
      color: var(--primary-dark);
    }

    .copyright {
      font-size: 13px;
      text-align: center;
      color: #e0e0e0;
    }

    .author {
      font-size: 14px;
      text-align: center;
      color: #e0e0e0;
      margin-top: 8px;
    }

    /* Mobile-specific styles */
    @media (max-width: 768px) {
      .footer-content {
        gap: 16px;
      }

      .footer-links {
        gap: 16px;
      }
    }

      .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
      }

      .results-info {
        width: 100%;
        justify-content: space-between;
      }

      li {
        padding: 10px 12px;
      }

      .copy-success {
        right: 12px;
      }
    

    @media (max-width: 480px) {
      h1 {
        font-size: 24px;
      }

      .container {
        padding: 20px;
      }

      input {
        font-size: 15px;
      }

      button {
        width: 100%;
        justify-content: center;
      }

      .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
      }
    }
