* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #4a5568;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 40px;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#length {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background-color: #ffffff;
    color: #4a5568;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    outline: none;
}

#length:focus {
    border-color: #718096;
    box-shadow: 0 0 0 3px rgba(113, 128, 150, 0.1);
}

#length::placeholder {
    color: #a0aec0;
}

#generate {
    width: 100%;
    max-width: 300px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

#generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

#generate:active {
    transform: translateY(0);
}

p {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    margin-bottom: 20px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    word-break: break-all;
}

#GenPass {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2d3748;
    background-color: #f7fafc;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    min-width: 120px;
    margin-left: 10px;
}

#copy {
    width: 100%;
    max-width: 300px;
    padding: 12px 20px;
    background-color: #ffffff;
    color: #4a5568;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#copy:hover {
    background-color: #f7fafc;
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

#copy:active {
    transform: translateY(0);
    background-color: #edf2f7;
}

/* Responsive design */
@media (max-width: 480px) {
    h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    #length, #generate, #copy {
        max-width: 100%;
    }
    
    p {
        max-width: 100%;
        padding: 15px;
    }
}