* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background-color: #f5f5f5;
            padding: 20px;
        }
        
        .password-generator {
            background-color: white;
            border-radius: 10px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            width: 100%;
            max-width: 450px;
            padding: 30px;
            border: 1px solid #ddd;
        }
        
        .title {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
            font-size: 24px;
            font-weight: 600;
        }
        
        .password-container {
            position: relative;
            margin-bottom: 20px;
        }
        
        .password-input {
            width: 100%;
            padding: 15px 20px;
            padding-right: 80px;
            border: 2px solid #ddd;
            border-radius: 8px;
            font-size: 18px;
            background-color: #f9f9f9;
            color: #333;
            transition: border-color 0.3s;
            letter-spacing: 1px;
        }
        
        .password-input:focus {
            outline: none;
            border-color: #555;
        }
        
        .toggle-password {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            color: #666;
            font-size: 18px;
        }
        
        .strength-meter {
            height: 6px;
            border-radius: 3px;
            background-color: #eee;
            margin-bottom: 25px;
            overflow: hidden;
        }
        
        .strength-fill {
            height: 100%;
            width: 0%;
            border-radius: 3px;
            transition: width 0.3s, background-color 0.3s;
        }
        
        .strength-text {
            font-size: 14px;
            margin-bottom: 5px;
            color: #666;
        }
        
        .requirements {
            margin-bottom: 25px;
        }
        
        .requirement {
            display: flex;
            align-items: center;
            margin-bottom: 8px;
            font-size: 14px;
            color: #666;
        }
        
        .requirement i {
            margin-right: 10px;
            width: 20px;
        }
        
        .requirement.valid i {
            color: #333;
        }
        
        .requirement.invalid i {
            color: #aaa;
        }
        
        .controls {
            display: flex;
            justify-content: space-between;
            margin-bottom: 25px;
        }
        
        .btn {
            padding: 12px 20px;
            border: none;
            border-radius: 6px;
            cursor: pointer;
            font-weight: 600;
            font-size: 15px;
            transition: all 0.3s;
        }
        
        .btn-generate {
            background-color: #333;
            color: white;
            flex-grow: 1;
            margin-right: 10px;
        }
        
        .btn-generate:hover {
            background-color: #555;
        }
        
        .btn-copy {
            background-color: #f0f0f0;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-copy:hover {
            background-color: #e0e0e0;
        }
        
        .btn-copy i {
            margin-right: 8px;
        }
        
        .length-control {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 25px;
        }
        
        .length-label {
            font-size: 15px;
            color: #333;
        }
        
        .length-value {
            font-weight: 600;
            color: #333;
            background-color: #f0f0f0;
            padding: 3px 10px;
            border-radius: 4px;
        }
        
        .length-slider {
            width: 100%;
            margin-top: 10px;
            -webkit-appearance: none;
            height: 6px;
            background: #ddd;
            border-radius: 3px;
            outline: none;
        }
        
        .length-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            width: 20px;
            height: 20px;
            background: #333;
            border-radius: 50%;
            cursor: pointer;
        }
        
        .char-types {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
            margin-bottom: 25px;
        }
        
        .char-type {
            display: flex;
            align-items: center;
        }
        
        .char-type input {
            margin-right: 10px;
            transform: scale(1.2);
        }
        
        .char-type label {
            font-size: 14px;
            color: #333;
        }
        
        .footer {
            text-align: center;
            margin-top: 20px;
            font-size: 12px;
            color: #888;
            border-top: 1px solid #eee;
            padding-top: 15px;
        }
        
        .toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background-color: #333;
            color: white;
            padding: 12px 25px;
            border-radius: 6px;
            opacity: 0;
            transition: opacity 0.3s;
            z-index: 1000;
            font-size: 14px;
        }
        
        .toast.show {
            opacity: 1;
        }
        
        .history-container {
            margin-top: 25px;
            border-top: 1px solid #eee;
            padding-top: 20px;
            display: none;
        }
        
        .history-title {
            font-size: 16px;
            margin-bottom: 10px;
            color: #333;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .history-list {
            max-height: 150px;
            overflow-y: auto;
        }
        
        .history-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            border-bottom: 1px solid #f5f5f5;
            font-size: 14px;
        }
        
        .history-password {
            letter-spacing: 1px;
            font-family: monospace;
        }
        
        .history-actions button {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            margin-left: 8px;
            font-size: 14px;
        }
        
        .toggle-history {
            background: none;
            border: none;
            color: #666;
            cursor: pointer;
            font-size: 12px;
        }
        
        @media (max-width: 480px) {
            .password-generator {
                padding: 20px;
            }
            
            .char-types {
                grid-template-columns: 1fr;
            }
            
            .controls {
                flex-direction: column;
            }
            
            .btn-generate {
                margin-right: 0;
                margin-bottom: 10px;
            }
        }
 
