@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes slideIn {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
    transition: all 0.3s ease;
}

body {
    background-color: #1a1a1a;
    color: #fff;
    min-height: 100vh;
}

.navbar {
    background: #2d2d2d;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4CAF50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: #4CAF50;
    transform: translateY(-2px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.password-section {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.password-input-container {
    position: relative;
    margin: 2rem 0;
}

.password-input {
    width: 100%;
    padding: 1.2rem;
    background: #1a1a1a;
    border: 2px solid #444;
    color: #fff;
    border-radius: 10px;
    font-size: 1.1rem;
    transition: all 0.3s;
}

.password-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
    outline: none;
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.2rem;
}

.strength-bar {
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    margin: 1rem 0;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    background: #717171;
    border-radius: 50%;
    margin-left: 0.5rem;
    cursor: pointer;
    font-size: 0.7rem;
    text-decoration: none;
    color: white;
    opacity: 0.6;
}

.info-icon:hover {
    opacity: 1;
    transform: scale(1.1);
    background: #45a049;
}

.strength-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.strength-column {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.strength-column:hover {
    transform: translateY(-5px);
}

.strength-column h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.parameter-list li {
    list-style: none;
    padding: 0.8rem 0;
    color: #888;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.parameter-list li.met {
    color: #4CAF50;
}

.parameter-list li.met::before {
    content: "✓";
    color: #4CAF50;
}

.score-display {
    text-align: center;
    font-size: 2.5rem;
    font-weight: bold;
    margin: 1rem 0;
    color: #4CAF50;
}

.crack-time {
    text-align: center;
    font-size: 1.2rem;
    margin: 1rem 0;
}

.review {
    font-style: italic;
    line-height: 1.6;
    color: #ccc;
}

.generator-section {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.5s ease-out;
}

.generator-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.generated-password-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.generated-password {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #444;
    color: #fff;
    border-radius: 8px;
    font-family: monospace;
}

.btn {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.about-section {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.about-section.active {
    display: block;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-card h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
}

.about-card p {
    line-height: 1.6;
    color: #ccc;
}

@media (max-width: 768px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 1rem;
    }

    .strength-grid {
        grid-template-columns: 1fr;
    }

    .generated-password-container {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

.hidden {
    display: none;
}

#passwordOutput {
    opacity: 0;
    height: 0;
    transition: all 0.3s ease;
}

#passwordOutput.visible {
    opacity: 1;
    height: auto;
    margin-top: 1rem;
}