
/* 🔐 Universal Passcode Generator - Main Styles (Consolidated) */

/* Global Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}


        /* Landing Page Styles */
        .landing-container {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
            text-align: center;
        }

        .landing-title {
            font-size: clamp(2.5rem, 8vw, 4rem);
            font-weight: bold;
            margin-bottom: 15px;
            color: white;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
        }

        .landing-subtitle {
            font-size: clamp(1.1rem, 4vw, 1.4rem);
            margin-bottom: 40px;
            color: rgba(255, 255, 255, 0.9);
            max-width: 600px;
            line-height: 1.4;
        }

        .action-buttons {
            display: flex;
            gap: 30px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            max-width: 900px;
            width: 100%;
        }

        .action-button {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            width: clamp(200px, 30vw, 260px);
            height: clamp(180px, 30vh, 200px);
            background: rgba(255, 255, 255, 0.95);
            border: none;
            border-radius: 20px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: clamp(0.9rem, 3vw, 1.1rem);
            font-weight: 600;
            color: #333;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
            backdrop-filter: blur(10px);
        }

        .action-button:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
            background: rgba(255, 255, 255, 1);
        }

        /* Burgundy Technical Audit Button */
        .action-button.audit-button {
            background: linear-gradient(135deg, #722F37 0%, #8B1538 100%);
            color: white;
        }

        .action-button.audit-button:hover {
            background: linear-gradient(135deg, #8B1538 0%, #A0174A 100%);
            transform: translateY(-5px);
            box-shadow: 0 15px 35px rgba(114, 47, 55, 0.4);
        }

        .action-button.audit-button .action-text {
            color: white;
        }

        .action-button.audit-button .action-desc {
            color: rgba(255, 255, 255, 0.9);
        }

        .action-icon {
            font-size: clamp(2.5rem, 8vw, 4rem);
            margin-bottom: 15px;
        }

        .action-text {
            font-size: clamp(1.2rem, 4vw, 1.4rem);
            font-weight: bold;
            margin-bottom: 8px;
            color: #1976d2;
        }

        .action-desc {
            font-size: clamp(0.8rem, 2.5vw, 0.95rem);
            opacity: 0.7;
            text-align: center;
            line-height: 1.3;
            padding: 0 15px;
        }

        /* Logo Container Styles - Mobile Friendly */
        .logo-container {
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 30px;
            padding: 20px;
            /* Much lighter background for better logo visibility */
            background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.8) 100%);
            border-radius: 20px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255,255,255,0.3);
            box-shadow: 0 8px 32px rgba(0,0,0,0.1);
            width: 100%;
            max-width: 600px;
            min-height: 120px;
        }

        .logo {
            width: 100%;
            height: auto;
            max-width: 400px;
            max-height: 120px;
            object-fit: contain;
            filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
        }

        /* Mobile logo optimizations */
        @media (max-width: 768px) {
            .logo-container {
                margin-bottom: 20px;
                padding: 15px;
                max-width: 95%;
                min-height: 80px;
                border-radius: 15px;
            }

            .logo {
                max-width: 300px;
                max-height: 80px;
            }
        }

        @media (max-width: 480px) {
            .logo-container {
                margin-bottom: 15px;
                padding: 10px;
                min-height: 60px;
                border-radius: 12px;
            }

            .logo {
                max-width: 250px;
                max-height: 60px;
            }
        }

        /* Main Application Styles - Bounded height, auto scroll only when needed */
        .main-app {
            display: none;
            height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            padding: 0;
            margin: 0;
            box-sizing: border-box;
            overflow-y: auto;
            overflow-x: hidden;
            padding-bottom: 70px !important; /* Space for navigation */
        }

        .app-header {
            background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
            color: white;
            padding: 15px;
            text-align: center;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }

        .app-title {
            font-size: 1.8rem;
            font-weight: bold;
        }

        /* Flying Navigation & Step Indicator - Fixed at bottom */
        .flying-navigation {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            width: 100% !important;
            background: rgba(255, 255, 255, 0.95) !important;
            padding: 8px 20px !important;
            box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
            backdrop-filter: blur(10px) !important;
            z-index: 99999 !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
            height: 55px !important;
            min-height: 55px !important;
            max-height: 55px !important;
        }

        .nav-center-group {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .step-dots {
            display: flex;
            gap: 12px;
            align-items: center;
        }

        .step-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            background: #e0e0e0;
            transition: all 0.3s ease;
            cursor: default;
        }

        .step-dot.active {
            background: #1976d2;
            transform: scale(1.4);
        }

        .step-dot.completed {
            background: #4caf50;
        }

        /* Navigation buttons in flying nav - improved height and width */
        .flying-navigation .nav-btn {
            padding: 16px 28px;
            border: none;
            border-radius: 10px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
            min-height: 48px;
            min-width: 120px;
            width: 120px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            letter-spacing: 0.5px;
        }

        .flying-navigation .nav-btn.home {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .flying-navigation .nav-btn.next {
            background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%);
            color: white;
        }

        .flying-navigation .nav-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }

        .flying-navigation .nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        /* Removed redundant nav-btn styles - using flying-navigation specific styles only */

        /* Step navigation buttons */
        .step-nav-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 20px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.8rem;
            display: flex;
            align-items: center;
            gap: 4px;
            background: #1976d2;
            color: white;
            min-width: 80px;
            justify-content: center;
        }

        .step-nav-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 3px 10px rgba(25, 118, 210, 0.3);
        }

        .step-nav-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
        }

        .step-nav-btn.prev {
            background: #607d8b;
        }

        .step-nav-btn.next {
            background: #1976d2;
        }

        /* Step Content Styles - Only outermost container has padding */
        .step-content {
            display: none;
            background: transparent;
            margin: 5px 20px;
            max-width: none;
            width: calc(100% - 40px);
            padding: 3px;
            border-radius: 8px;
            box-sizing: border-box;
            margin-bottom: 10px;
        }

        .step-content.active {
            display: block;
        }

        .warning-banner {
            text-align: center;
            color: #d32f2f;
            font-weight: bold;
            font-size: 1.3rem;
            line-height: 1.4;
            margin-bottom: 25px;
            background: rgba(255, 255, 255, 0.9);
            padding: 15px;
            border-radius: 8px;
            backdrop-filter: blur(10px);
        }

        .warning-subtitle {
            font-size: 1rem;
        }

        .step-title {
            font-size: 1.8rem;
            font-weight: bold;
            color: white;
            margin-bottom: 20px;
            text-align: center;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        }

        .step-description {
            color: white;
            margin-bottom: 25px;
            text-align: center;
            line-height: 1.5;
            font-size: 1.1rem;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        /* Security Options Styles */
        .security-options {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            margin-top: 120px;
        }

        .security-option-container {
            flex: 1;
            position: relative;
        }

        .security-option {
            background: linear-gradient(145deg, #f8f9fa, #e9ecef);
            border: 3px solid #dee2e6;
            border-radius: 15px;
            padding: 25px !important;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            width: 100%;
            backdrop-filter: blur(10px);
            height: 200px !important;
            min-height: 200px !important;
            max-height: 200px !important;
            display: flex !important;
            flex-direction: column !important;
            justify-content: center !important;
            align-items: center !important;
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        }

        .security-option:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .security-option.selected {
            border-color: #1976d2;
            background: #e3f2fd;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(25, 118, 210, 0.2);
        }

        .security-option-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            margin-top: -0.6rem;
        }

        .security-option-title {
            font-size: 1.2rem;
            font-weight: bold;
            color: #1976d2;
            margin-bottom: 10px;
        }

        .security-option-desc {
            font-size: 0.9rem;
            color: #666;
            line-height: 1.4;
        }

        .security-option-help {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 32px;
            height: 32px;
            border-radius: 6px;
            background: rgba(255, 152, 0, 0.9);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            cursor: help;
            transition: all 0.3s ease;
            border: 2px solid #ff9800;
            box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
        }

        .security-option-help:hover {
            color: #f57c00;
            transform: translateX(-50%) scale(1.1);
        }

        .security-option-help::before {
            content: '?';
            font-size: 18px;
            font-weight: bold;
        }

        /* Mobile help button optimization */
        @media (max-width: 768px) {
            .security-options {
                flex-direction: column;
            }

            .security-option-container {
                display: block;
            }

            .security-option {
                width: 100%;
            }

            .security-option-help {
                display: none;
            }
        }

        /* Content Sections - Minimal inner padding */
        .content-section {
            background: #f8f9fa;
            border-radius: 12px;
            padding: 0;
            margin: 0;
            border: 2px dashed #ddd;
            min-height: auto;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #999;
            font-style: italic;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            body {
                padding: 2px;
            }

            .step-navigation,
            .step-content {
                margin: 8px;
                padding: 15px;
                border-radius: 10px;
            }

            .content-section {
                padding: 0;
                margin: 0;
                border-radius: 8px;
            }

            /* Passphrase section gets minimal mobile padding */
            .step-content .passphrase-container {
                padding: 2px;
                margin: 0;
            }

            /* Better mobile text sizes */
            .step-title {
                font-size: 1.4rem;
            }

            .step-description {
                font-size: 1rem;
            }

            .warning-banner {
                font-size: 1.1rem;
                padding: 15px;
                border-radius: 8px;
                background: rgba(255, 193, 7, 0.1);
                border: 1px solid rgba(255, 193, 7, 0.3);
            }

            .action-buttons {
                flex-direction: column;
                align-items: center;
                gap: 20px;
                width: 100%;
                padding: 0 10px;
            }

            .action-button {
                width: min(320px, 95vw);
                height: 180px;
            }

            .landing-container {
                min-height: 100vh;
                padding: 15px;
                overflow-y: auto;
                justify-content: center;
                display: flex;
                flex-direction: column;
            }

            .landing-title {
                font-size: clamp(2.2rem, 8vw, 3.5rem);
                margin-bottom: 15px;
            }

            .landing-subtitle {
                font-size: clamp(1.1rem, 4vw, 1.3rem);
                margin-bottom: 30px;
            }

            /* Ensure flying navigation uses same settings as desktop for consistency */
            .flying-navigation {
                position: fixed !important;
                bottom: 0 !important;
                left: 0 !important;
                right: 0 !important;
                width: 100% !important;
                background: rgba(255, 255, 255, 0.95) !important;
                padding: 8px 20px !important;
                box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
                backdrop-filter: blur(10px) !important;
                z-index: 99999 !important;
                display: flex !important;
                align-items: center !important;
                justify-content: center !important;
                border-top: 1px solid rgba(255, 255, 255, 0.3) !important;
                height: 55px !important;
                min-height: 55px !important;
                max-height: 55px !important;
                visibility: visible !important;
                opacity: 1 !important;
            }

            /* Mobile navigation buttons - improved height and width */
            .flying-navigation .nav-btn {
                padding: 14px 24px;
                border: none;
                border-radius: 10px;
                font-weight: 700;
                cursor: pointer;
                transition: all 0.3s ease;
                font-size: 15px;
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                white-space: nowrap;
                min-height: 44px;
                min-width: 110px;
                width: 110px;
                box-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
                letter-spacing: 0.3px;
            }

            /* Mobile app header - minimal side spacing like content */
            .app-header {
                padding: 12px 5px;
                margin: 0;
            }

            .security-options {
                flex-direction: column;
            }

            .main-app {
                margin: 0;
                width: 100%;
                overflow-x: hidden;
                padding-bottom: 70px !important; /* Ensure space for navigation */
            }

            .step-content {
                margin: 0;
                padding: 5px;
                width: 100%;
                border-radius: 0;
                margin-bottom: 70px !important; /* Add space for flying navigation */
            }

            /* Better mobile spacing */
            .app-header {
                padding: 12px;
            }

            .app-title {
                font-size: 1.5rem;
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            body {
                padding: 1px;
            }

            .landing-container {
                padding: 10px;
            }

            .step-content {
                margin: 0;
                padding: 5px;
                border-radius: 0;
                margin-bottom: 70px !important; /* Add space for flying navigation */
            }

            /* Ensure navigation is visible on mobile - no overrides */
            .flying-navigation {
                display: flex !important;
                position: fixed !important;
                bottom: 0 !important;
                z-index: 99999 !important;
            }

            .content-section {
                padding: 0;
                margin: 0;
                border-radius: 6px;
            }

            .step-title {
                font-size: 1.2rem;
            }

            .step-description {
                font-size: 0.9rem;
            }

            .warning-banner {
                font-size: 1rem;
                padding: 12px;
            }

            /* Removed redundant nav-btn mobile override */
        }


        /* Help Tooltip for Security Options */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltiptext {
            visibility: hidden;
            width: 250px;
            background-color: #333;
            color: #fff;
            text-align: center;
            border-radius: 6px;
            padding: 10px;
            position: absolute;
            z-index: 1000;
            bottom: 125%;
            left: 50%;
            margin-left: -125px;
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.8rem;
            line-height: 1.3;
        }

        .tooltip:hover .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        .tooltip.active .tooltiptext {
            visibility: visible;
            opacity: 1;
        }

        /* Mobile tooltip optimizations */
        @media (max-width: 768px) {
            .tooltip .tooltiptext {
                width: 280px;
                margin-left: -140px;
                bottom: 150%;
                font-size: 0.9rem;
                padding: 15px;
                box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
            }

            .tooltip .tooltiptext::after {
                content: '';
                position: absolute;
                top: 100%;
                left: 50%;
                margin-left: -5px;
                border-width: 5px;
                border-style: solid;
                border-color: #333 transparent transparent transparent;
            }
        }

        /* Modal Overlay Styles */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            backdrop-filter: blur(5px);
        }

        .modal {
            background: white;
            border-radius: 15px;
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto;
            animation: modalFadeIn 0.3s ease;
            padding: 30px;
            margin: 20px;
        }

        .modal-btn {
            border: none;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1rem;
            padding: 12px 24px;
        }

        .modal-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        @keyframes modalFadeIn {
            from {
                opacity: 0;
                transform: scale(0.8);
            }

            to {
                opacity: 1;
                transform: scale(1);
            }
        }

        /* Hidden state */
        .hidden {
            display: none !important;
        }

        /* Audit Modal Styles */
        .audit-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: rgba(0, 0, 0, 0.9);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 10000;
            padding: 20px;
            box-sizing: border-box;
        }

        .audit-modal-content {
            background: transparent;
            border-radius: 0;
            padding: 0;
            max-width: 95vw;
            max-height: 95vh;
            width: 100%;
            height: 95vh;
            box-shadow: none;
            display: flex;
            flex-direction: column;
            position: relative;
        }

        .audit-close-btn {
            position: absolute;
            top: 10px;
            right: 26px;
            background: rgba(114, 47, 55, 0.9);
            border: 2px solid rgba(114, 47, 55, 1);
            color: white;
            font-size: 24px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10001;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .audit-close-btn:hover {
            background: rgba(139, 21, 56, 0.9);
            transform: scale(1.1);
        }

        .audit-iframe {
            width: 100%;
            height: 100%;
            border: none;
            border-radius: 0;
            background: white;
        }

        /* Mobile optimizations for audit modal */
        @media (max-width: 768px) {
            .audit-modal {
                padding: 0;
                margin: 0;
            }

            .audit-modal-content {
                padding: 0;
                margin: 0;
                height: 100vh;
                max-width: 100vw;
                max-height: 100vh;
                width: 100vw;
            }

            .audit-close-btn {
                top: 5px;
                right: 21px;
                font-size: 20px;
                width: 35px;
                height: 35px;
            }

            .audit-iframe {
                width: 100%;
                height: 100%;
                margin: 0;
                padding: 0;
            }
        }

        /* Animation CSS removed - keeping file clean and simple */
