/* =========================================
   Password Generator - Glassmorphism Styles
========================================= */

.page-wrapper {
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 6fr 1fr;
  gap: 2rem;
  padding: 60px 0 4rem 0;
  flex: 1;
}
.ad-space-left,
.ad-space-right {
  width: 100%;
  min-height: 600px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px dashed var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted, #475569);
  font-size: 0.8rem;
}
.main-content {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.glass-panel {
  background: var(--glass-bg, rgba(255, 255, 255, 0.55));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 85, 255, 0.15));
}
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  border-radius: 8px;
  padding: 1.5rem;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.6;
}
.shape-1 {
  width: 400px;
  height: 400px;
  background: #00a2ff;
  top: -100px;
  left: -100px;
}
.shape-2 {
  width: 500px;
  height: 500px;
  background: #0033cc;
  bottom: -150px;
  right: -100px;
}
.shape-3 {
  width: 300px;
  height: 300px;
  background: #7dd3fc;
  top: 40%;
  left: 30%;
}

h1 {
  margin-bottom: 1.5rem;
  color: var(--text-dark, #1e293b);
  font-size: 1.8rem;
}
h2 {
  font-size: 1.4rem;
  color: var(--text-dark, #1e293b);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.5rem;
}

/* Password Display Area */
.password-display-container {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.password-output {
  flex: 1;
  padding: 1.25rem;
  font-size: 1.8rem;
  font-family: "Courier New", Courier, monospace;
  font-weight: 700;
  color: var(--text-dark, #1e293b);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid var(--glass-border);
  border-radius: 8px;
  outline: none;
  letter-spacing: 2px;
}
.icon-btn {
  background: var(--accent, #0055ff);
  color: white;
  border: none;
  border-radius: 8px;
  width: 60px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
}
.icon-btn:hover {
  background: var(--accent-hover, #0033cc);
}
.icon-btn:active {
  transform: scale(0.95);
}

/* Strength Meter */
.strength-meter-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.strength-bar-bg {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  overflow: hidden;
}
.strength-bar {
  height: 100%;
  transition:
    width 0.3s ease,
    background-color 0.3s ease;
}
.strength-text {
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  width: 80px;
  text-align: right;
}

/* Controls */
.controls-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.4);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
}

.length-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.length-header label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-dark);
}
.length-header input[type="number"] {
  width: 70px;
  padding: 0.5rem;
  border: 1px solid var(--glass-border);
  border-radius: 6px;
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 4px;
  outline: none;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.checkbox-container {
  display: flex;
  align-items: center;
  position: relative;
  padding-left: 35px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-dark);
  user-select: none;
}
.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 24px;
  width: 24px;
  background-color: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  transition: all 0.2s;
}
.checkbox-container:hover input ~ .checkmark {
  background-color: rgba(255, 255, 255, 1);
}
.checkbox-container input:checked ~ .checkmark {
  background-color: var(--accent);
  border-color: var(--accent);
}
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}
.checkbox-container input:checked ~ .checkmark:after {
  display: block;
}
.checkbox-container .checkmark:after {
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.generate-btn {
  background: var(--accent, #0055ff);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  height: 50px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.2s,
    transform 0.1s;
}
.generate-btn:hover {
  background: var(--accent-hover, #0033cc);
}
.generate-btn:active {
  transform: scale(0.98);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.info-block h4 {
  font-size: 1.15rem;
  color: var(--accent, #0055ff);
  border-bottom: 2px solid var(--glass-border, rgba(255, 255, 255, 0.7));
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}
.info-block p {
  color: var(--text-muted, #475569);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .page-wrapper {
    width: 95%;
    grid-template-columns: 1fr;
  }
  .ad-space-left,
  .ad-space-right {
    display: none;
  }
}
@media (max-width: 768px) {
  .password-display-container {
    flex-direction: column;
  }
  .icon-btn {
    width: 100%;
    height: 50px;
  }
}
