body {
    background: #f5f7fa;
}

.password-tool-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
}

.result-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.result-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.result-box input {
    flex: 1;
    padding: 1.2rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: #333;
    background: #f8f9ff;
}

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

.password-strength {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.strength-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    width: 0;
    border-radius: 4px;
    transition: width 0.3s, background-color 0.3s;
}

#strengthText {
    font-size: 0.95rem;
    font-weight: 600;
    min-width: 100px;
    text-align: right;
}

.options-section {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.option-group {
    margin-bottom: 1.5rem;
}

.option-group:last-child {
    margin-bottom: 0;
}

.option-group h3 {
    color: #444;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-label input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #e0e0e0;
    border-radius: 4px;
    outline: none;
}

.option-label input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
}

.option-label input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.option-label span:first-child {
    min-width: 80px;
    color: #555;
    font-weight: 600;
}

.option-label span:last-child {
    min-width: 40px;
    text-align: right;
    color: #667eea;
    font-weight: bold;
    font-size: 1.2rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f5f7fa;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
}

.checkbox-label:hover {
    background: #e8ecf1;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-label span {
    color: #444;
    font-size: 0.95rem;
}

.action-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.copy-btn {
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102,126,234,0.3);
}

.copy-btn.copied {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-section {
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-section h3 {
    color: #065f46;
    margin-bottom: 1rem;
}

.info-section ul {
    padding-left: 1.5rem;
    margin: 0;
}

.info-section li {
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .password-tool-container {
        padding: 1rem;
    }
    
    .result-box {
        flex-direction: column;
    }
    
    .copy-btn {
        width: 100%;
    }
    
    .password-strength {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    #strengthText {
        text-align: left;
    }
    
    .option-label {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .option-label span:first-child,
    .option-label span:last-child {
        text-align: left;
    }
    
    .action-bar {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
