@import "../general.css";

/* CSS for views/tools/password-generator.ejs */

.pg-container {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 80rem; /* max-w-7xl */
  border-radius: 0.75rem; /* rounded-xl */
  padding: 1rem; /* p-4 */
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
}

.dark .pg-container,
html.dark .pg-container {
  background-color: var(--card-bg);
  box-shadow: var(--shadow);
}

@media (min-width: 640px) {
  .pg-container {
    padding: 1.5rem; /* sm:p-6 */
  }
}

@media (min-width: 768px) {
  .pg-container {
    padding: 1rem; /* md:p-4 */
  }
}

.pg-inner-container {
  margin-left: auto;
  margin-right: auto;
  padding: 0.25rem; /* p-1 */
}

.pg-title {
  margin-bottom: 1rem; /* mb-4 */
  text-align: center;
  font-size: 1.875rem; /* text-3xl */
  font-weight: 700;
  color: var(--title-color);
}

.pg-description {
  margin-bottom: 1rem; /* mb-4 */
  text-align: center;
  font-size: 1.125rem; /* text-lg */
  color: var(--text-muted);
}

.pg-form {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* space-y-2 */
}

@media (min-width: 1024px) {
  .pg-form {
    gap: 1.25rem; /* lg:space-y-5 */
  }
}

.pg-input-group {
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
}

@media (min-width: 1024px) {
  .pg-input-group {
    gap: 1.25rem; /* lg:space-x-5 */
  }
}
.pg-input-group.pg-w-full {
  width: 100%;
}

.pg-text-input {
  width: 100%;
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid var(--input-border);
  padding: 0.5rem; /* p-2 */
  background-color: var(--input-bg);
  color: var(--input-text);
}

@media (min-width: 1024px) {
  .pg-text-input {
    padding: 0.75rem; /* lg:p-3 */
  }
}

.pg-text-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-color-light);
}

.pg-btn-icon {
  width: fit-content;
  border-radius: 0.5rem; /* rounded-lg */
  padding: 0.5rem; /* px-2 py-2 */
  color: var(--color-white);
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.icon {
  width: 1.25rem; /* w-5 */
  height: 1.25rem; /* h-5 */
}

.pg-btn-copy {
  width: fit-content;
  border-radius: 0.5rem; /* rounded-lg */
  background-color: var(--primary-color);
  padding: 0.5rem; /* px-2 py-2 */
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.5rem; /* space-x-2 */
  cursor: pointer;
  border: none;
  font-weight: 500;
}

.pg-btn-copy:hover {
  background-color: var(--primary-color-hover);
}

.pg-label {
  font-size: 1.125rem; /* text-lg */
  width: 25%; /* w-1/4 */
  color: var(--label-text);
}

.pg-range-input {
  width: 75%; /* w-3/4 */
  border-radius: 0.5rem; /* rounded-lg */
  border: 1px solid var(--input-border);
  margin: 0.5rem; /* m-2 */
  background-color: var(--input-bg-alt);
  cursor: pointer;
}

/* Checkbox Options */
.pg-options-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
  justify-content: space-between;
}

.pg-option-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.pg-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.pg-checkbox-label {
  font-size: 1.125rem; /* text-lg */
  cursor: pointer;
  user-select: none;
  color: var(--label-text);
}

/* Info Section */
.info-section-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 80rem; /* max-w-7xl */
  margin-top: 1.5rem; /* mt-6 */
}

.info-content {
  color: var(--page-text);
  line-height: 1.625;
}

.info-box {
  background-color: var(--card-hover-bg);
  border-left: 4px solid var(--primary-color);
  padding: 1rem; /* p-4 */
  border-radius: 0.375rem; /* rounded-md */
  color: var(--page-text);
}

.info-box strong {
  color: var(--primary-color);
}

.info-heading {
  margin-top: 1.5rem; /* mt-6 */
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.info-list-decimal {
  list-style-type: decimal;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-list-item {
  padding: 0.5rem 0.75rem; /* px-3 py-2 */
  border-radius: 0.375rem; /* rounded-md */
  background-color: var(--card-hover-bg);
  border: 1px solid var(--card-border);
  color: var(--page-text);
}

.info-list-disc {
  list-style-type: disc;
  list-style-position: inside;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--page-text);
}

.faq-details {
  background-color: var(--card-hover-bg);
  border: 1px solid var(--card-border);
  border-radius: 0.375rem; /* rounded-md */
  padding: 0.75rem; /* p-3 */
  margin-bottom: 0.5rem;
}

.faq-summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--page-text);
}

.faq-answer {
  margin-top: 0.5rem; /* mt-2 */
  font-size: 0.875rem; /* text-sm */
  color: var(--text-muted);
}
