.checkbox-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
    justify-content: center;
  }
  
  .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
  }
  
  /* Hide the default checkbox */
  .checkbox-item input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
  }
  
  /* Custom checkbox styling */
  .checkbox-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50px;
    background: var(--box-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
  }
  
  /* Create custom checkbox appearance */
  .checkbox-item label::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 10px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: var(--background-color);
    transition: all 0.2s ease;
  }
  
  /* Custom colors for different rule types */
  .checkbox-item:nth-child(1) label::before {
    border-color: #4285F4; /* Blue for uppercase */
  }
  
  .checkbox-item:nth-child(2) label::before {
    border-color: #34A853; /* Green for lowercase */
  }
  
  .checkbox-item:nth-child(3) label::before {
    border-color: #FBBC05; /* Yellow for numbers */
  }
  
  .checkbox-item:nth-child(4) label::before {
    border-color: #EA4335; /* Red for symbols */
  }

  .checkbox-item:nth-child(5) label::before {
    border-color: #9C27B0; /* Purple for unicode */
  }
  
  /* Checked state */
  .checkbox-item input[type="checkbox"]:checked + label {
    background: var(--component-color);
  }
  
  .checkbox-item input[type="checkbox"]:checked + label::before {
    content: "✓";
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(text-color);
    font-size: 16px;
    font-weight: bold;
  }

  #length-value {
    font-size: 22px;
  }
  
  /* Custom colors for different rule types when checked */
  .checkbox-item:nth-child(1) input[type="checkbox"]:checked + label::before {
    background-color: #4285F4; /* Blue for uppercase */
  }
  
  .checkbox-item:nth-child(2) input[type="checkbox"]:checked + label::before {
    background-color: #34A853; /* Green for lowercase */
  }
  
  .checkbox-item:nth-child(3) input[type="checkbox"]:checked + label::before {
    background-color: #FBBC05; /* Yellow for numbers */
  }
  
  .checkbox-item:nth-child(4) input[type="checkbox"]:checked + label::before {
    background-color: #EA4335; /* Red for symbols */
  }
  
  .checkbox-item:nth-child(5) input[type="checkbox"]:checked + label::before {
    background-color: #9C27B0; /* Purple for unicode */
  }

  /* Hover state */
  .checkbox-item label:hover {
    transform: translateY(-3px);
  }
  
  /* Adding animations */
  @keyframes checkmark {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
  }
  
  .checkbox-item input[type="checkbox"]:checked + label::before {
    animation: checkmark 0.2s cubic-bezier(0.65, 0, 0.35, 1) forwards;
  }

        .password-options {
  margin: 15px 0;
}

button {
  max-width: 80%;
  align-self: center;
}

.unit-btn {
  padding: 12px 20px;
  margin-bottom: -22px;
  cursor: pointer;
  border-radius: 0px;
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  transition: all 0.5s ease;
}

.unit-btn:hover{
  transform: translateY(-3px);
  transition: all 0.5s ease;
}

/* Password display container */
.password-result {
  margin-top: 20px;
  text-align: center;
}

.password-container {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--component-color);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 10px auto;
  max-width: 85%;
  position: relative;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  overflow: hidden;
  word-break: break-all;
}

#password-text {
  white-space: pre-wrap;
  font-family: 'Courier New', monospace;
  word-break: break-all;
  font-size: 1.2rem;
  font-weight: 600;
  margin-right: 10px;
  flex-grow: 1;
  text-align: center;
}

.copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: #555;
  background-color: #e9e9e9;
}

.copy-btn:hover {
  background-color: #ddd;
  transform: scale(1.1);
}

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

.copied {
  background-color: #4CAF50 !important;
  color: white !important;
}

/* Animation for copy success */
@keyframes pop {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.copied {
  animation: pop 0.3s ease-in-out;
}

/* Make sure the password display is responsive */
@media (max-width: 600px) {


  .checkbox-item {
  width: 40%;
  }
  .password-container {
    flex-direction: column;
    gap: 10px;
  }
  
  #password-text {
    margin-right: 0;
    margin-bottom: 10px;
    font-size: 2rem;
  }
}
  
  /* Make responsive for smaller screens */
  @media (max-width: 768px) {
    .checkbox-item label {
      width: 100%;
      justify-content: flex-start;
    }
  }

  .password-options {
    margin: 15px 0;
  }
  
  button {
    max-width: 80%;
    align-self: center;
  }
  
  .unit-btn {
    padding: 12px 20px;
    margin-bottom: -22px;
    cursor: pointer;
    border-radius: 0px;
    border-top-right-radius: 20px;
    border-top-left-radius: 20px;
  
  }
  
  /* Password display container */
  .password-result {
    margin-top: 20px;
    text-align: center;
  }
  
  .password-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--component-color);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 10px auto;
    max-width: 85%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    word-break: break-all;
  }
  
  #password-text {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 10px;
    flex-grow: 1;
    text-align: center;
  }
  
  .copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #555;
    background-color: #e9e9e9;
  }
  
  .copy-btn:hover {
    background-color: #ddd;
    transform: scale(1.1);
  }
  
  .copy-btn:active {
    transform: scale(0.95);
  }
  
  .copied {
    background-color: #4CAF50 !important;
    color: white !important;
  }
  
  /* Animation for copy success */
  @keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
  }
  
  .copied {
    animation: pop 0.3s ease-in-out;
  }
  
  /* Make sure the password display is responsive */
  @media (max-width: 600px) {
    .password-container {
      flex-direction: column;
      gap: 10px;
    }
    
    #password-text {
      margin-right: 0;
      margin-bottom: 10px;
      font-size: 2rem;
    }
  }