* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0f0f;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #252525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #4ade80;
    --accent-dim: #22c55e;
    --border: #333;
    --danger: #ef4444;
    --warning: #f59e0b;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Progress Bar */
.progress-bar {
    background: var(--bg-tertiary);
    border-radius: 999px;
    height: 12px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

/* Provider Section */
.provider-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.section-title {
    text-align: center;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.provider-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.provider-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.provider-label:hover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
}

.provider-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--accent);
}

.provider-label span {
    color: var(--text-primary);
}

.provider-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
}

/* Filter Section (deprecated, keeping for compatibility) */
.filter-section {
    display: none;
}

.provider-filter {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem 2rem 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.2rem;
}

.provider-filter:hover {
    border-color: var(--accent);
}

.provider-filter:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.progress-fill {
    background: linear-gradient(90deg, var(--accent-dim), var(--accent));
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 999px;
}

.progress-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

#checkedCount {
    color: var(--accent);
    font-weight: 600;
}

/* Category Sections */
.category {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.category.hidden {
    display: none;
}

.category h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

/* Checklist Items */
.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.check-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: start;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.check-item:hover {
    background: #2a2a2a;
}

.check-item.checked {
    opacity: 0.6;
}

.check-item.checked label {
    text-decoration: line-through;
    text-decoration-color: var(--text-secondary);
}

/* Checkbox Styling */
.check-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--bg-primary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-item input[type="checkbox"]:hover {
    border-color: var(--accent);
}

.check-item input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.check-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--bg-primary);
    font-size: 14px;
    font-weight: bold;
}

/* Labels */
.check-item label {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.item-title {
    font-weight: 500;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Links */
.check-link {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 6px;
    transition: all 0.2s ease;
    align-self: center;
}

.check-link:hover {
    background: rgba(74, 222, 128, 0.2);
    color: #6ee7a0;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.reset-btn {
    background: transparent;
    border: 1px solid var(--danger);
    color: var(--danger);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.reset-btn:hover {
    background: var(--danger);
    color: white;
}

/* Password Security Check */
.password-check-container {
    max-width: 600px;
    margin: 0 auto;
}

.password-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.password-input {
    flex: 1;
    min-width: 250px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.password-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.2);
}

.toggle-password-btn {
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.2rem;
}

.toggle-password-btn:hover {
    border-color: var(--accent);
    background: rgba(74, 222, 128, 0.1);
}

.check-password-btn {
    background: var(--accent);
    border: none;
    color: var(--bg-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.check-password-btn:hover:not(:disabled) {
    background: #4ade80;
    transform: translateY(-1px);
}

.check-password-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.password-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.strength-indicator {
    text-align: center;
}

.strength-bar {
    background: var(--bg-tertiary);
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

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

.strength-fill.weak {
    background: var(--danger);
}

.strength-fill.fair {
    background: var(--warning);
}

.strength-fill.good {
    background: #3b82f6;
}

.strength-fill.strong {
    background: var(--accent);
}

.breach-result {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.breach-result.safe {
    background: rgba(34, 197, 94, 0.1);
    border-color: var(--accent);
}

.breach-result.breached {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
}

.breach-status {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.breach-details {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .check-item {
        grid-template-columns: auto 1fr;
        gap: 0.75rem;
    }

    .check-link {
        grid-column: 2;
        justify-self: start;
        margin-top: 0.5rem;
    }

    .category {
        padding: 1rem;
    }

    .password-input-group {
        flex-direction: column;
    }

    .password-input {
        min-width: 100%;
    }
}
