.center-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    gap: 12px;
}

/* Password Strength Checker Styles - Matching Site Design */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    --space-4xl: 4rem;
    --space-5xl: 5rem;
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    --text-primary-color: #ffffff;
    --text-secondary-color: rgba(255, 255, 255, 0.8);
    --background-color: #000000;
    --primary-color: #4ade80;
    --accent-color: #22c55e;
    
    /* Typography Scale */
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    
    /* Font Weights */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;

    /* Password Strength Colors */
    --strength-very-weak: #ef4444;
    --strength-weak: #f97316;
    --strength-fair: #eab308;
    --strength-good: #22c55e;
    --strength-strong: #16a34a;
    --strength-very-strong: #15803d;
}

/* Background */
body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/desktop Bg image.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
}

/* Mobile background */
@media (max-width: 768px) {
    body {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/mobile Bg image.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

/* Back Button */
.back-button {
    position: absolute;
    top: 30px;
    left: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    z-index: 100;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
    color: white;
    text-decoration: none;
}

/* Header */
.page-header {
    padding: 120px 0 60px;
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    font-size: 14px;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.page-header h1 {
    font-size: var(--font-4xl);
    font-weight: var(--font-extrabold);
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.emoji-visible {
    font-size: 2.5rem;
    margin-right: 15px;
}

.page-header p {
    font-size: var(--font-lg);
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Tool Section */
.tool-section {
    padding: 40px 0 80px;
}

.password-checker-layout {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Password Input Card */
.password-input-card {
    padding: 30px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.tool-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.tool-name {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 5px;
    color: var(--text-primary-color);
}

.tool-description {
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
    line-height: 1.5;
}

.password-input-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
}

#passwordInput {
    width: 100%;
    padding: 16px 50px 16px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: var(--font-base);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

#passwordInput:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary-color);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--text-primary-color);
}

/* Strength Meter */
.strength-meter {
    margin-top: 15px;
}

.strength-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.strength-fill {
    height: 100%;
    width: 0%;
    background: var(--strength-very-weak);
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-label {
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    color: var(--text-secondary-color);
    text-align: center;
}

/* Input Controls */
.input-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.btn {
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: black;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Score Card */
.score-card {
    padding: 30px;
    text-align: center;
}

.score-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.score-circle {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring__circle {
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
    fill: transparent;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.score-number {
    font-size: var(--font-3xl);
    font-weight: var(--font-bold);
    color: var(--text-primary-color);
}

.score-total {
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
}

.score-grade {
    font-size: var(--font-lg);
    font-weight: var(--font-semibold);
    color: var(--text-secondary-color);
}

/* Criteria Card */
.criteria-card {
    padding: 30px;
}

.criteria-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.criterion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.criterion:last-child {
    border-bottom: none;
}

.criterion-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

.criterion-icon .fa-times {
    background: var(--strength-very-weak);
}

.criterion-icon .fa-check {
    background: var(--strength-strong);
}

.criterion-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.criterion-label {
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
}

.criterion-value {
    font-size: var(--font-xs);
    color: var(--text-secondary-color);
}

/* Crack Time Card */
.crack-time-card {
    padding: 30px;
}

.crack-time-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.crack-time-main {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.crack-time-value {
    font-size: var(--font-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary-color);
    margin-bottom: 8px;
}

.crack-time-description {
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
}

.crack-scenarios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scenario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}

.scenario-label {
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
}

.scenario-value {
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
}

/* Recommendations Card */
.recommendations-card {
    padding: 30px;
}

.recommendations-content {
    min-height: 150px;
}

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommendation {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.recommendation-icon {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 2px;
}

.recommendation-text {
    flex: 1;
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
    line-height: 1.4;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary-color);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.5;
}

.empty-state p {
    font-size: var(--font-sm);
    opacity: 0.8;
}

/* Generator Card */
.generator-card {
    padding: 30px;
    margin-top: 20px;
}

.generator-content {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.generator-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-group label {
    font-size: var(--font-sm);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
}

.length-control {
    display: flex;
    align-items: center;
    gap: 15px;
}

.length-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.length-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    appearance: none;
}

.length-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.length-value {
    font-size: var(--font-sm);
    font-weight: var(--font-semibold);
    color: var(--primary-color);
    min-width: 30px;
    text-align: center;
}

.checkboxes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
    transition: color 0.3s ease;
}

.checkbox-label:hover {
    color: var(--text-primary-color);
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 12px;
    font-weight: bold;
}

.generator-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: var(--font-3xl);
    font-weight: var(--font-bold);
    margin-bottom: 15px;
    color: var(--text-primary-color);
}

.section-description {
    font-size: var(--font-lg);
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: var(--font-xl);
    font-weight: var(--font-semibold);
    margin-bottom: 15px;
    color: var(--text-primary-color);
}

.feature-card p {
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* FAQ Section */
.faq {
    padding: 80px 0;
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
}

.faq-header h2 {
    font-size: var(--font-3xl);
    font-weight: var(--font-bold);
    margin-bottom: 15px;
    color: var(--text-primary-color);
}

.faq-header p {
    font-size: var(--font-lg);
    color: var(--text-secondary-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-question h3 {
    font-size: var(--font-lg);
    font-weight: var(--font-medium);
    color: var(--text-primary-color);
    margin: 0;
}

.faq-toggle {
    font-size: var(--font-xl);
    font-weight: var(--font-bold);
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 25px 25px;
    font-size: var(--font-sm);
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .back-button {
        top: 20px;
        left: 20px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .page-header {
        padding: 100px 0 40px;
    }

    .page-header h1 {
        font-size: var(--font-3xl);
    }

    .center-header {
        flex-direction: column;
        gap: 8px;
    }

    .emoji-visible {
        font-size: 2rem;
        margin-right: 0;
    }

    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .input-controls {
        flex-direction: column;
    }

    .generator-actions {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .card {
        border-radius: 12px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .tool-icon {
        align-self: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .card {
        padding: 20px !important;
    }

    .page-header h1 {
        font-size: var(--font-2xl);
    }

    .breadcrumb {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Strength-specific colors */
.strength-very-weak {
    color: var(--strength-very-weak);
}

.strength-weak {
    color: var(--strength-weak);
}

.strength-fair {
    color: var(--strength-fair);
}

.strength-good {
    color: var(--strength-good);
}

.strength-strong {
    color: var(--strength-strong);
}

.strength-very-strong {
    color: var(--strength-very-strong);
}

/* Animation classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.pulse {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
