/* Password Strength Checker Styles */
:root {
    --bg: #0a0a14;
    --surface: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.07);
    --text: #f1f5f9;
    --text-muted: #64748b;
    --accent: #6366f1;
    --red: #ef4444;
    --orange: #f97316;
    --yellow: #eab308;
    --lime: #84cc16;
    --green: #10b981;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    background-image: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}

.tool-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

.back-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--text);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: var(--accent);
}

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

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
}

.header-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--accent);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f1f5f9, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tool-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
}

/* Input Card */
.input-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
    margin-bottom: 1.25rem;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
}

.input-icon {
    padding: 0 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

#pwdInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    padding: 1rem 0;
    font-size: 1.2rem;
    font-family: 'Fira Code', monospace;
    outline: none;
}

#pwdInput::placeholder {
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
}

.toggle-vis {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0 1rem;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.toggle-vis:hover {
    color: var(--text);
}

/* Strength Bar */
.strength-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.4s ease, background 0.4s ease;
}

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

.strength-label {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
}

.entropy-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: 'Fira Code', monospace;
}

/* Results Grid */
.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.card-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

/* Crack Table */
.crack-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.crack-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
}

.crack-row:first-child {
    border: none;
    padding: 0;
}

.crack-scenario {
    color: var(--text-muted);
}

.crack-time {
    font-weight: 700;
    font-family: 'Fira Code', monospace;
}

/* Char Checks */
.char-checks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    flex-shrink: 0;
}

.check-icon.pass {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.check-icon.fail {
    background: rgba(100, 116, 139, 0.15);
    color: var(--text-muted);
}

/* Entropy */
.entropy-card {
    display: flex;
    flex-direction: column;
}

.entropy-display {
    text-align: center;
    padding: 1rem 0;
}

.entropy-val {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.entropy-sub {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.entropy-compare {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
    margin-top: auto;
}

/* Suggestions */
.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.suggestions-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.suggestions-list li i {
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Privacy Footer */
.privacy-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.12);
    border-radius: 10px;
}

.privacy-footer i {
    color: #10b981;
}

@media (max-width:700px) {
    .results-grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }
}