:root {
    /* Light theme */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --card-bg: #ffffff;
    --text-color: #2c3e50;
    --border-color: #aaaaaa;
    --box-color: #82cbec;
    --shadow-color: rgba(3, 163, 255, 0.1);
    --border-radius: 10px;
    --transition-speed: 0.3s;
    --defined-color: #016FCD ;

}

[data-theme="dark"] {
    --primary-color: #1a1f36;
    --secondary-color: #4a9eff;
    --defined-color: #016FCD;
    --accent-color: #ff6b6b;
    --background-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #e2e8f0;
    --border-color: #334155;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.navbar {
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px var(--shadow-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

.logo-img {
    max-height: 50px; /* Adjust the height as needed */
    height: auto;
    width: auto;
    margin-right: 10px; /* Space between the logo and the text */
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--defined-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--defined-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--accent-color);
}

#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.2rem;
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

#theme-toggle:hover {
    color: var(--secondary-color);
}

main {
    margin-top: 80px;
    padding: 2rem;
}

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

.hero h1 {
    font-size: 2.5rem;
    color: var(--defined-color);
    margin-bottom: 1rem;
}

.hero p {
    color: var(--text-color);
    font-size: 1.1rem;
    opacity: 0.8;
}

.password-checker {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: background-color var(--transition-speed);
    border: 0.1px solid var( --box-color);

}


input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

input[type="password"]::-webkit-credentials-auto-fill-button {
    display: none;
    visibility: hidden;
}

input[type="password"]::-webkit-clear-button {
    display: none;
    visibility: hidden;
}

input[type="password"]::-webkit-inner-spin-button,
input[type="password"]::-webkit-outer-spin-button {
    display: none;
    visibility: hidden;
}


.password-input-container {
    margin-bottom: 2rem;
}

.password-input-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--box-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    transition: border-color var(--box-color), background-color var(--transition-speed);
}

.password-field input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-color);
    opacity: 0.6;
    transition: color var(--transition-speed);
}

.toggle-password:hover {
    opacity: 1;
}

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

.meter-bar {
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.meter-fill {
    height: 100%;
    width: 0;
    background-color: #ddd;
    transition: all var(--transition-speed);
}

.strength-text {
    font-size: 0.9rem;
    color: var(--text-color);
}

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

.crack-time,
.entropy-score {
    background-color: var(--background-color);
    padding: 1rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.crack-time i,

.entropy-score i {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.crack-time-details,
.entropy-details {
    flex: 1;
}

.feedback-text {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    text-align: center;
}

.feedback-text::before {
    content: "Tip: ";
    color: #007BFF;
    font-weight: bold;
}

.feedback-text strong {
    color: #333;
    font-weight: bold;
}

.crack-time-details span,
.entropy-details span {
    display: block;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.crack-time-value,
.entropy-value {
    display: block;
    font-size: 1.1rem;
    margin: 0.2rem 0;
}

.crack-method {
    display: block;
    font-size: 0.8rem;
    color: var(--text-color);
    opacity: 0.6;
}

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

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

.req-item i {
    font-size: 0.8rem;
    color: var(--border-color);
}

.req-item.valid i {
    color: #2ecc71;
}

.header{
    color: #016FCD;
}


.features {
    max-width: 1200px;
    margin: 4rem auto;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

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

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px var(--shadow-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}


.security-tips {
    max-width: 1200px;
    margin: 4rem auto;
}

.security-tips h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

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

.tip-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px var(--shadow-color);
    transition: transform 0.3s;
}

.tip-card:hover {
    transform: translateY(-5px);
}

.tip-card.error i {
    color: var(--accent-color);
}

.tip-card.success i {
    color: #2ecc71;
}

.tip-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.tip-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.tip-card p {
    color: var(--text-color);
    opacity: 0.8;
}

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 3rem 2rem 1rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color var(--transition-speed);
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 2rem auto 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-color);
    margin: 15% auto;
    padding: 2rem;
    border-radius: var(--border-radius);
    max-width: 600px;
    position: relative;
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.modal-body {
    margin-top: 1.5rem;
}

.modal-body h3 {
    margin: 1.5rem 0 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    opacity: 0.8;
}

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

    .nav-links {
        gap: 1rem;
    }

    .password-checker {
        padding: 1.5rem;
    }

    .detailed-analysis {
        grid-template-columns: 1fr;
    }

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

    .feature-cards,
    .tips-grid {
        grid-template-columns: 1fr;
    }
}