* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Pardeep Kumar */
body {
    background-color: #121212;
    color: #ddd;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Raj */
nav.top-nav {
    width: 100%;
    background: #1e1e1e;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
}

nav.top-nav button {
    background-color: #333;
    border: none;
    color: #ddd;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

nav.top-nav button:hover {
    background-color: #007bff;
    color: #fff;
}

/* Main Content */
main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.box {
    background: #1e1e1e;
    padding: 30px 40px;
    border-radius: 10px;
    width: 350px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    position: relative;
}

.box h2 {
    margin-bottom: 20px;
    font-weight: 600;
    color: #fff;
    text-align: center;
}

.box input[type="password"] {
    width: 100%;
    padding: 12px 40px 12px 15px;
    font-size: 1rem;
    border-radius: 6px;
    border: none;
    background: #333;
    color: #eee;
    outline: none;
}

/* Eye Icon */
.eye-icon {
    position: absolute;
    right: 45px;
    top: 82px;
    cursor: pointer;
    color: #bbb;
    transition: color 0.3s ease;
}

.eye-icon:hover {
    color: #fff;
}

/* Strength Meter and Time */
#crack-time {
    margin-top: 12px;
    font-size: 0.9rem;
    text-align: center;
    color: #ddd;
}

.password-strength {
    height: 8px;
    border-radius: 4px;
    margin: 10px 0 5px 0;
    background: #222;
    box-shadow: inset 0 0 5px #000;
}

/* Footer Styling */
footer {
    background: #1e1e1e;
    color: #ddd;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 0.9rem;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.7);
}

footer .footer-left,
footer .footer-center,
footer .footer-right {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 5px 0;
}

footer a {
    color: #ddd;
    text-decoration: none;
    padding: 6px 12px;
    background: #333;
    border-radius: 5px;
    transition: background 0.3s ease;
}

footer a:hover {
    background: #007bff;
    color: #fff;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav.top-nav {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .box {
        width: 90%;
        max-width: 400px;
    }
}