/* 비밀번호 생성기 스타일 - mockup-generator 디자인 언어 차용 (그린 테마) */
.pw-tool {
    --tool-primary: #059669;
    --tool-bg: #ecfdf5;
    --tool-gradient: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

/* 히어로 */
.pw-hero {
    background: var(--tool-gradient);
    border-radius: 16px;
    padding: 36px 32px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}
.pw-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}
.pw-hero::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}
.pw-hero h1 {
    font-size: 28px;
    font-weight: 800;
    position: relative;
    z-index: 1;
    margin: 10px 0 6px;
}
.pw-hero p {
    opacity: 0.85;
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

/* 에디터 카드 */
.editor-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.editor-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f3f5;
}
.editor-title {
    font-weight: 700;
    font-size: 14px;
    color: #343a40;
}
.editor-title i {
    color: var(--tool-primary);
}
.editor-body {
    padding: 18px;
}

/* 생성된 비밀번호 표시 영역 */
.pw-output-box {
    display: flex;
    align-items: stretch;
    gap: 8px;
}
.pw-output-field {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fb;
    padding: 16px 18px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #212529;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
    word-break: break-all;
}
.pw-output-field:focus {
    border-color: var(--tool-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}
.pw-copy-inline {
    flex-shrink: 0;
    width: 52px;
    border: 1px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    color: #495057;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.15s;
}
.pw-copy-inline:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}

/* 복수 비밀번호 영역 */
.pw-multi-box {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: #f8f9fb;
    padding: 16px 18px;
    position: relative;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* 강도 표시 바 */
.pw-strength-wrap {
    margin-top: 18px;
}
.pw-strength-track {
    height: 8px;
    background: #e9ecef;
    border-radius: 20px;
    overflow: hidden;
}
.pw-strength-track .progress-bar {
    height: 100%;
    border-radius: 20px;
    transition: width 0.3s ease, background-color 0.3s ease;
}

/* 옵션: 길이 슬라이더 (테마 적용) */
.pw-range {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 20px;
    background: #e9ecef;
    outline: none;
}
.pw-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tool-gradient);
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.4);
}
.pw-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #059669;
    cursor: pointer;
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(5, 150, 105, 0.4);
}

/* 옵션 스위치 테마 */
.pw-tool .form-check-input:checked {
    background-color: var(--tool-primary);
    border-color: var(--tool-primary);
}
.pw-tool .form-check-input:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}
.pw-tool .form-control:focus,
.pw-tool .form-select:focus {
    border-color: var(--tool-primary);
    box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}
.pw-tool code {
    color: var(--tool-primary);
    background: var(--tool-bg);
    padding: 1px 6px;
    border-radius: 5px;
    font-size: 0.85em;
}

/* 액션 버튼 영역 */
.action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}
.btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    background: #fff;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}
.btn-action:hover {
    border-color: var(--tool-primary);
    color: var(--tool-primary);
    background: var(--tool-bg);
}
.btn-action-primary {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
}
.btn-action-primary:hover {
    background: var(--tool-gradient);
    border: none;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(5, 150, 105, 0.3);
}

/* 서포트 카드 */
.support-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    overflow: hidden;
}
.support-card .card-hd {
    padding: 14px 18px;
    font-weight: 700;
    font-size: 15px;
    border-bottom: 1px solid #f1f3f5;
}
.support-card .card-bd {
    padding: 18px;
}
.support-subtitle {
    font-size: 15px;
    font-weight: 700;
    color: #343a40;
    margin: 18px 0 10px;
}

/* 아코디언 */
.pw-tool .accordion-button:not(.collapsed) {
    background-color: var(--tool-bg);
    color: var(--tool-primary);
    box-shadow: none;
}
.pw-tool .accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

/* 반응형 */
@media (max-width: 768px) {
    .pw-hero { padding: 28px 20px; border-radius: 12px; }
    .pw-hero h1 { font-size: 22px; }
    .pw-output-field { font-size: 18px; }
    .btn-action { flex: 1 1 calc(50% - 8px); }
}
