:root {
            --primary-blue: #2563eb;
            --primary-hover: #1d4ed8;
            --secondary-blue: #eff6ff;
            --dark-blue: #1e3a8a;
            --darker-blue: #172554;
            --success-green: #22c55e;
            --success-hover: #16a34a;
            --success-light: #dcfce7;
            --warning-orange: #f97316;
            --warning-hover: #ea580c;
            --text-dark: #1f2937;
            --text-muted: #6b7280;
            --bg-light: #f3f4f6;
            --bg-white: #ffffff;
            --border-color: #e5e7eb;
            --border-radius: 8px;
            --transition: all 0.2s ease;
            --font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }

        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            font-family: var(--font-family);
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* Top Bar & Header */
        .top-banner {
            background-color: var(--darker-blue);
            color: white;
            text-align: center;
            padding: 8px 15px;
            font-size: 0.85rem;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }

        .top-banner a {
            color: #93c5fd;
            text-decoration: none;
        }

        .top-banner a:hover {
            text-decoration: underline;
        }

        header {
            background-color: var(--primary-blue);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.25rem;
            font-weight: 700;
            text-decoration: none;
            color: white;
        }

        .logo-icon {
            background-color: white;
            color: var(--primary-blue);
            padding: 2px 6px;
            border-radius: 4px;
            font-size: 1.1rem;
            font-weight: 900;
        }

        .subtitle {
            font-weight: 400;
            font-size: 0.9rem;
            opacity: 0.9;
            margin-left: 5px;
        }

        nav {
            display: flex;
            gap: 20px;
        }

        nav a {
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 500;
            transition: opacity 0.2s;
        }

        nav a:hover {
            opacity: 0.8;
        }

        .nav-gen-btn {
            display: flex;
            align-items: center;
            gap: 5px;
        }

        /* Main Container */
        .container {
            max-width: 900px;
            margin: 30px auto;
            padding: 0 20px;
            display: flex;
            flex-direction: column;
            gap: 24px;
        }

        .ad-container {
                margin-bottom: 10px;
                margin-top: 10px;
            }
        /* Cards */
        .card {
            background-color: var(--bg-white);
            border-radius: var(--border-radius);
            box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
            padding: 24px;
        }

        .card-header {
            margin-bottom: 20px;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 5px;
        }

        /* Buttons */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            border-radius: 6px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
            font-family: inherit;
        }

        .btn:focus {
            outline: 2px solid var(--primary-blue);
            outline-offset: 2px;
        }

        .btn-primary {
            background-color: var(--primary-blue);
            color: white;
        }

        .btn-primary:hover {
            background-color: var(--primary-hover);
        }

        .btn-success {
            background-color: var(--success-green);
            color: white;
        }

        .btn-success:hover {
            background-color: var(--success-hover);
        }

        .btn-orange {
            background-color: var(--warning-orange);
            color: white;
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .btn-orange:hover {
            background-color: var(--warning-hover);
        }

        .btn-outline {
            background-color: white;
            color: var(--text-dark);
            border: 1px solid var(--border-color);
            padding: 8px 16px;
            font-size: 0.9rem;
        }

        .btn-outline:hover {
            background-color: var(--bg-light);
        }

        .btn-outline.active {
            background-color: var(--primary-blue);
            color: white;
            border-color: var(--primary-blue);
        }

        .btn-secondary {
            background-color: #6b7280;
            color: white;
            padding: 8px 12px;
            font-size: 0.85rem;
            width: 100%;
        }

        .btn-secondary:hover {
            background-color: #4b5563;
        }

        /* Generator Specific Styles */
        .quick-lengths {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-bottom: 24px;
        }

        .quick-lengths span {
            display: block;
            width: 100%;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 5px;
        }

        .length-control-group {
            margin-bottom: 24px;
        }

        .length-control-group > label {
            display: block;
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .length-slider-container {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .number-input-group {
            display: flex;
            align-items: center;
            border: 1px solid var(--border-color);
            border-radius: 6px;
            overflow: hidden;
        }

        .number-btn {
            background: var(--bg-light);
            border: none;
            padding: 8px 12px;
            cursor: pointer;
            color: var(--primary-blue);
            font-weight: bold;
            transition: var(--transition);
        }
        
        .number-btn:hover { background: #e5e7eb; }

        .number-input-group input[type="number"] {
            width: 50px;
            text-align: center;
            border: none;
            border-left: 1px solid var(--border-color);
            border-right: 1px solid var(--border-color);
            padding: 8px;
            font-size: 1rem;
            font-family: inherit;
            -moz-appearance: textfield;
        }

        .number-input-group input[type="number"]::-webkit-outer-spin-button,
        .number-input-group input[type="number"]::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        input[type="range"] {
            flex-grow: 1;
            -webkit-appearance: none;
            height: 6px;
            background: #e5e7eb;
            border-radius: 5px;
            outline: none;
        }

        input[type="range"]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-blue);
            cursor: pointer;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }

        input[type="range"]::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary-blue);
            cursor: pointer;
            border: none;
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
        }

        .checkboxes-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 24px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            font-size: 0.95rem;
            user-select: none;
        }

        .checkbox-label input[type="checkbox"] {
            appearance: none;
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            border: 2px solid var(--primary-blue);
            border-radius: 4px;
            background-color: white;
            display: grid;
            place-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .checkbox-label input[type="checkbox"]::before {
            content: "";
            width: 12px;
            height: 12px;
            transform: scale(0);
            transition: 120ms transform ease-in-out;
            box-shadow: inset 1em 1em white;
            background-color: white;
            transform-origin: center;
            clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
        }

        .checkbox-label input[type="checkbox"]:checked {
            background-color: var(--primary-blue);
        }

        .checkbox-label input[type="checkbox"]:checked::before {
            transform: scale(1);
        }

        .password-display-area {
            background-color: #f8fafc;
            border: 1px solid var(--border-color);
            border-radius: var(--border-radius);
            padding: 30px 20px;
            text-align: center;
            margin-bottom: 20px;
            position: relative;
        }

        .password-text {
            font-size: 2rem;
            font-weight: 500;
            color: var(--success-green);
            word-break: break-all;
            letter-spacing: 2px;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }

        .nav-arrows {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: calc(100% - 20px);
            display: flex;
            justify-content: space-between;
            left: 10px;
            pointer-events: none;
        }

        .nav-arrows svg {
            width: 20px;
            height: 20px;
            color: var(--border-color);
            pointer-events: auto;
            cursor: pointer;
        }

        .action-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 24px;
        }

        .strength-container {
            margin-top: 20px;
        }

        .strength-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
            font-size: 0.9rem;
        }

        .strength-label {
            display: flex;
            align-items: center;
            gap: 5px;
            color: var(--text-dark);
            font-weight: 600;
        }

        .strength-value {
            font-weight: 700;
        }

        .strength-bar-bg {
            height: 4px;
            background-color: var(--border-color);
            border-radius: 2px;
            overflow: hidden;
            margin-bottom: 12px;
        }

        .strength-bar-fill {
            height: 100%;
            width: 0%;
            transition: width 0.3s ease, background-color 0.3s ease;
        }

        .checklist {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .checklist li {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            color: var(--text-muted);
        }

        .checklist li.met {
            color: var(--success-green);
        }

        .checklist li svg {
            width: 14px;
            height: 14px;
        }

        /* Batch Generator */
        .batch-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .batch-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 15px;
        }

        .batch-item {
            background-color: var(--bg-light);
            border-radius: 6px;
            padding: 12px;
            border: 1px solid var(--border-color);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .batch-password {
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
            text-align: center;
            font-size: 1.1rem;
            word-break: break-all;
            padding: 10px 0;
            color: var(--text-dark);
        }

        /* Blog Section */
        .blog-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
        }

        .view-all {
            color: var(--primary-blue);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .blog-post-card {
            background-color: var(--secondary-blue);
            border-radius: var(--border-radius);
            padding: 20px;
            border-left: 4px solid var(--primary-blue);
        }

        .blog-post-title {
            color: var(--primary-blue);
            font-weight: 600;
            margin-bottom: 8px;
            display: block;
            text-decoration: none;
        }

        .blog-post-desc {
            font-size: 0.9rem;
            color: var(--text-muted);
            margin-bottom: 10px;
        }

        .read-more {
            color: var(--primary-blue);
            text-decoration: none;
            font-size: 0.9rem;
            display: inline-flex;
            align-items: center;
            gap: 4px;
        }

        /* Info Sections */
        .info-title {
            font-size: 1.25rem;
            font-weight: 700;
            color: var(--dark-blue);
            margin-bottom: 20px;
        }

        .how-to-list {
            list-style: none;
            counter-reset: my-awesome-counter;
        }

        .how-to-list li {
            margin-bottom: 20px;
            position: relative;
        }

        .how-to-title {
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 5px;
            color: var(--text-dark);
        }

        .how-to-desc {
            font-size: 0.95rem;
            color: var(--text-muted);
        }

        /* Table of Contents */
        .toc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
            list-style: none;
        }

        .toc-link {
            color: var(--primary-blue);
            text-decoration: none;
            font-size: 0.95rem;
            display: inline-flex;
            align-items: center;
        }

        .toc-link:hover {
            text-decoration: underline;
            color: var(--primary-hover);
        }

        /* Footer */
        footer {
            background-color: var(--primary-blue);
            color: white;
            padding: 40px 20px 20px;
            margin-top: 40px;
            text-align: center;
            font-size: 0.85rem;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-bottom: 15px;
            color: rgba(255,255,255,0.7);
        }

        .footer-links a {
            color: white;
            text-decoration: none;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        .footer-links span {
            user-select: none;
        }

        .copyright {
            color: rgba(255,255,255,0.8);
            margin-top: 20px;
        }

        /* Icons */
        svg {
            fill: currentColor;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            header {
                flex-direction: column;
                gap: 15px;
                padding: 15px;
            }
            
            nav {
                flex-wrap: wrap;
                justify-content: center;
            }

            .action-buttons {
                flex-direction: column;
            }
            
            .btn {
                width: 100%;
            }

            .length-slider-container {
                flex-direction: column;
                align-items: stretch;
            }

            .number-input-group {
                align-self: flex-start;
            }
        }