* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Malgun Gothic', '맑은 고딕', sans-serif;
  font-size: 14px;
  background: #f5f5f5;
  color: #333;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.page-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
}

.ad-slot {
  width: 300px;
  min-width: 300px;
  height: 600px;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 13px;
  position: sticky;
  top: 32px;
  margin-top: 45px;
}

@media (max-width: 1000px) { .ad-slot.ad-left { display: none; } }
@media (max-width: 1280px) { .ad-slot.ad-right { display: none; } }

.container {
  width: 100%;
  max-width: 640px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

h1 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}
h1 span { color: #0078d4; }

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}
.card-title {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* 결과 비밀번호 */
.pw-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 12px 14px;
}
.pw-text {
  flex: 1;
  font-family: 'Consolas', 'D2Coding', monospace;
  font-size: 18px;
  letter-spacing: 1px;
  color: #1a1a1a;
  word-break: break-all;
}
.btn-copy {
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn-copy:hover { background: #005fa3; }
.btn-copy.copied { background: #107c10; }

/* 강도 표시 */
.strength-bar-wrap {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.strength-bar {
  flex: 1;
  height: 6px;
  background: #eee;
  border-radius: 3px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
  width: 0%;
}
.strength-label {
  font-size: 12px;
  font-weight: 600;
  min-width: 36px;
  text-align: right;
}

/* 슬라이더 */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-row label { white-space: nowrap; }
.slider-row input[type=range] { flex: 1; accent-color: #0078d4; }
.slider-val {
  font-weight: 700;
  color: #0078d4;
  width: 28px;
  text-align: right;
}

/* 체크박스 */
.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}
.check-item input[type=checkbox] {
  width: 16px;
  height: 16px;
  accent-color: #0078d4;
  cursor: pointer;
}
.check-sample {
  color: #999;
  font-family: 'Consolas', monospace;
  font-size: 11px;
  margin-left: auto;
}

/* 개수 */
.count-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.count-row label { white-space: nowrap; }
.count-row input[type=number] {
  width: 64px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  text-align: center;
}

/* 버튼 */
.btn-generate {
  width: 100%;
  padding: 12px;
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-generate:hover { background: #005fa3; }

/* 목록 */
#pw-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pw-list-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8f8f8;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 12px;
}
.pw-list-item .pw-text {
  font-size: 14px;
}
.pw-list-item .btn-copy {
  padding: 6px 12px;
  font-size: 12px;
}
