* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1e1b4b, #312e81);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.password-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    width: 100%;
    max-width: 400px;
}

h2 {
    font-size: 22px;
    margin-bottom: 20px;
    text-align: center;
    color: #a5b4fc;
}

.result-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 12px;
    word-break: break-all;
}

#password-display {
    font-size: 18px;
    letter-spacing: 1px;
    font-family: monospace;
}

#copy-btn {
    background: transparent;
    border: none;
    color: #a5b4fc;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

#copy-btn:hover {
    color: #fff;
}

.strength-indicator {
    font-size: 14px;
    margin-bottom: 20px;
    text-align: right;
    color: #94a3b8;
}

#strength-text {
    color: #facc15;
}

.settings {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.setting-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
    color: #cbd5e1;
}

.setting-item input[type="range"] {
    width: 100%;
    accent-color: #6366f1;
    cursor: pointer;
}

.checkbox-item {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
    cursor: pointer;
}

#generate-btn {
    width: 100%;
    background-color: #6366f1;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

#generate-btn:hover {
    background-color: #4f46e5;
}