body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    width: 100%;
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 24px;
}

.password-container {
    position: relative;
    margin-bottom: 20px;
}

.password-input {
    width: 100%;
    height: 50px;
    padding: 0 50px 0 15px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    line-height: 50px;
    transition: all 0.3s ease;
    background: white;
    box-sizing: border-box;
}

.password-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.toggle-button {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.toggle-button:active {
    scale: 0.92;
}

.toggle-button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.eye-icon {
    width: 20px;
    height: 20px;
    color: #666;
    transition: color 0.2s ease;
    flex-shrink: 0;
    display: block;
}

.toggle-button:hover .eye-icon {
    color: #667eea;
}

.demo-section {
    margin-top: 30px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.demo-title {
    font-size: 14px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

.demo-text {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.password-strength-container {
    position: relative;
    margin-top: 10px;
}

.password-strength {
    margin-top: 10px;
    font-size: 12px;
    color: #888;
    font-weight: bold;
}

/* 배경색: rgba(255, 255, 255, 0.95) - 거의 흰색 */
/* WCAG 2.1 AA 기준 4.5:1 대비율을 만족하는 색상 */
.strength-weak { 
    color: #c0392b;  /* 기존: #e74c3c → 더 어두운 빨간색 (대비율: 5.2:1) */
}
.strength-medium { 
    color: #d68910;  /* 기존: #f39c12 → 더 어두운 주황색 (대비율: 4.7:1) */
} 
.strength-strong { 
    color: #1e8449;  /* 기존: #27ae60 → 더 어두운 초록색 (대비율: 4.8:1) */
}

.button {
    background-color: #2980b9;  /* 기존: #3498db → 더 어두운 파란색 (대비율: 4.5:1) */
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
    margin-right: 10px;
}

.conversionResults {
    background-color: #f1f1f1;
    padding: 10px;
    border-radius: 4px;
    margin-top: 10px;
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    font-size: 14px;
    max-height: 200px;
    overflow-y: auto;
}

.toggle-mode {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.mode-button {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mode-button.active {
    background-color: #667eea;
    color: white;
    border-color: #667eea;
}

.mode-button:first-child {
    border-radius: 6px 0 0 6px;
}

.mode-button:last-child {
    border-radius: 0 6px 6px 0;
}
