:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --accent: #64748b;
    --accent-hover: #475569;
    --border-color: #cbd5e1;
    
    --strength-weak: #ef4444;
    --strength-medium: #f59e0b;
    --strength-strong: #10b981;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

h1 {
    text-align: center;
    margin: 0 0 5px 0;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #94a3b8, #475569);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    font-size: 14px;
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    transition: background-color 0.4s ease;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.password-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px 75px 14px 16px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-main);
    font-size: 16px;
    font-family: 'Inter', monospace;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

input[type="password"]:focus,
input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.2);
}

.eye-icon {
    position: absolute;
    right: 15px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.eye-icon:hover {
    color: var(--text-main);
}

.copy-icon {
    position: absolute;
    right: 45px;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.copy-icon:hover {
    color: var(--text-main);
}

.strength-meter {
    height: 6px;
    background-color: #334155;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background-color: var(--strength-weak);
    transition: width 0.4s ease, background-color 0.4s ease;
}

.feedback-message {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 10px;
    line-height: 1.5;
}

#pwnedMessage {
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
    font-weight: 500;
}

/* Generator Styles */
.generator-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.slider-container {
    margin-bottom: 20px;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.checkbox-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    height: 20px;
    width: 20px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn {
    background-color: var(--accent);
    color: white;
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

.primary-btn:active {
    transform: translateY(0);
}
