:root {
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --bg: #f1f5f9;
    --card-bg: #ffffff;
    --text: #1e293b;
    --border: #e2e8f0;
    --success: #22c55e;
}

* { box-sizing: border-box; font-family: 'Inter', system-ui, -apple-system, sans-serif; }

body {
    background-color: var(--bg);
    color: var(--text);
    display: flex;
    justify-content: center;
    padding: 15px;
    margin: 0;
    min-height: 100vh;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 480px;
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

h1 { font-size: 1.4rem; margin: 0 0 1.5rem 0; text-align: center; color: var(--primary); letter-spacing: -0.5px; }

.setting-group { margin-bottom: 1.25rem; }

.label-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
label { font-weight: 600; font-size: 0.85rem; color: #64748b; text-transform: uppercase; }
.val-badge { background: var(--primary); color: white; padding: 2px 8px; border-radius: 10px; font-size: 0.8rem; }

input[type="range"] { width: 100%; height: 6px; border-radius: 5px; appearance: none; background: var(--border); outline: none; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; background: var(--primary); border-radius: 50%; cursor: pointer; border: 2px solid white; box-shadow: 0 0 5px rgba(0,0,0,0.1); }

.checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 1.5rem; }
.checkbox-item {
    display: flex; align-items: center; background: #fff; border: 1px solid var(--border);
    padding: 10px; border-radius: 0.75rem; cursor: pointer; font-size: 0.9rem; transition: all 0.2s;
}
.checkbox-item:has(input:checked) { border-color: var(--primary); background: #f5f3ff; }
.checkbox-item input { margin-right: 10px; accent-color: var(--primary); width: 16px; height: 16px; }

.refresh-btn {
    width: 100%; background: var(--primary); color: white; border: none; padding: 12px;
    border-radius: 0.75rem; font-weight: 600; font-size: 1rem; cursor: pointer;
    margin-bottom: 1.5rem; transition: background 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px;
}
.refresh-btn:hover { background: var(--primary-hover); }

.password-list { display: flex; flex-direction: column; gap: 8px; }
.pw-item {
    display: flex; align-items: center; background: var(--bg); padding: 8px 12px;
    border-radius: 0.75rem; border: 1px solid transparent; transition: 0.2s;
}
.pw-item:hover { border-color: var(--border); background: white; }
.pw-text {
    flex-grow: 1; font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem; word-break: break-all; color: #334155;
}

.copy-btn {
    background: white; border: 1px solid var(--border); color: var(--text);
    padding: 6px 10px; border-radius: 0.5rem; cursor: pointer; font-size: 0.75rem;
    margin-left: 10px; white-space: nowrap; transition: all 0.2s;
}
.copy-btn:hover { border-color: var(--primary); color: var(--primary); }
.copy-btn.copied { background: var(--success); color: white; border-color: var(--success); }

.strength-container { height: 4px; background: var(--border); border-radius: 2px; margin-top: 8px; overflow: hidden; }
#strength-bar { height: 100%; width: 0%; transition: width 0.4s ease, background-color 0.4s; }
