﻿/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* MyPassword Theme Colors */
    --primary: #D32F2F;
    /* Red Security/Alert */
    --primary-light: #FF6659;
    --primary-dark: #9A0007;
    --accent: #212121;
    /* Dark Grey */

    --text-primary: #212121;
    --text-secondary: #616161;
    --text-tertiary: #9E9E9E;

    --border: #E0E0E0;
    --bg: #FFFFFF;
    --bg-secondary: #F5F5F5;

    --success: #2E7D32;
    --warning: #F57C00;
    --error: #C62828;

    --shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header */
header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 6px 10px;
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
}

.lang-switch {
    display: flex;
    gap: 5px;
    background: var(--bg-secondary);
    padding: 4px;
    border-radius: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.2s;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 80px;
    background: linear-gradient(to bottom, #ffffff, #FFEBEE);
    /* Light red tint */
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-tag {
    display: inline-block;
    background: #FFEBEE;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid #FFCDD2;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 16px;
    border-radius: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-icon {
    color: var(--success);
    font-weight: bold;
}

/* Generator Card - Floating Effect */
.generator-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: -40px;
    padding: 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Tabs Navigation */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    background: var(--bg-secondary);
    border-radius: 16px 16px 0 0;
}

.tab {
    flex: 1;
    padding: 18px 24px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tab i {
    font-size: 1.2rem;
}

.tab:hover {
    background: rgba(211, 47, 47, 0.05);
    color: var(--primary);
}

.tab.active {
    background: white;
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 40px;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tool Introduction */
.tool-intro {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border);
}

.tool-intro h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.tool-intro p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Elements */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: var(--bg);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    cursor: pointer;
    user-select: none;
    font-size: 0.95rem;
}

.action-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-btn:hover {
    background: var(--primary-dark);
    box-shadow: var(--shadow);
}

/* Result Display */
.result-display {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed var(--border);
}

.password-box {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    word-break: break-all;
    text-align: center;
    border: 2px solid var(--border);
    margin-bottom: 15px;
    color: var(--text-primary);
    font-weight: 600;
}

.strength-bar-container {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-bottom: 15px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.copy-btn {
    background: white;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--bg-secondary);
}

/* MyCheck Specifics */
.hacking-animation {
    background: #000;
    color: #0f0;
    padding: 20px;
    border-radius: var(--radius);
    font-family: 'Courier New', monospace;
    margin-bottom: 20px;
    text-align: center;
    border: 2px solid #333;
}

.matrix-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    text-shadow: 0 0 5px #0f0;
}

.progress-bar {
    height: 4px;
    background: #333;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #0f0;
    width: 0%;
    animation: loadHack 1.5s ease-in-out forwards;
}

@keyframes loadHack {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.result-card {
    background: var(--bg-secondary);
    padding: 15px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
}

.result-card i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.result-card h4 {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.time-val {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #FFEBEE;
    /* Light Red */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: 60px 0;
    background: white;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 20px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 0 auto 20px;
}

.step-card h3 {
    margin-bottom: 10px;
    color: var(--text-primary);
}

.step-card p {
    color: var(--text-secondary);
}

/* Explanation / Guide */
.explanation {
    padding: 60px 0;
    background: var(--bg-secondary);
}

.explanation h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.explanation-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-secondary);
}

.explanation-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* FAQ */
.faq-section {
    padding: 60px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-dark);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 20px;
}

.faq-item {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.faq-item h4 {
    color: var(--primary-dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Footer */
footer {
    background: #f1f3f5;
    padding: 60px 0 20px;
    margin-top: auto;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-dark);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        justify-content: center;
    }

    .generator-card {
        padding: 0;
    }

    .tab-content {
        padding: 20px;
    }
}
/* Range Slider (Length Input) - Modern Style */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, var(--primary) 0%, var(--primary) 50%, var(--border) 50%, var(--border) 100%);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 12px 0;
}

input[type="range"]:hover {
    background: linear-gradient(to right, var(--primary-light) 0%, var(--primary-light) 50%, #d0d0d0 50%, #d0d0d0 100%);
}

/* Webkit (Chrome, Safari, Edge) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.5);
    border-width: 4px;
}

input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(1.05);
    background: var(--primary);
}

/* Firefox */
input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.5);
    border-width: 4px;
}

input[type="range"]::-moz-range-thumb:active {
    transform: scale(1.05);
    background: var(--primary);
}

input[type="range"]::-moz-range-track {
    background: transparent;
    border: none;
    height: 8px;
}

/* Microsoft Edge/IE */
input[type="range"]::-ms-thumb {
    width: 24px;
    height: 24px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
    transition: all 0.2s ease;
}

input[type="range"]::-ms-track {
    width: 100%;
    height: 8px;
    background: transparent;
    border-color: transparent;
    color: transparent;
}

input[type="range"]::-ms-fill-lower {
    background: var(--primary);
    border-radius: 10px;
}

input[type="range"]::-ms-fill-upper {
    background: var(--border);
    border-radius: 10px;
}
