/* Password Strength Checker Styles */
.password-checker {
    --accent-color: #2B8D8F;
    --accent-hover: #35a3a5;
    --bg-primary: #01175E;
    --bg-secondary: #021d75;
    --text-primary: #ffffff;
    --text-secondary: #a8b4d4;
    --success-color: #2B8D8F;
    --warning-color: #ffaa00;
    --danger-color: #ff4444;
    --border-radius: 12px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 500px;
    margin: 0 auto;
}

.password-checker[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f4f8;
    --text-primary: #01175E;
    --text-secondary: #4a5568;
}

.psc-container {
    background: var(--bg-primary);
    padding: 28px;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(43, 141, 143, 0.2);
}

.psc-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 24px 0;
    letter-spacing: -0.02em;
}

/* Input field */
.psc-input-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.psc-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    padding: 16px;
    padding-right: 50px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.psc-input::placeholder {
    color: var(--text-secondary);
    font-family: system-ui, sans-serif;
    letter-spacing: normal;
}

.psc-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(43, 141, 143, 0.3);
}

.psc-toggle-visibility {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.psc-toggle-visibility:hover {
    color: var(--accent-color);
}

/* Strength meter */
.psc-strength-meter {
    margin-bottom: 24px;
}

.psc-strength-bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.psc-strength-fill {
    height: 100%;
    width: 0;
    transition: all 0.4s ease;
    border-radius: 4px;
    background: var(--text-secondary);
}

.psc-strength-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.psc-strength-text {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.psc-crack-time {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Criteria checklist */
.psc-criteria {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.psc-criteria-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.psc-criteria-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.psc-criteria-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
    transition: all 0.2s;
}

.psc-criteria-item.met {
    color: var(--success-color);
}

.psc-criteria-item.met .psc-criteria-icon {
    color: var(--success-color);
}

.psc-criteria-item.unmet {
    color: var(--danger-color);
}

.psc-criteria-item.unmet .psc-criteria-icon {
    color: var(--danger-color);
}

/* Details section */
.psc-details {
    margin-bottom: 20px;
}

.psc-details-toggle {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: left;
    transition: color 0.2s;
}

.psc-details-toggle:hover {
    color: var(--accent-color);
}

.psc-details-content {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.psc-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.psc-detail-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.psc-detail-row span:last-child {
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'SF Mono', monospace;
}

/* Privacy note */
.psc-privacy-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--accent-color);
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--bg-secondary);
}

/* Responsive */
@media (max-width: 480px) {
    .psc-container {
        padding: 20px;
    }

    .psc-input {
        font-size: 1rem;
        padding: 14px;
        padding-right: 45px;
    }

    .psc-title {
        font-size: 1.25rem;
    }

    .psc-strength-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
