 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        
        .container {
            width: 100%;
            max-width: 800px;
            background-color: white;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            padding: 30px;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eaeaea;
        }
        
        .header h1 {
            color: #2c3e50;
            font-size: 28px;
            margin-bottom: 10px;
        }
        
        .header p {
            color: #7f8c8d;
            font-size: 16px;
        }
        
        .mode-selector {
            display: flex;
            margin-bottom: 30px;
            border-radius: 10px;
            overflow: hidden;
            border: 2px solid #eaeaea;
        }
        
        .mode-btn {
            flex: 1;
            padding: 15px;
            background-color: #f8f9fa;
            border: none;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            color: #7f8c8d;
        }
        
        .mode-btn.active {
            background-color: #3498db;
            color: white;
        }
        
        .mode-btn:not(.active):hover {
            background-color: #e8f4fc;
            color: #3498db;
        }
        
        .password-section {
            display: none;
        }
        
        .password-section.active {
            display: block;
        }
        
        .password-display {
            margin-bottom: 30px;
        }
        
        .password-display label {
            display: block;
            margin-bottom: 10px;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .password-field {
            display: flex;
            margin-bottom: 15px;
        }
        
        .password-input {
            flex-grow: 1;
            padding: 16px 20px;
            font-size: 18px;
            border: 2px solid #e0e0e0;
            border-radius: 8px 0 0 8px;
            background-color: #f9f9f9;
            letter-spacing: 1px;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .copy-btn {
            background-color: #3498db;
            color: white;
            border: none;
            padding: 0 25px;
            border-radius: 0 8px 8px 0;
            cursor: pointer;
            font-weight: 600;
            font-size: 16px;
            transition: background-color 0.3s;
        }
        
        .copy-btn:hover {
            background-color: #2980b9;
        }
        
        .copy-btn:active {
            transform: translateY(1px);
        }
        
        .copy-btn.copied {
            background-color: #27ae60;
        }
        
        .password-strength-container {
            margin-top: 15px;
        }
        
        .strength-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 5px;
            font-size: 14px;
            font-weight: 600;
        }
        
        .strength-text {
            color: #7f8c8d;
            transition: color 0.3s;
        }
        
        .password-strength {
            height: 10px;
            background-color: #eee;
            border-radius: 5px;
            overflow: hidden;
            margin-bottom: 5px;
        }
        
        .strength-bar {
            height: 100%;
            width: 0;
            border-radius: 5px;
            transition: width 0.3s, background-color 0.3s;
        }
        
        .strength-labels {
            display: flex;
            justify-content: space-between;
            font-size: 12px;
            color: #95a5a6;
            margin-top: 3px;
        }
        
        .strength-level {
            flex: 1;
            text-align: center;
            padding: 2px 0;
        }
        
        .length-control {
            margin-bottom: 30px;
        }
        
        .length-control label {
            display: block;
            margin-bottom: 15px;
            font-weight: 600;
            color: #2c3e50;
        }
        
        .length-display {
            text-align: center;
            font-size: 24px;
            font-weight: 700;
            color: #3498db;
            margin-bottom: 10px;
        }
        
        .slider-container {
            position: relative;
            height: 40px;
            display: flex;
            align-items: center;
        }
        
        .slider-track {
            position: absolute;
            width: 100%;
            height: 8px;
            background-color: #e0e0e0;
            border-radius: 4px;
        }
        
        .slider-fill {
            position: absolute;
            height: 8px;
            background-color: #3498db;
            border-radius: 4px;
            width: 50%;
        }
        
        .slider-handle {
            position: absolute;
            width: 28px;
            height: 28px;
            background-color: #3498db;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 2;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .character-options {
            margin-bottom: 30px;
        }
        
        .character-options h3 {
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .options-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 15px;
        }
        
        .option {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            background-color: #f8f9fa;
            border-radius: 8px;
            border: 2px solid #eaeaea;
            transition: all 0.3s;
        }
        
        .option:hover {
            border-color: #3498db;
        }
        
        .option input {
            margin-right: 12px;
            transform: scale(1.3);
            cursor: pointer;
        }
        
        .option label {
            font-weight: 500;
            cursor: pointer;
            user-select: none;
        }
        
        .memorable-options {
            margin-bottom: 30px;
        }
        
        .memorable-options h3 {
            margin-bottom: 15px;
            color: #2c3e50;
        }
        
        .memorable-info {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            border-left: 4px solid #2ecc71;
        }
        
        .memorable-info p {
            margin-bottom: 5px;
            color: #555;
        }
        
        .memorable-slider-container {
            position: relative;
            height: 40px;
            display: flex;
            align-items: center;
            margin-top: 20px;
        }
        
        .memorable-slider-track {
            position: absolute;
            width: 100%;
            height: 8px;
            background-color: #e0e0e0;
            border-radius: 4px;
        }
        
        .memorable-slider-fill {
            position: absolute;
            height: 8px;
            background-color: #2ecc71;
            border-radius: 4px;
            width: 50%;
        }
        
        .memorable-slider-handle {
            position: absolute;
            width: 28px;
            height: 28px;
            background-color: #2ecc71;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
            z-index: 2;
            left: 50%;
            transform: translateX(-50%);
        }
        
        .generate-btn {
            display: block;
            width: 100%;
            padding: 18px;
            background-color: #2ecc71;
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 18px;
            font-weight: 600;
            cursor: pointer;
            transition: background-color 0.3s;
            margin-top: 10px;
        }
        
        .generate-btn:hover {
            background-color: #27ae60;
        }
        
        .footer {
            margin-top: 25px;
            text-align: center;
            color: #7f8c8d;
            font-size: 14px;
            padding-top: 15px;
            border-top: 1px solid #eaeaea;
        }
        
        .password-history {
            margin-top: 25px;
            padding-top: 20px;
            border-top: 1px solid #eaeaea;
        }
        
        .password-history h3 {
            margin-bottom: 10px;
            color: #2c3e50;
        }
        
        .history-list {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            max-height: 120px;
            overflow-y: auto;
        }
        
        .history-item {
            background-color: #f8f9fa;
            padding: 8px 12px;
            border-radius: 6px;
            font-family: monospace;
            font-size: 14px;
            border: 1px solid #eaeaea;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .history-item:hover {
            background-color: #e8f4fc;
            border-color: #3498db;
        }
        
        /* Responsive Design */
        @media (max-width: 768px) {
            .container {
                padding: 20px;
            }
            
            .header h1 {
                font-size: 24px;
            }
            
            .password-field {
                flex-direction: column;
            }
            
            .password-input {
                border-radius: 8px;
                margin-bottom: 10px;
            }
            
            .copy-btn {
                border-radius: 8px;
                padding: 12px;
            }
            
            .options-grid {
                grid-template-columns: 1fr;
            }
            
            .length-display {
                font-size: 22px;
            }
        }
        
        @media (max-width: 480px) {
            .container {
                padding: 15px;
            }
            
            .header h1 {
                font-size: 22px;
            }
            
            .header p {
                font-size: 15px;
            }
            
            .password-input {
                font-size: 16px;
                padding: 14px;
            }
            
            .generate-btn {
                padding: 16px;
                font-size: 16px;
            }
            
            .strength-labels {
                font-size: 11px;
            }
            
            .mode-btn {
                padding: 12px;
                font-size: 14px;
            }
        }