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

.generator-container {
    max-width: 500px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

h1 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
}

.password-display {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.password-display input {
    flex: 1;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 18px;
    font-family: monospace;
    background: #f8f9fa;
}

.password-display input:focus {
    outline: none;
    border-color: #667eea;
}

.copy-btn {
    padding: 0 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s, background 0.3s;
}

.copy-btn:hover {
    background: #5a67d8;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #4CAF50;
}

.options {
    margin-bottom: 30px;
}

.option {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.option label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-size: 16px;
    cursor: pointer;
}

.option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.option input[type="number"] {
    width: 70px;
    padding: 8px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    margin-left: 10px;
}

.generate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 20px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.password-strength {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    margin: 20px 0;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.strength-weak {
    background: #f44336;
    width: 33%;
}

.strength-medium {
    background: #ff9800;
    width: 66%;
}

.strength-strong {
    background: #4CAF50;
    width: 100%;
}

.saved-passwords {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.saved-passwords h3 {
    color: #333;
    margin-bottom: 10px;
}

#savedList {
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.saved-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    margin: 5px 0;
    border-radius: 5px;
    font-family: monospace;
}

.saved-item button {
    padding: 3px 8px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.clear-btn {
    width: 100%;
    padding: 10px;
    background: #f44336;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.clear-btn:hover {
    background: #d32f2f;
}