/* Password Strength Analyzer Styles */
.tool-container {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

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

.tool-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.tool-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.tool-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 4rem;
}

@media (min-width: 768px) {
    .tool-content {
        grid-template-columns: 1fr 1fr;
    }
}

.input-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.input-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.input-group {
    display: flex;
    margin-bottom: 1rem;
}

.input-group input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
    font-family: 'JetBrains Mono', monospace;
    background: var(--input-bg);
    color: var(--text-primary);
}

.visibility-toggle {
    padding: 0.75rem 1rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background 0.2s;
}

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

.analyze-button {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.analyze-button:hover {
    background: var(--primary-hover);
}

.results-section {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.strength-meter {
    margin-bottom: 1.5rem;
}

.meter-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.meter-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.meter-fill {
    height: 100%;
    width: 0%;
    border-radius: 5px;
    transition: width 0.5s ease, background 0.5s ease;
}

.strength-text {
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.analysis-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.detail-card {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-card h3 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.detail-card p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.suggestions h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.suggestions ul {
    list-style: none;
    padding: 0;
}

.suggestions li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.suggestions li:last-child {
    border-bottom: none;
}

.suggestions li.placeholder {
    color: var(--text-secondary);
    font-style: italic;
}

.warning-box {
    display: flex;
    align-items: center;
    background: var(--warning-bg);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    color: var(--warning-text);
}

.warning-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.educational-content {
    max-width: 1000px;
    margin: 0 auto;
}

.educational-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.educational-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.edu-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.edu-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.edu-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Strength meter colors */
.meter-very-weak { background: #ff4d4d; }
.meter-weak { background: #ff8c4d; }
.meter-medium { background: #ffc44d; }
.meter-strong { background: #8cc474; }
.meter-very-strong { background: #4caf50; }

.text-very-weak { color: #ff4d4d; }
.text-weak { color: #ff8c4d; }
.text-medium { color: #ffc44d; }
.text-strong { color: #8cc474; }
.text-very-strong { color: #4caf50; }